Toplevel holder of the assets meshes, materials, textures and shaders.
More...
#include <SLAssetManager.h>
Toplevel holder of the assets meshes, materials, textures and shaders.
All these assets can be shared among instances of SLScene, SLNode and SLMaterial. Shared assets are meshes (SLMesh), materials (SLMaterial), textures (SLGLTexture) and shader programs (SLGLProgram). One instance of SLAssetManager must be owned and destroyed by the app (see e.g. AppDemo.h).
◆ SLAssetManager()
SLAssetManager::SLAssetManager |
( |
SLstring |
fontPath = "" , |
|
|
bool |
generateStaticFonts = false |
|
) |
| |
|
inline |
◆ ~SLAssetManager()
SLAssetManager::~SLAssetManager |
( |
| ) |
|
◆ clear()
void SLAssetManager::clear |
( |
| ) |
|
for all assets, clear gpu data
◆ deleteDataGpu()
void SLAssetManager::deleteDataGpu |
( |
| ) |
|
for all assets, clear gpu data
◆ deleteFonts()
void SLAssetManager::deleteFonts |
( |
| ) |
|
|
static |
Deletes all static fonts.
◆ generateFonts()
Generates all static fonts.
◆ getFont()
returns nearest font for a given height in mm
◆ getProgramByName()
SLGLProgram * SLAssetManager::getProgramByName |
( |
const string & |
programName | ) |
|
Returns the pointer to shader program if found by name.
◆ materials()
◆ merge()
merge other asset manager into this
◆ meshes()
SLVMesh & SLAssetManager::meshes |
( |
| ) |
|
|
inline |
◆ programs()
◆ removeMesh()
bool SLAssetManager::removeMesh |
( |
SLMesh * |
mesh | ) |
|
Removes the specified mesh from the meshes resource vector.
◆ textures()
◆ _materials
Vector of all materials pointers.
◆ _meshes
◆ _programs
Vector of all shader program pointers.
◆ _textures
Vector of all texture pointers.
◆ font07
7 pixel high fixed size font
◆ font08
8 pixel high fixed size font
◆ font09
9 pixel high fixed size font
◆ font10
10 pixel high fixed size font
◆ font12
12 pixel high fixed size font
◆ font14
14 pixel high fixed size font
◆ font16
16 pixel high fixed size font
◆ font18
18 pixel high fixed size font
◆ font20
20 pixel high fixed size font
◆ font22
22 pixel high fixed size font
◆ font24
24 pixel high fixed size font
The documentation for this class was generated from the following files: