#include <GPUDisplayBackend.h>
Inherited by o2::gpu::GPUDisplayBackendNone, o2::gpu::GPUDisplayBackendOpenGL, and o2::gpu::GPUDisplayBackendVulkan.
|
| | GPUDisplayBackend () |
| |
| virtual | ~GPUDisplayBackend () |
| |
| virtual int32_t | ExtInit () |
| |
| virtual uint32_t | drawVertices (const vboList &v, const drawType t)=0 |
| |
| virtual uint32_t | drawField () |
| |
| virtual void | ActivateColor (std::array< float, 4 > &color)=0 |
| |
| virtual void | setQuality () |
| |
| virtual void | SetVSync (bool enable) |
| |
| virtual bool | canLimitToVSync () const |
| |
| int32_t | fpsLimitMode () const |
| |
| virtual bool | backendNeedRedraw () |
| |
| virtual void | setDepthBuffer ()=0 |
| |
| virtual int32_t | InitBackendA ()=0 |
| |
| virtual void | ExitBackendA ()=0 |
| |
| int32_t | InitBackend () |
| |
| void | updateFontScale (float scale) |
| |
| void | ExitBackend () |
| |
| virtual void | loadDataToGPU (size_t totalVertizes)=0 |
| |
| virtual bool | prepareDraw (const hmm_mat4 &proj, const hmm_mat4 &view, bool requestScreenshot=false, bool toMixBuffer=false, float includeMixImage=0.f)=0 |
| |
| virtual void | finishDraw (bool doScreenshot, bool toMixBuffer=false, float includeMixImage=0.f)=0 |
| |
| virtual void | finishFrame (bool doScreenshot, bool toMixBuffer=false, float includeMixImage=0.f)=0 |
| |
| virtual void | prepareText ()=0 |
| |
| virtual void | finishText ()=0 |
| |
| virtual void | pointSizeFactor (float factor)=0 |
| |
| virtual void | lineWidthFactor (float factor)=0 |
| |
| backendTypes | backendType () const |
| |
| const char * | backendName () const |
| |
| virtual void | resizeScene (uint32_t width, uint32_t height) |
| |
| virtual size_t | needMultiVBO () |
| |
| virtual void | GLPrintText (const char *s, float x, float y, float *color, float scale, uint32_t nCharacters)=0 |
| |
| virtual void | GLDrawQuad (const float(&corners)[4][2], const float *color)=0 |
| |
| void | GLDrawLine (float x0, float y0, float x1, float y1, float width, const float *color) |
| |
| uint32_t | GLDrawConsole (float verticalFraction, std::span< const std::string > previous, const std::string ¤t, int32_t cursorPos, uint32_t scroll) |
| |
| std::vector< char > | getPixels () |
| |
| virtual float | getYFactor () const |
| |
| virtual int32_t | getMaxMSAA () const |
| |
Definition at line 35 of file GPUDisplayBackend.h.
◆ vboList
◆ backendTypes
| Enumerator |
|---|
| TYPE_INVALID | |
| TYPE_OPENGL | |
| TYPE_VULKAN | |
| TYPE_NONE | |
Definition at line 53 of file GPUDisplayBackend.h.
◆ drawType
◆ fpsLimitModes
| Enumerator |
|---|
| FPS_LIMIT_NONE | |
| FPS_LIMIT_VSYNC | |
| FPS_LIMIT_RATE | |
Definition at line 80 of file GPUDisplayBackend.h.
◆ GPUDisplayBackend()
| GPUDisplayBackend::GPUDisplayBackend |
( |
| ) |
|
|
default |
◆ ~GPUDisplayBackend()
| GPUDisplayBackend::~GPUDisplayBackend |
( |
| ) |
|
|
virtualdefault |
◆ ActivateColor()
| virtual void o2::gpu::GPUDisplayBackend::ActivateColor |
( |
std::array< float, 4 > & |
color | ) |
|
|
pure virtual |
◆ addFontSymbol()
◆ backendName()
| const char * o2::gpu::GPUDisplayBackend::backendName |
( |
| ) |
const |
|
inline |
◆ backendNeedRedraw()
| virtual bool o2::gpu::GPUDisplayBackend::backendNeedRedraw |
( |
| ) |
|
|
inlinevirtual |
◆ backendType()
| backendTypes o2::gpu::GPUDisplayBackend::backendType |
( |
| ) |
const |
|
inline |
◆ canLimitToVSync()
| virtual bool o2::gpu::GPUDisplayBackend::canLimitToVSync |
( |
| ) |
const |
|
inlinevirtual |
◆ clearFontSymbols()
| virtual void o2::gpu::GPUDisplayBackend::clearFontSymbols |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ drawField()
| virtual uint32_t o2::gpu::GPUDisplayBackend::drawField |
( |
| ) |
|
|
inlinevirtual |
◆ drawVertices()
◆ ExitBackend()
| void GPUDisplayBackend::ExitBackend |
( |
| ) |
|
◆ ExitBackendA()
| virtual void o2::gpu::GPUDisplayBackend::ExitBackendA |
( |
| ) |
|
|
pure virtual |
◆ ExtInit()
| virtual int32_t o2::gpu::GPUDisplayBackend::ExtInit |
( |
| ) |
|
|
inlinevirtual |
◆ fillIndirectCmdBuffer()
| void GPUDisplayBackend::fillIndirectCmdBuffer |
( |
| ) |
|
|
protected |
◆ finishDraw()
| virtual void o2::gpu::GPUDisplayBackend::finishDraw |
( |
bool |
doScreenshot, |
|
|
bool |
toMixBuffer = false, |
|
|
float |
includeMixImage = 0.f |
|
) |
| |
|
pure virtual |
◆ finishFrame()
| virtual void o2::gpu::GPUDisplayBackend::finishFrame |
( |
bool |
doScreenshot, |
|
|
bool |
toMixBuffer = false, |
|
|
float |
includeMixImage = 0.f |
|
) |
| |
|
pure virtual |
◆ finishText()
| virtual void o2::gpu::GPUDisplayBackend::finishText |
( |
| ) |
|
|
pure virtual |
◆ fpsLimitMode()
| int32_t GPUDisplayBackend::fpsLimitMode |
( |
| ) |
const |
◆ getBackend()
◆ getDownsampleFactor()
| float GPUDisplayBackend::getDownsampleFactor |
( |
bool |
screenshot = false | ) |
|
|
protected |
◆ getMaxMSAA()
| virtual int32_t o2::gpu::GPUDisplayBackend::getMaxMSAA |
( |
| ) |
const |
|
inlinevirtual |
◆ getPixels()
| std::vector< char > GPUDisplayBackend::getPixels |
( |
| ) |
|
◆ getYFactor()
| virtual float o2::gpu::GPUDisplayBackend::getYFactor |
( |
| ) |
const |
|
inlinevirtual |
◆ GLDrawConsole()
| uint32_t GPUDisplayBackend::GLDrawConsole |
( |
float |
verticalFraction, |
|
|
std::span< const std::string > |
previous, |
|
|
const std::string & |
current, |
|
|
int32_t |
cursorPos, |
|
|
uint32_t |
scroll |
|
) |
| |
◆ GLDrawLine()
◆ GLDrawQuad()
| virtual void o2::gpu::GPUDisplayBackend::GLDrawQuad |
( |
const float(&) |
corners[4][2], |
|
|
const float * |
color |
|
) |
| |
|
pure virtual |
◆ GLPrintText()
◆ InitBackend()
| int32_t GPUDisplayBackend::InitBackend |
( |
| ) |
|
◆ InitBackendA()
| virtual int32_t o2::gpu::GPUDisplayBackend::InitBackendA |
( |
| ) |
|
|
pure virtual |
◆ initializeTextDrawing()
| virtual void o2::gpu::GPUDisplayBackend::initializeTextDrawing |
( |
| ) |
|
|
protectedpure virtual |
◆ lineWidthFactor()
| virtual void o2::gpu::GPUDisplayBackend::lineWidthFactor |
( |
float |
factor | ) |
|
|
pure virtual |
◆ loadDataToGPU()
| virtual void o2::gpu::GPUDisplayBackend::loadDataToGPU |
( |
size_t |
totalVertizes | ) |
|
|
pure virtual |
◆ loadFont()
| void GPUDisplayBackend::loadFont |
( |
| ) |
|
|
protected |
◆ needMultiVBO()
| virtual size_t o2::gpu::GPUDisplayBackend::needMultiVBO |
( |
| ) |
|
|
inlinevirtual |
◆ pointSizeFactor()
| virtual void o2::gpu::GPUDisplayBackend::pointSizeFactor |
( |
float |
factor | ) |
|
|
pure virtual |
◆ prepareDraw()
◆ prepareText()
| virtual void o2::gpu::GPUDisplayBackend::prepareText |
( |
| ) |
|
|
pure virtual |
◆ resizeScene()
◆ setDepthBuffer()
| virtual void o2::gpu::GPUDisplayBackend::setDepthBuffer |
( |
| ) |
|
|
pure virtual |
◆ setQuality()
| virtual void o2::gpu::GPUDisplayBackend::setQuality |
( |
| ) |
|
|
inlinevirtual |
◆ SetVSync()
| virtual void o2::gpu::GPUDisplayBackend::SetVSync |
( |
bool |
enable | ) |
|
|
inlinevirtual |
◆ smoothFont()
| bool GPUDisplayBackend::smoothFont |
( |
| ) |
|
|
protected |
◆ updateFontScale()
| void GPUDisplayBackend::updateFontScale |
( |
float |
scale | ) |
|
◆ mBackendName
| const char* o2::gpu::GPUDisplayBackend::mBackendName = nullptr |
|
protected |
◆ mBackendType
◆ mCmdBuffer
◆ mDisplay
| GPUDisplay* o2::gpu::GPUDisplayBackend::mDisplay = nullptr |
|
protected |
◆ mDownsampleFactor
| int32_t o2::gpu::GPUDisplayBackend::mDownsampleFactor = 1 |
|
protected |
◆ mFontCharWidth
| float o2::gpu::GPUDisplayBackend::mFontCharWidth = 0.f |
|
protected |
◆ mFontRasterScale
| float o2::gpu::GPUDisplayBackend::mFontRasterScale = 1.f |
|
protected |
◆ mFreetypeInitialized
| bool o2::gpu::GPUDisplayBackend::mFreetypeInitialized = false |
|
protected |
◆ mIndirectSectorOffset
| std::vector<int32_t> o2::gpu::GPUDisplayBackend::mIndirectSectorOffset |
|
protected |
◆ mMagneticFieldVisualization
◆ mMaxRenderSize
| uint32_t o2::gpu::GPUDisplayBackend::mMaxRenderSize = UINT32_MAX |
|
protected |
◆ mRenderHeight
| uint32_t o2::gpu::GPUDisplayBackend::mRenderHeight = 0 |
|
protected |
◆ mRenderWidth
| uint32_t o2::gpu::GPUDisplayBackend::mRenderWidth = 0 |
|
protected |
◆ mScreenHeight
| uint32_t o2::gpu::GPUDisplayBackend::mScreenHeight = 0 |
|
protected |
◆ mScreenshotPixels
| std::vector<char> o2::gpu::GPUDisplayBackend::mScreenshotPixels |
|
protected |
◆ mScreenWidth
| uint32_t o2::gpu::GPUDisplayBackend::mScreenWidth = 0 |
|
protected |
◆ SMOOTH_LINE_EXTRA_WIDTH
| constexpr float o2::gpu::GPUDisplayBackend::SMOOTH_LINE_EXTRA_WIDTH = 0.8f |
|
staticconstexprprotected |
◆ SMOOTH_POINT_EXTRA_SIZE
| constexpr float o2::gpu::GPUDisplayBackend::SMOOTH_POINT_EXTRA_SIZE = 0.6f |
|
staticconstexprprotected |
◆ SOLID_GLYPH
| constexpr int32_t o2::gpu::GPUDisplayBackend::SOLID_GLYPH = 128 |
|
staticconstexprprotected |
The documentation for this class was generated from the following files: