Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
anonymous_namespace{OverlayRenderer.cpp}::QuadBatchKey Struct Reference

Key used to group quads into batches for more efficient rendering. More...

Public Member Functions

 QuadBatchKey (const CTexturePtr &texture, const CTexturePtr &textureMask)
 
bool operator== (const QuadBatchKey &other) const
 

Public Attributes

CTexturePtr m_Texture
 
CTexturePtr m_TextureMask
 

Detailed Description

Key used to group quads into batches for more efficient rendering.

Currently groups by the combination of the main texture and the texture mask, to minimize texture swapping during rendering.

Constructor & Destructor Documentation

◆ QuadBatchKey()

anonymous_namespace{OverlayRenderer.cpp}::QuadBatchKey::QuadBatchKey ( const CTexturePtr texture,
const CTexturePtr textureMask 
)
inline

Member Function Documentation

◆ operator==()

bool anonymous_namespace{OverlayRenderer.cpp}::QuadBatchKey::operator== ( const QuadBatchKey other) const
inline

Member Data Documentation

◆ m_Texture

CTexturePtr anonymous_namespace{OverlayRenderer.cpp}::QuadBatchKey::m_Texture

◆ m_TextureMask

CTexturePtr anonymous_namespace{OverlayRenderer.cpp}::QuadBatchKey::m_TextureMask

The documentation for this struct was generated from the following file: