A group of vertices for multiple renderables batched together.
More...
#include <VertexBatch.hpp>
A group of vertices for multiple renderables batched together.
Definition at line 18 of file VertexBatch.hpp.
◆ VertexBatch() [1/4]
| galaxy::VertexBatch::VertexBatch |
( |
const int | max, |
|
|
const int | vertex_count, |
|
|
const int | index_count ) |
|
noexcept |
Constructor.
- Template Parameters
-
| max | Max renderable objects. |
| vertex_count | Number of vertices in a single object. |
| index_count | Number of indices in a single object. |
Definition at line 12 of file VertexBatch.cpp.
◆ VertexBatch() [2/4]
◆ ~VertexBatch()
| galaxy::VertexBatch::~VertexBatch |
( |
| ) |
|
|
noexcept |
◆ VertexBatch() [3/4]
| galaxy::VertexBatch::VertexBatch |
( |
| ) |
|
|
privatedelete |
◆ VertexBatch() [4/4]
| galaxy::VertexBatch::VertexBatch |
( |
const VertexBatch & | | ) |
|
|
privatedelete |
Copy constructor.
Deleted.
◆ operator=() [1/2]
◆ push()
| void galaxy::VertexBatch::push |
( |
const std::vector< Vertex > & | vertices, |
|
|
const std::vector< unsigned int > & | indices ) |
|
noexcept |
Add vertex and index data to batch.
- Parameters
-
| vertices | List of vertices. |
| indices | List of indices. |
Definition at line 59 of file VertexBatch.cpp.
◆ flush()
| void galaxy::VertexBatch::flush |
( |
| ) |
|
|
noexcept |
◆ bind()
| void galaxy::VertexBatch::bind |
( |
| ) |
const |
|
noexcept |
◆ count()
| int galaxy::VertexBatch::count |
( |
| ) |
const |
|
nodiscardnoexcept |
◆ offset()
| void * galaxy::VertexBatch::offset |
( |
| ) |
|
|
nodiscardnoexcept |
Gets index offset.
- Returns
- Integer as void pointer for opengl shenanigans.
Definition at line 98 of file VertexBatch.cpp.
◆ vao()
◆ operator=() [2/2]
Copy assignment operator.
Deleted.
◆ m_vertex_count
| int galaxy::VertexBatch::m_vertex_count |
|
private |
◆ m_index_count
| int galaxy::VertexBatch::m_index_count |
|
private |
◆ m_count
| int galaxy::VertexBatch::m_count |
|
private |
◆ m_vertex_length
| int galaxy::VertexBatch::m_vertex_length |
|
private |
◆ m_index_length
| int galaxy::VertexBatch::m_index_length |
|
private |
◆ m_vertices
| std::vector<Vertex> galaxy::VertexBatch::m_vertices |
|
private |
◆ m_indices
| std::vector<unsigned int> galaxy::VertexBatch::m_indices |
|
private |
◆ m_vao
The documentation for this class was generated from the following files: