3485bcb2a0
Now batches are actually batches. Also added the MeshFactory class. Drawing modes are now specified with DrawMode instead of the GLenum. Renderables must be specified with a draw mode.
13 lines
271 B
C++
13 lines
271 B
C++
#pragma once
|
|
|
|
template <typename VertexType, typename IndexType>
|
|
struct Mesh
|
|
{
|
|
typedef VertexType VertexType;
|
|
typedef IndexType IndexType;
|
|
|
|
VertexType* vertices = nullptr;
|
|
unsigned int vertex_count = 0;
|
|
IndexType* indices = nullptr;
|
|
unsigned int index_count = 0;
|
|
}; |