|
Castor3D
..
|
Holds data of a vertex buffer elements group. More...
Public Member Functions | |
| C3D_API | BufferElementGroup (uint8_t *p_buffer=nullptr, uint32_t p_index=0) |
| Constructor. More... | |
| virtual C3D_API | ~BufferElementGroup () |
| Destructor. More... | |
| C3D_API void | LinkCoords (uint8_t *p_buffer) |
| Links the element values to the ones in parameter. More... | |
| C3D_API void | LinkCoords (uint8_t *p_buffer, uint32_t p_stride) |
| Links the element values to the ones in parameter. More... | |
| uint8_t * | ptr () |
| Retrieves a pointer on the data buffer. More... | |
| uint8_t const * | const_ptr () const |
| Retrieves a constant pointer on the data buffer. More... | |
| uint32_t | GetIndex () const |
| Retrieves the group index. More... | |
| void | SetIndex (uint32_t p_index) |
| Sets the group index. More... | |
Protected Attributes | |
| uint8_t * | m_pBuffer |
| The elements values. More... | |
| uint32_t | m_index |
| The group index. More... | |
Holds data of a vertex buffer elements group.
| C3D_API Castor3D::BufferElementGroup::BufferElementGroup | ( | uint8_t * | p_buffer = nullptr, |
| uint32_t | p_index = 0 |
||
| ) |
Constructor.
| [in] | p_buffer | The data buffer |
| [in] | p_index | The group index |
|
virtual |
Destructor.
|
inline |
Retrieves a constant pointer on the data buffer.
References m_pBuffer.
Referenced by Castor3D::Vertex::GetBitangent(), Castor3D::Vertex::GetNormal(), Castor3D::Vertex::GetPosition(), Castor3D::Vertex::GetTangent(), and Castor3D::Vertex::GetTexCoord().
Here is the caller graph for this function:
|
inline |
| C3D_API void Castor3D::BufferElementGroup::LinkCoords | ( | uint8_t * | p_buffer | ) |
Links the element values to the ones in parameter.
| C3D_API void Castor3D::BufferElementGroup::LinkCoords | ( | uint8_t * | p_buffer, |
| uint32_t | p_stride | ||
| ) |
Links the element values to the ones in parameter.
| [in] | p_buffer | The values buffer |
| [in] | p_stride | The element binay size |
|
inline |
Retrieves a pointer on the data buffer.
References m_pBuffer.
Referenced by Castor3D::Vertex::GetBitangent(), Castor3D::Vertex::GetNormal(), Castor3D::Vertex::GetPosition(), Castor3D::Vertex::GetTangent(), Castor3D::Vertex::GetTexCoord(), Castor3D::Vertex::SetBitangent(), Castor3D::Vertex::SetNormal(), Castor3D::Vertex::SetPosition(), Castor3D::Vertex::SetTangent(), and Castor3D::Vertex::SetTexCoord().
Here is the caller graph for this function:
|
inline |
|
protected |
The group index.
Referenced by GetIndex(), and SetIndex().
|
protected |
The elements values.
Referenced by const_ptr(), and ptr().
1.8.15