Simulant  21.12-160
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
Public Member Functions | Public Attributes | Friends | List of all members
smlt::SpriteManager Class Reference

Public Member Functions

 SpriteManager (Stage *stage, StageNodePool *pool)
 
SpritePtr new_sprite ()
 
SpritePtr new_sprite_from_file (const smlt::Path &filename, uint32_t frame_width, uint32_t frame_height, const SpritesheetAttrs &attrs=SpritesheetAttrs())
 
SpritePtr new_sprite_from_texture (TextureID texture_id, uint32_t frame_width, uint32_t frame_height, const SpritesheetAttrs &attrs=SpritesheetAttrs())
 
SpritePtr sprite (SpriteID s)
 
bool has_sprite (SpriteID s) const
 
SpritePtr destroy_sprite (SpriteID s)
 
std::size_t sprite_count () const
 
void destroy_all ()
 
void destroy_object (Sprite *skybox)
 
void destroy_object_immediately (Sprite *skybox)
 

Public Attributes

Property< decltype(&SpriteManager::stage_)> stage = { this, &SpriteManager::stage_ }
 

Friends

class Sprite
 

The documentation for this class was generated from the following files: