Castor3D  ..
Public Member Functions | Public Attributes | List of all members
Castor3D::BufferElementDeclaration Struct Reference

Buffer element description. More...

Public Member Functions

 BufferElementDeclaration ()
 Constructor. More...
 
 BufferElementDeclaration (Castor::String const &p_name, uint32_t p_usages, eELEMENT_TYPE p_type, uint32_t p_offset=0)
 Constructor. More...
 

Public Attributes

Castor::String m_name
 The associated variable name. More...
 
uint32_t m_usages
 Element usage. More...
 
eELEMENT_TYPE m_dataType
 Element type. More...
 
uint32_t m_offset
 Offset in buffer. More...
 

Detailed Description

Buffer element description.

Author
Sylvain DOREMUS
Version
0.6.1.0
Date
03/01/2011
Remarks
Describes usage and type of an element in a vertex buffer.

Constructor & Destructor Documentation

◆ BufferElementDeclaration() [1/2]

Castor3D::BufferElementDeclaration::BufferElementDeclaration ( )
inline

Constructor.

◆ BufferElementDeclaration() [2/2]

Castor3D::BufferElementDeclaration::BufferElementDeclaration ( Castor::String const &  p_name,
uint32_t  p_usages,
eELEMENT_TYPE  p_type,
uint32_t  p_offset = 0 
)
inline

Constructor.

Parameters
[in]p_nameThe associated variable name.
[in]p_usagesElement possible usages (eELEMENT_USAGE combination).
[in]p_typeElement type.
[in]p_offsetOffset in the stream.

Member Data Documentation

◆ m_dataType

eELEMENT_TYPE Castor3D::BufferElementDeclaration::m_dataType

Element type.

Referenced by Castor3D::operator!=(), and Castor3D::operator==().

◆ m_name

Castor::String Castor3D::BufferElementDeclaration::m_name

The associated variable name.

Referenced by Castor3D::operator!=(), and Castor3D::operator==().

◆ m_offset

uint32_t Castor3D::BufferElementDeclaration::m_offset

Offset in buffer.

Referenced by Castor3D::operator!=(), and Castor3D::operator==().

◆ m_usages

uint32_t Castor3D::BufferElementDeclaration::m_usages

Element usage.

Referenced by Castor3D::operator!=(), and Castor3D::operator==().


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