DDraceNetwork Documentation
Loading...
Searching...
No Matches
CCommandProcessorFragment_OpenGL Class Reference

#include <backend_opengl.h>

Inheritance diagram for CCommandProcessorFragment_OpenGL:
[legend]
Collaboration diagram for CCommandProcessorFragment_OpenGL:
[legend]

Classes

struct  CTexture

Public Member Functions

 CCommandProcessorFragment_OpenGL ()
ERunCommandReturnTypes RunCommand (const CCommandBuffer::SCommand *pBaseCommand) override
Public Member Functions inherited from CCommandProcessorFragment_GLBase
virtual ~CCommandProcessorFragment_GLBase ()=default
virtual void StartCommands (size_t CommandCount, size_t EstimatedRenderCallCount)
virtual void EndCommands ()
const SGfxErrorContainerGetError ()
virtual void ErroneousCleanup ()
const SGfxWarningContainerGetWarning ()

Protected Member Functions

bool IsTexturedState (const CCommandBuffer::SState &State)
bool InitOpenGL (const SCommand_Init *pCommand)
void SetState (const CCommandBuffer::SState &State, bool Use2DArrayTexture=false)
virtual bool IsNewApi ()
void DestroyTexture (int Slot)
bool GetPresentedImageData (uint32_t &Width, uint32_t &Height, CImageInfo::EImageFormat &Format, std::vector< uint8_t > &vDstData) override
void TextureUpdate (int Slot, int X, int Y, int Width, int Height, int GLFormat, uint8_t *pTexData)
void TextureCreate (int Slot, int Width, int Height, int GLFormat, int GLStoreFormat, int Flags, uint8_t *pTexData)
virtual bool Cmd_Init (const SCommand_Init *pCommand)
virtual void Cmd_Shutdown (const SCommand_Shutdown *pCommand)
virtual void Cmd_Texture_Destroy (const CCommandBuffer::SCommand_Texture_Destroy *pCommand)
virtual void Cmd_Texture_Create (const CCommandBuffer::SCommand_Texture_Create *pCommand)
virtual void Cmd_TextTexture_Update (const CCommandBuffer::SCommand_TextTexture_Update *pCommand)
virtual void Cmd_TextTextures_Destroy (const CCommandBuffer::SCommand_TextTextures_Destroy *pCommand)
virtual void Cmd_TextTextures_Create (const CCommandBuffer::SCommand_TextTextures_Create *pCommand)
virtual void Cmd_Clear (const CCommandBuffer::SCommand_Clear *pCommand)
virtual void Cmd_Render (const CCommandBuffer::SCommand_Render *pCommand)
virtual void Cmd_RenderTex3D (const CCommandBuffer::SCommand_RenderTex3D *pCommand)
virtual void Cmd_ReadPixel (const CCommandBuffer::SCommand_TrySwapAndReadPixel *pCommand)
virtual void Cmd_Screenshot (const CCommandBuffer::SCommand_TrySwapAndScreenshot *pCommand)
virtual void Cmd_Update_Viewport (const CCommandBuffer::SCommand_Update_Viewport *pCommand)
virtual void Cmd_CreateBufferObject (const CCommandBuffer::SCommand_CreateBufferObject *pCommand)
virtual void Cmd_RecreateBufferObject (const CCommandBuffer::SCommand_RecreateBufferObject *pCommand)
virtual void Cmd_UpdateBufferObject (const CCommandBuffer::SCommand_UpdateBufferObject *pCommand)
virtual void Cmd_CopyBufferObject (const CCommandBuffer::SCommand_CopyBufferObject *pCommand)
virtual void Cmd_DeleteBufferObject (const CCommandBuffer::SCommand_DeleteBufferObject *pCommand)
virtual void Cmd_CreateBufferContainer (const CCommandBuffer::SCommand_CreateBufferContainer *pCommand)
virtual void Cmd_UpdateBufferContainer (const CCommandBuffer::SCommand_UpdateBufferContainer *pCommand)
virtual void Cmd_DeleteBufferContainer (const CCommandBuffer::SCommand_DeleteBufferContainer *pCommand)
virtual void Cmd_IndicesRequiredNumNotify (const CCommandBuffer::SCommand_IndicesRequiredNumNotify *pCommand)
virtual void Cmd_RenderTileLayer (const CCommandBuffer::SCommand_RenderTileLayer *pCommand)
virtual void Cmd_RenderBorderTile (const CCommandBuffer::SCommand_RenderBorderTile *pCommand)
virtual void Cmd_RenderQuadLayer (const CCommandBuffer::SCommand_RenderQuadLayer *pCommand, bool Grouped)
virtual void Cmd_RenderText (const CCommandBuffer::SCommand_RenderText *pCommand)
virtual void Cmd_RenderQuadContainer (const CCommandBuffer::SCommand_RenderQuadContainer *pCommand)
virtual void Cmd_RenderQuadContainerEx (const CCommandBuffer::SCommand_RenderQuadContainerEx *pCommand)
virtual void Cmd_RenderQuadContainerAsSpriteMultiple (const CCommandBuffer::SCommand_RenderQuadContainerAsSpriteMultiple *pCommand)

