Geometry buffers holder.
More...
Geometry buffers holder.
- Author
- Sylvain DOREMUS
- Version
- 0.7.0.0
- Date
- 18/11/2012
◆ GeometryBuffers()
Constructor.
- Parameters
-
[in] | p_topology | The buffers topology. |
[in] | p_program | The shader program. |
[in] | p_vtx | The vertex buffer. |
[in] | p_idx | The index buffer. |
[in] | p_bones | The bones data buffer. |
[in] | p_inst | The instances matrices buffer. |
◆ ~GeometryBuffers()
virtual C3D_API Castor3D::GeometryBuffers::~GeometryBuffers |
( |
| ) |
|
|
virtual |
◆ Draw()
virtual C3D_API bool Castor3D::GeometryBuffers::Draw |
( |
uint32_t |
p_uiSize, |
|
|
uint32_t |
p_index |
|
) |
| const |
|
pure virtual |
Draws the geometry held into the buffers.
- Parameters
-
[in] | p_uiSize | Specifies the number of elements to be rendered |
[in] | p_index | Specifies the starting index in the enabled arrays |
- Returns
true
if OK
◆ DrawInstanced()
virtual C3D_API bool Castor3D::GeometryBuffers::DrawInstanced |
( |
uint32_t |
p_uiSize, |
|
|
uint32_t |
p_index, |
|
|
uint32_t |
p_count |
|
) |
| const |
|
pure virtual |
Draws the geometry held into the buffers.
- Parameters
-
[in] | p_uiSize | Specifies the number of elements to be rendered |
[in] | p_index | Specifies the starting index in the enabled arrays |
[in] | p_count | The instances count |
- Returns
true
if OK
◆ GetLayout()
- Returns
- The program layout.
References m_layout.
◆ GetTopology()
eTOPOLOGY Castor3D::GeometryBuffers::GetTopology |
( |
| ) |
const |
|
inline |
- Returns
- The buffers topology.
References m_topology.
◆ SetTopology()
void Castor3D::GeometryBuffers::SetTopology |
( |
eTOPOLOGY |
p_value | ) |
|
|
inline |
Sets the buffers topology.
- Parameters
-
References m_topology.
◆ m_bonesBuffer
VertexBuffer* Castor3D::GeometryBuffers::m_bonesBuffer = nullptr |
|
protected |
◆ m_indexBuffer
IndexBuffer* Castor3D::GeometryBuffers::m_indexBuffer = nullptr |
|
protected |
◆ m_layout
◆ m_matrixBuffer
VertexBuffer* Castor3D::GeometryBuffers::m_matrixBuffer = nullptr |
|
protected |
◆ m_topology
eTOPOLOGY Castor3D::GeometryBuffers::m_topology |
|
protected |
◆ m_vertexBuffer
VertexBuffer* Castor3D::GeometryBuffers::m_vertexBuffer = nullptr |
|
protected |
The documentation for this class was generated from the following file: