Pyrogenesis  trunk
Public Member Functions | Public Attributes | List of all members
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::QuadBatchKey ( const CTexturePtr texture,
const CTexturePtr textureMask 
)
inline

Member Function Documentation

bool QuadBatchKey::operator== ( const QuadBatchKey other) const
inline

Member Data Documentation

CTexturePtr QuadBatchKey::m_Texture
CTexturePtr QuadBatchKey::m_TextureMask

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