yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::gfx::RenderCommand Struct Reference

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.
 

Detailed Description

Render command for batch rendering.

Definition at line 19 of file atlas_renderer.h.

Constructor & Destructor Documentation

◆ RenderCommand()

yaze::gfx::RenderCommand::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} 
)
inline

Definition at line 26 of file atlas_renderer.h.

Member Data Documentation

◆ atlas_id

int yaze::gfx::RenderCommand::atlas_id

Atlas ID of bitmap to render.

Definition at line 20 of file atlas_renderer.h.

◆ x

float yaze::gfx::RenderCommand::x

Definition at line 21 of file atlas_renderer.h.

◆ y

float yaze::gfx::RenderCommand::y

Screen coordinates.

Definition at line 21 of file atlas_renderer.h.

◆ scale_x

float yaze::gfx::RenderCommand::scale_x

Definition at line 22 of file atlas_renderer.h.

◆ scale_y

float yaze::gfx::RenderCommand::scale_y

Scale factors.

Definition at line 22 of file atlas_renderer.h.

◆ rotation

float yaze::gfx::RenderCommand::rotation

Rotation angle in degrees.

Definition at line 23 of file atlas_renderer.h.

◆ tint

SDL_Color yaze::gfx::RenderCommand::tint

Color tint.

Definition at line 24 of file atlas_renderer.h.


The documentation for this struct was generated from the following file: