Ember
A C++ 20 'game engine' built with SDL3 with wide platform support.
|
Represents a single rendering command. More...
#include <ember_core.h>
Public Member Functions | |
DrawCommand (DrawCommandType t, int z=0) | |
Constructs a DrawCommand with type and optional z-index. More... | |
Public Attributes | |
DrawCommandType | type = DrawCommandType::NONE |
Type of draw command. More... | |
std::vector< Vertex > | vertices |
Vertex data. More... | |
std::vector< uint32_t > | indices |
Index buffer. More... | |
Uint32 | texture_id = 0 |
Texture used (if any). More... | |
float | line_width = 1.0f |
Line thickness (if applicable). More... | |
int | circle_segments = 32 |
Number of segments for circles. More... | |
int | z_index = 0 |
Z-index (render order). More... | |
Represents a single rendering command.
|
inlineexplicit |
Constructs a DrawCommand with type and optional z-index.
t | Type of command. |
z | Z-index (default = 0). |
int DrawCommand::circle_segments = 32 |
Number of segments for circles.
std::vector<uint32_t> DrawCommand::indices |
Index buffer.
float DrawCommand::line_width = 1.0f |
Line thickness (if applicable).
Uint32 DrawCommand::texture_id = 0 |
Texture used (if any).
DrawCommandType DrawCommand::type = DrawCommandType::NONE |
Type of draw command.
int DrawCommand::z_index = 0 |
Z-index (render order).