29 #ifndef NOMLIB_SDL2_SPRITE_BATCH_HEADERS
30 #define NOMLIB_SDL2_SPRITE_BATCH_HEADERS
35 #include "nomlib/config.hpp"
36 #include "nomlib/math/Coords.hpp"
37 #include "nomlib/graphics/Texture.hpp"
38 #include "nomlib/graphics/sprite/Sprite.hpp"
39 #include "nomlib/graphics/sprite/SpriteSheet.hpp"
69 int32
frames (
void )
const;
71 const std::string& sheet_filename (
void )
const;
94 #endif // include guard defined
Extended bitmap object rendering – utilizes sprite sheets.
Coords offsets
Source (input) coordinates – used for sprite sheet positioning.
int32 frames(void) const
Obtain the number of frames available.
SpriteBatch & operator=(const SpriteBatch &other)
Copy assignment operator.
void setSheetID(int32 id)
Set a new frame ID to render.
virtual ~SpriteBatch(void)
Destructor.
int32 sheet_id
The sheet's frame ID presently in use.
Specialized class container for the creation of sprite sheets via RFC 4627 JSON-compliant file input...
int32 getSheetID(void) const
Get the object's current sheet_id.
SpriteSheet sprite_sheet
Our attached sprite sheet object.
Coordinate values (x, y, z, width, height ) wrapper.
Base class for bitmap objects.