Render command for batch rendering. More...
#include <atlas_renderer.h>
Public Member Functions | |
RenderCommand (int id, float x_pos, float y_pos, float sx=1.0f, float sy=1.0f, float rot=0.0f, SDL_Color color={255, 255, 255, 255}) | |
Public Attributes | |
int | atlas_id |
Atlas ID of bitmap to render. | |
float | x |
float | y |
Screen coordinates. | |
float | scale_x |
float | scale_y |
Scale factors. | |
float | rotation |
Rotation angle in degrees. | |
SDL_Color | tint |
Color tint. | |
Render command for batch rendering.
Definition at line 19 of file atlas_renderer.h.
|
inline |
Definition at line 26 of file atlas_renderer.h.
int yaze::gfx::RenderCommand::atlas_id |
Atlas ID of bitmap to render.
Definition at line 20 of file atlas_renderer.h.
float yaze::gfx::RenderCommand::x |
Definition at line 21 of file atlas_renderer.h.
float yaze::gfx::RenderCommand::y |
Screen coordinates.
Definition at line 21 of file atlas_renderer.h.
float yaze::gfx::RenderCommand::scale_x |
Definition at line 22 of file atlas_renderer.h.
float yaze::gfx::RenderCommand::scale_y |
Scale factors.
Definition at line 22 of file atlas_renderer.h.
float yaze::gfx::RenderCommand::rotation |
Rotation angle in degrees.
Definition at line 23 of file atlas_renderer.h.
SDL_Color yaze::gfx::RenderCommand::tint |
Color tint.
Definition at line 24 of file atlas_renderer.h.