Ember
A C++ 20 'game engine' built with SDL3 with wide platform support.
|
A group of vertices and indices that can be rendered together. More...
#include <ember_core.h>
Public Attributes | |
std::vector< Vertex > | vertices |
Batched vertex data. More... | |
std::vector< uint32_t > | indices |
Batched index data. More... | |
Uint32 | texture_id = 0 |
Texture used in this batch. More... | |
DrawCommandType | type = DrawCommandType::NONE |
Type of draw command. More... | |
int | z_index = 0 |
Render order. More... | |
UberShader | uber_shader = UberShader::none() |
Shader effects applied. More... | |
DrawCommandMode | mode = DrawCommandMode::TRIANGLES |
float | thickness = 1.0f |
Line thickness for lines. More... | |
A group of vertices and indices that can be rendered together.
std::vector<uint32_t> Batch::indices |
Batched index data.
DrawCommandMode Batch::mode = DrawCommandMode::TRIANGLES |
Uint32 Batch::texture_id = 0 |
Texture used in this batch.
float Batch::thickness = 1.0f |
Line thickness for lines.
DrawCommandType Batch::type = DrawCommandType::NONE |
Type of draw command.
UberShader Batch::uber_shader = UberShader::none() |
Shader effects applied.
std::vector<Vertex> Batch::vertices |
Batched vertex data.
int Batch::z_index = 0 |
Render order.