#include <vertex_array.h>
Mesh interface.
Definition at line 27 of file vertex_array.h.
◆ vertex_array()
scl::vertex_array::vertex_array |
( |
mesh_type |
MeshType | ) |
|
◆ ~vertex_array()
virtual scl::vertex_array::~vertex_array |
( |
| ) |
|
|
virtualdefault |
Vertex array default destructor.
◆ Bind()
virtual void scl::vertex_array::Bind |
( |
| ) |
const |
|
pure virtual |
- Bind vertex array to current render stage function.
- Parameters
-
- Returns
- None.
Implemented in scl::gl_vertex_array.
◆ Create()
- Create vertex array function.
- Parameters
-
Type | - creating mesh type. |
VertexBuffer | - vertex buffer to link to vertex array. |
IndexBuffer | - vartex indicies buffer to be linked to vertex array. |
- Returns
- pointer to created vertex array.
Definition at line 17 of file vertex_array.cpp.
18{
20 {
23 }
24
26 return nullptr;
27}
#define SCL_CORE_ASSERT(expr,...)
static render_context_api GetApi()
◆ GetIndexBuffer()
Index buffer, linked to vertex array getter function.
Definition at line 40 of file vertex_array.h.
shared< index_buffer > IndexBuffer
◆ GetType()
mesh_type scl::vertex_array::GetType |
( |
| ) |
const |
|
inline |
Vertex array getter/setter functions.
Mesh type getter function.
Definition at line 36 of file vertex_array.h.
◆ GetVertexBuffer()
Vertex buffer, linked to vertex array getter function.
Definition at line 38 of file vertex_array.h.
shared< vertex_buffer > VertexBuffer
◆ SetIndexBuffer()
virtual void scl::vertex_array::SetIndexBuffer |
( |
const shared< index_buffer > & |
IndexBuffer | ) |
|
|
pure virtual |
◆ SetVertexBuffer()
virtual void scl::vertex_array::SetVertexBuffer |
( |
const shared< vertex_buffer > & |
VertexBuffer | ) |
|
|
pure virtual |
◆ Unbind()
virtual void scl::vertex_array::Unbind |
( |
| ) |
const |
|
pure virtual |
- Unbind vertex array from current render stage function.
- Parameters
-
- Returns
- None.
Implemented in scl::gl_vertex_array.
◆ IndexBuffer
◆ Type
◆ VertexBuffer
The documentation for this class was generated from the following files: