Simulant  21.06-50
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
Public Member Functions | List of all members
smlt::LocalAssetManager Class Reference
Inheritance diagram for smlt::LocalAssetManager:
smlt::AssetManager smlt::RefCounted< LocalAssetManager > smlt::WindowHolder smlt::TwoPhaseConstructed

Public Member Functions

 LocalAssetManager (Window *window, AssetManager *parent=nullptr)
 
bool init ()
 
void clean_up ()
 
- Public Member Functions inherited from smlt::AssetManager
 AssetManager (Window *window, AssetManager *parent=nullptr)
 
ParticleScriptPtr new_particle_script_from_file (const Path &filename, GarbageCollectMethod garbage_collect=GARBAGE_COLLECT_PERIODIC)
 
void destroy_particle_script (ParticleScriptID id)
 
ParticleScriptPtr particle_script (ParticleScriptID id)
 
const ParticleScriptPtr particle_script (ParticleScriptID id) const
 
std::size_t particle_script_count () const
 
bool has_particle_script (ParticleScriptID id) const
 
ParticleScriptPtr find_particle_script (const std::string &name)
 
TexturePtr new_texture_from_file (const Path &filename, GarbageCollectMethod garbage_collect=GARBAGE_COLLECT_PERIODIC)
 
void destroy_texture (TextureID id)
 
TexturePtr texture (TextureID id)
 
const TexturePtr texture (TextureID id) const
 
std::size_t texture_count () const
 
bool has_texture (TextureID id) const
 
TexturePtr find_texture (const std::string &alias)
 
void destroy_mesh (MeshID id)
 
MeshPtr mesh (MeshID id)
 
const MeshPtr mesh (MeshID id) const
 
std::size_t mesh_count () const
 
bool has_mesh (MeshID id) const
 
MeshPtr find_mesh (const std::string &name)
 
MaterialPtr new_material_from_file (const Path &filename, GarbageCollectMethod garbage_collect=GARBAGE_COLLECT_PERIODIC)
 
void destroy_material (const MaterialID &id)
 
MaterialPtr material (const MaterialID &id)
 
const MaterialPtr material (const MaterialID &id) const
 
std::size_t material_count () const
 
bool has_material (const MaterialID &id) const
 
MaterialPtr find_material (const std::string &name)
 
SoundPtr new_sound_from_file (const Path &filename, GarbageCollectMethod garbage_collect=GARBAGE_COLLECT_PERIODIC)
 
void destroy_sound (SoundID id)
 
SoundPtr sound (SoundID id)
 
const SoundPtr sound (SoundID id) const
 
std::size_t sound_count () const
 
bool has_sound (SoundID id) const
 
SoundPtr find_sound (const std::string &name)
 
FontPtr new_font_from_file (const Path &filename, GarbageCollectMethod garbage_collect=GARBAGE_COLLECT_PERIODIC)
 
FontPtr new_font_from_ttf (const Path &filename, uint32_t font_size, CharacterSet charset=CHARACTER_SET_LATIN, GarbageCollectMethod garbage_collect=GARBAGE_COLLECT_PERIODIC)
 
void destroy_font (FontID id)
 
FontPtr font (FontID id)
 
const FontPtr font (FontID id) const
 
std::size_t font_count () const
 
bool has_font (FontID id) const
 
FontPtr find_font (const std::string &alias)
 
TexturePtr new_texture (uint16_t width, uint16_t height, TextureFormat format=TEXTURE_FORMAT_RGBA_4UB_8888, GarbageCollectMethod garbage_collect=GARBAGE_COLLECT_PERIODIC)
 
TexturePtr new_texture_from_file (const Path &path, TextureFlags flags, GarbageCollectMethod garbage_collect=GARBAGE_COLLECT_PERIODIC)
 
MaterialPtr new_material (GarbageCollectMethod garbage_collect=GARBAGE_COLLECT_PERIODIC)
 
MeshPtr new_mesh (VertexSpecification vertex_specification, GarbageCollectMethod garbage_collect=GARBAGE_COLLECT_PERIODIC)
 
MeshPtr new_mesh (VertexDataPtr vertex_data, GarbageCollectMethod garbage_collect=GARBAGE_COLLECT_PERIODIC)
 
MeshPtr new_mesh_from_file (const Path &path, const VertexSpecification &desired_specification=VertexSpecification::DEFAULT, const MeshLoadOptions &options=MeshLoadOptions(), GarbageCollectMethod garbage_collect=GARBAGE_COLLECT_PERIODIC)
 
MeshPtr new_mesh_from_submesh (SubMesh *submesh, GarbageCollectMethod garbage_collect=GARBAGE_COLLECT_PERIODIC)
 
MeshPtr new_mesh_from_heightmap (const Path &image_file, const HeightmapSpecification &spec=HeightmapSpecification(), GarbageCollectMethod garbage_collect=GARBAGE_COLLECT_PERIODIC)
 
MeshPtr new_mesh_from_heightmap (const TextureID &texture, const HeightmapSpecification &spec=HeightmapSpecification(), GarbageCollectMethod garbage_collect=GARBAGE_COLLECT_PERIODIC)
 
MeshPtr new_mesh_from_vertices (VertexSpecification vertex_specification, const std::string &submesh_name, const std::vector< smlt::Vec2 > &vertices, MeshArrangement arrangement=MESH_ARRANGEMENT_TRIANGLES, GarbageCollectMethod garbage_collect=GARBAGE_COLLECT_PERIODIC)
 
MeshPtr new_mesh_from_vertices (VertexSpecification vertex_specification, const std::string &submesh_name, const std::vector< smlt::Vec3 > &vertices, MeshArrangement arrangement=MESH_ARRANGEMENT_TRIANGLES, GarbageCollectMethod garbage_collect=GARBAGE_COLLECT_PERIODIC)
 
MeshPtr new_mesh_as_cube_with_submesh_per_face (float width, GarbageCollectMethod garbage_collect=GARBAGE_COLLECT_PERIODIC)
 
MaterialPtr new_material_from_texture (TextureID texture, GarbageCollectMethod garbage_collect=GARBAGE_COLLECT_PERIODIC)
 
void update (float dt)
 
virtual FontPtr default_font (DefaultFontStyle style) const
 
virtual MaterialPtr default_material () const
 
MaterialPtr clone_material (const MaterialID &mat_id, GarbageCollectMethod garbage_collect=GARBAGE_COLLECT_PERIODIC)
 
MaterialPtr clone_default_material (GarbageCollectMethod garbage_collect=GARBAGE_COLLECT_PERIODIC)
 
AssetManagerbase_manager () const
 
void run_garbage_collection ()
 
bool is_base_manager () const
 
- Public Member Functions inherited from smlt::WindowHolder
 WindowHolder (Window *window)
 

Additional Inherited Members

- Public Types inherited from smlt::RefCounted< LocalAssetManager >
typedef std::shared_ptr< LocalAssetManagerptr
 
typedef std::weak_ptr< LocalAssetManagerwptr
 
- Static Public Member Functions inherited from smlt::RefCounted< LocalAssetManager >
static RefCounted< LocalAssetManager >::ptr create (Args &&... args)
 
static RefCounted< LocalAssetManager >::ptr create ()
 
- Public Attributes inherited from smlt::WindowHolder
Property< Window *WindowHolder::* > window = { this, &WindowHolder::window_ }
 
- Protected Member Functions inherited from smlt::WindowHolder
Windowget_window () const
 
- Protected Member Functions inherited from smlt::RefCounted< LocalAssetManager >
 RefCounted (Args &&...)
 

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