Class Spritesheet¶
Defined in File spritesheet.hpp
Class Documentation¶
-
class
nyx
::
Spritesheet
TODO: Document
Public Functions
-
Spritesheet
(Context *ctx, std::string const &name, unsigned int grid_w, unsigned int grid_h, std::initializer_list<std::tuple<std::string, SpriteDef>> defs) TODO: Document.
-
~Spritesheet
() TODO: Document.
-
void
blit
(std::string const &name, int x, int y, int scale = 1) TODO: Document.
Public Members
-
unsigned int
grid_w
TODO: Document.
-
unsigned int
grid_h
TODO: Document.
-
int
offset_x
-
int
offset_y
-
bool
tile_coords
-