Static Protected Member Functions

static size_t GLFormatToPixelSize (int GLFormat)
Static Protected Member Functions inherited from CCommandProcessorFragment_GLBase
static bool Texture2DTo3D (uint8_t *pImageBuffer, int ImageWidth, int ImageHeight, size_t PixelSize, int SplitCountWidth, int SplitCountHeight, uint8_t *pTarget3DImageData, int &Target3DImageWidth, int &Target3DImageHeight)

Protected Attributes

std::vector< CTexturem_vTextures
std::atomic< uint64_t > * m_pTextureMemoryUsage
uint32_t m_CanvasWidth = 0
uint32_t m_CanvasHeight = 0
TWGLint m_MaxTexSize
bool m_Has2DArrayTextures
bool m_Has2DArrayTexturesAsExtension
TWGLenum m_2DArrayTarget
bool m_Has3DTextures
bool m_HasMipMaps
bool m_HasNPOTTextures
bool m_HasShaders
EBlendMode m_LastBlendMode
bool m_LastClipEnable
int m_OpenGLTextureLodBIAS
bool m_IsOpenGLES
Protected Attributes inherited from CCommandProcessorFragment_GLBase
SGfxErrorContainer m_Error
SGfxWarningContainer m_Warning

Additional Inherited Members

Public Types inherited from CCommandProcessorFragment_GLBase
enum  { CMD_PRE_INIT = CCommandBuffer::CMDGROUP_PLATFORM_GL , CMD_INIT , CMD_SHUTDOWN , CMD_POST_SHUTDOWN }

Constructor & Destructor Documentation

◆ CCommandProcessorFragment_OpenGL()

CCommandProcessorFragment_OpenGL::CCommandProcessorFragment_OpenGL ( )

Member Function Documentation

◆ Cmd_Clear()

void CCommandProcessorFragment_OpenGL::Cmd_Clear ( const CCommandBuffer::SCommand_Clear * pCommand)
protectedvirtual

◆ Cmd_CopyBufferObject()

virtual void CCommandProcessorFragment_OpenGL::Cmd_CopyBufferObject ( const CCommandBuffer::SCommand_CopyBufferObject * pCommand)
inlineprotectedvirtual

◆ Cmd_CreateBufferContainer()

virtual void CCommandProcessorFragment_OpenGL::Cmd_CreateBufferContainer ( const CCommandBuffer::SCommand_CreateBufferContainer * pCommand)
inlineprotectedvirtual

◆ Cmd_CreateBufferObject()

virtual void CCommandProcessorFragment_OpenGL::Cmd_CreateBufferObject ( const CCommandBuffer::SCommand_CreateBufferObject * pCommand)
inlineprotectedvirtual

◆ Cmd_DeleteBufferContainer()

virtual void CCommandProcessorFragment_OpenGL::Cmd_DeleteBufferContainer ( const CCommandBuffer::SCommand_DeleteBufferContainer * pCommand)
inlineprotectedvirtual

◆ Cmd_DeleteBufferObject()

virtual void CCommandProcessorFragment_OpenGL::Cmd_DeleteBufferObject ( const CCommandBuffer::SCommand_DeleteBufferObject * pCommand)
inlineprotectedvirtual

◆ Cmd_IndicesRequiredNumNotify()

virtual void CCommandProcessorFragment_OpenGL::Cmd_IndicesRequiredNumNotify ( const CCommandBuffer::SCommand_IndicesRequiredNumNotify * pCommand)
inlineprotectedvirtual

◆ Cmd_Init()

bool CCommandProcessorFragment_OpenGL::Cmd_Init ( const SCommand_Init * pCommand)
protectedvirtual

◆ Cmd_ReadPixel()

