Castor3D
..
|
Description of all elements in a vertex buffer. More...
Public Types | |
using | iterator = BufferElementDeclarationArrayIt |
using | const_iterator = BufferElementDeclarationArrayConstIt |
Public Member Functions | |
DECLARE_VECTOR (BufferElementDeclaration, BufferElementDeclaration) | |
C3D_API | BufferDeclaration () |
Constructor. More... | |
C3D_API | BufferDeclaration (BufferElementDeclaration const *p_elements, uint32_t p_count) |
Constructor. More... | |
template<uint32_t N> | |
BufferDeclaration (BufferElementDeclaration const(&p_elements)[N]) | |
Constructor. More... | |
BufferDeclaration (std::vector< BufferElementDeclaration > const &p_elements) | |
Constructor. More... | |
C3D_API | ~BufferDeclaration () |
Destructor. More... | |
uint32_t | GetSize () const |
Retrieves the elements count. More... | |
uint32_t | GetStride () const |
Retrieves the total elements byte count. More... | |
BufferElementDeclarationArray::iterator | begin () |
BufferElementDeclarationArray::const_iterator | begin () const |
BufferElementDeclarationArray::iterator | end () |
BufferElementDeclarationArray::const_iterator | end () const |
Protected Attributes | |
BufferElementDeclarationArray | m_arrayElements |
Element description array. More... | |
uint32_t | m_uiStride |
Byte size of the element. More... | |
Description of all elements in a vertex buffer.
using Castor3D::BufferDeclaration::const_iterator = BufferElementDeclarationArrayConstIt |
using Castor3D::BufferDeclaration::iterator = BufferElementDeclarationArrayIt |
C3D_API Castor3D::BufferDeclaration::BufferDeclaration | ( | ) |
Constructor.
C3D_API Castor3D::BufferDeclaration::BufferDeclaration | ( | BufferElementDeclaration const * | p_elements, |
uint32_t | p_count | ||
) |
Constructor.
[in] | p_elements | The elements array |
[in] | p_count | Elements array size |
|
inline |
Constructor.
[in] | p_elements | The elements array |
|
inline |
Constructor.
[in] | p_elements | The elements array |
C3D_API Castor3D::BufferDeclaration::~BufferDeclaration | ( | ) |
Destructor.
|
inline |
References m_arrayElements.
|
inline |
References m_arrayElements.
Castor3D::BufferDeclaration::DECLARE_VECTOR | ( | BufferElementDeclaration | , |
BufferElementDeclaration | |||
) |
|
inline |
References m_arrayElements.
|
inline |
References m_arrayElements.
|
inline |
|
inline |
Retrieves the total elements byte count.
References m_uiStride.
Referenced by Castor3D::VertexBuffer::LinkCoords().
|
protected |
|
protected |
Byte size of the element.
Referenced by GetStride().