Simulant  21.06-50
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
Inheritance diagram for smlt::SpriteManager:
smlt::WindowHolder

Public Member Functions

 SpriteManager (Window *window, 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 ()
 
- Public Member Functions inherited from smlt::WindowHolder
 WindowHolder (Window *window)
 

Public Attributes

Property< decltype(&SpriteManager::stage_)> stage = { this, &SpriteManager::stage_ }
 
- Public Attributes inherited from smlt::WindowHolder
Property< Window *WindowHolder::* > window = { this, &WindowHolder::window_ }
 

Friends

class Sprite
 

Additional Inherited Members

- Protected Member Functions inherited from smlt::WindowHolder
Windowget_window () const
 

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