void CCommandProcessorFragment_OpenGL::Cmd_ReadPixel ( const CCommandBuffer::SCommand_TrySwapAndReadPixel * pCommand)
protectedvirtual

◆ Cmd_RecreateBufferObject()

virtual void CCommandProcessorFragment_OpenGL::Cmd_RecreateBufferObject ( const CCommandBuffer::SCommand_RecreateBufferObject * pCommand)
inlineprotectedvirtual

◆ Cmd_Render()

void CCommandProcessorFragment_OpenGL::Cmd_Render ( const CCommandBuffer::SCommand_Render * pCommand)
protectedvirtual

◆ Cmd_RenderBorderTile()

virtual void CCommandProcessorFragment_OpenGL::Cmd_RenderBorderTile ( const CCommandBuffer::SCommand_RenderBorderTile * pCommand)
inlineprotectedvirtual

◆ Cmd_RenderQuadContainer()

virtual void CCommandProcessorFragment_OpenGL::Cmd_RenderQuadContainer ( const CCommandBuffer::SCommand_RenderQuadContainer * pCommand)
inlineprotectedvirtual

◆ Cmd_RenderQuadContainerAsSpriteMultiple()

virtual void CCommandProcessorFragment_OpenGL::Cmd_RenderQuadContainerAsSpriteMultiple ( const CCommandBuffer::SCommand_RenderQuadContainerAsSpriteMultiple * pCommand)
inlineprotectedvirtual

◆ Cmd_RenderQuadContainerEx()

virtual void CCommandProcessorFragment_OpenGL::Cmd_RenderQuadContainerEx ( const CCommandBuffer::SCommand_RenderQuadContainerEx * pCommand)
inlineprotectedvirtual

◆ Cmd_RenderQuadLayer()

virtual void CCommandProcessorFragment_OpenGL::Cmd_RenderQuadLayer ( const CCommandBuffer::SCommand_RenderQuadLayer * pCommand,
bool Grouped )
inlineprotectedvirtual

◆ Cmd_RenderTex3D()

virtual void CCommandProcessorFragment_OpenGL::Cmd_RenderTex3D ( const CCommandBuffer::SCommand_RenderTex3D * pCommand)
inlineprotectedvirtual

◆ Cmd_RenderText()

virtual void CCommandProcessorFragment_OpenGL::Cmd_RenderText ( const CCommandBuffer::SCommand_RenderText * pCommand)
inlineprotectedvirtual

◆ Cmd_RenderTileLayer()

virtual void CCommandProcessorFragment_OpenGL::Cmd_RenderTileLayer ( const CCommandBuffer::SCommand_RenderTileLayer * pCommand)
inlineprotectedvirtual

◆ Cmd_Screenshot()

void CCommandProcessorFragment_OpenGL::Cmd_Screenshot ( const CCommandBuffer::SCommand_TrySwapAndScreenshot * pCommand)
protectedvirtual

◆ Cmd_Shutdown()

virtual void CCommandProcessorFragment_OpenGL::Cmd_Shutdown ( const SCommand_Shutdown * pCommand)
inlineprotectedvirtual

◆ Cmd_TextTexture_Update()

void CCommandProcessorFragment_OpenGL::Cmd_TextTexture_Update ( const CCommandBuffer::SCommand_TextTexture_Update * pCommand)
protectedvirtual

◆ Cmd_TextTextures_Create()

void CCommandProcessorFragment_OpenGL::Cmd_TextTextures_Create ( const CCommandBuffer::SCommand_TextTextures_Create * pCommand)
protectedvirtual

◆ Cmd_TextTextures_Destroy()

void CCommandProcessorFragment_OpenGL::Cmd_TextTextures_Destroy ( const CCommandBuffer::SCommand_TextTextures_Destroy * pCommand)
protectedvirtual

◆ Cmd_Texture_Create()

void CCommandProcessorFragment_OpenGL::Cmd_Texture_Create ( const CCommandBuffer::SCommand_Texture_Create * pCommand)
protectedvirtual

◆ Cmd_Texture_Destroy()

void CCommandProcessorFragment_OpenGL::Cmd_Texture_Destroy ( const CCommandBuffer::SCommand_Texture_Destroy * pCommand)
protectedvirtual

◆ Cmd_Update_Viewport()

void CCommandProcessorFragment_OpenGL::Cmd_Update_Viewport ( const CCommandBuffer::SCommand_Update_Viewport * pCommand)
protectedvirtual

◆ Cmd_UpdateBufferContainer()

virtual void CCommandProcessorFragment_OpenGL::Cmd_UpdateBufferContainer ( const CCommandBuffer::SCommand_UpdateBufferContainer * pCommand)
inlineprotectedvirtual

◆ Cmd_UpdateBufferObject()

virtual void CCommandProcessorFragment_OpenGL::Cmd_UpdateBufferObject ( const CCommandBuffer::SCommand_UpdateBufferObject * pCommand)
inlineprotectedvirtual

◆ DestroyTexture()

void CCommandProcessorFragment_OpenGL::DestroyTexture ( int Slot)
protected

◆ GetPresentedImageData()

bool CCommandProcessorFragment_OpenGL::GetPresentedImageData ( uint32_t & Width,
uint32_t & Height,
CImageInfo::EImageFormat & Format,
std::vector< uint8_t > & vDstData )
overrideprotectedvirtual

◆ GLFormatToPixelSize()

size_t CCommandProcessorFragment_OpenGL::GLFormatToPixelSize ( int GLFormat)
staticprotected

◆ InitOpenGL()

bool CCommandProcessorFragment_OpenGL::InitOpenGL ( const SCommand_Init * pCommand)
protected

◆ IsNewApi()

virtual bool CCommandProcessorFragment_OpenGL::IsNewApi ( )
inlineprotectedvirtual

◆ IsTexturedState()

bool CCommandProcessorFragment_OpenGL::IsTexturedState ( const CCommandBuffer::SState & State)
protected

◆ RunCommand()

ERunCommandReturnTypes CCommandProcessorFragment_OpenGL::RunCommand ( const CCommandBuffer::SCommand * pBaseCommand)
overridevirtual

◆ SetState()

void CCommandProcessorFragment_OpenGL::SetState ( const CCommandBuffer::SState & State,
bool Use2DArrayTexture = false )
protected

◆ TextureCreate()

void CCommandProcessorFragment_OpenGL::TextureCreate ( int Slot,
int Width,
int Height,
int GLFormat,
int GLStoreFormat,
int Flags,
uint8_t * pTexData )
protected

◆ TextureUpdate()

void CCommandProcessorFragment_OpenGL::TextureUpdate ( int Slot,
int X,
int Y,
int Width,
int Height,
int GLFormat,
uint8_t * pTexData )
protected

Member Data Documentation

◆ m_2DArrayTarget

TWGLenum CCommandProcessorFragment_OpenGL::m_2DArrayTarget
protected

◆ m_CanvasHeight

uint32_t CCommandProcessorFragment_OpenGL::m_CanvasHeight = 0
protected

◆ m_CanvasWidth

uint32_t CCommandProcessorFragment_OpenGL::m_CanvasWidth = 0
protected

◆ m_Has2DArrayTextures

bool CCommandProcessorFragment_OpenGL::m_Has2DArrayTextures
protected

◆ m_Has2DArrayTexturesAsExtension

bool CCommandProcessorFragment_OpenGL::m_Has2DArrayTexturesAsExtension
protected

◆ m_Has3DTextures

bool CCommandProcessorFragment_OpenGL::m_Has3DTextures
protected

◆ m_HasMipMaps

bool CCommandProcessorFragment_OpenGL::m_HasMipMaps
protected

◆ m_HasNPOTTextures

bool CCommandProcessorFragment_OpenGL::m_HasNPOTTextures
protected

◆ m_HasShaders

bool CCommandProcessorFragment_OpenGL::m_HasShaders
protected

◆ m_IsOpenGLES

bool CCommandProcessorFragment_OpenGL::m_IsOpenGLES
protected

◆ m_LastBlendMode

EBlendMode CCommandProcessorFragment_OpenGL::m_LastBlendMode
protected

◆ m_LastClipEnable

bool CCommandProcessorFragment_OpenGL::m_LastClipEnable
protected

◆ m_MaxTexSize

TWGLint CCommandProcessorFragment_OpenGL::m_MaxTexSize
protected

◆ m_OpenGLTextureLodBIAS

int CCommandProcessorFragment_OpenGL::m_OpenGLTextureLodBIAS
protected

◆ m_pTextureMemoryUsage

std::atomic<uint64_t>* CCommandProcessorFragment_OpenGL::m_pTextureMemoryUsage
protected

◆ m_vTextures

std::vector<CTexture> CCommandProcessorFragment_OpenGL::m_vTextures
protected

The documentation for this class was generated from the following files: