11 #ifndef SLASSETMANAGER_H 
   12 #define SLASSETMANAGER_H 
static SLint dpi
Dot per inch resolution of screen.
 
vector< SLGLProgram * > SLVGLProgram
STL vector of SLGLProgram pointers.
 
vector< SLGLTexture * > SLVGLTexture
STL vector of SLGLTexture pointers.
 
vector< SLMaterial * > SLVMaterial
STL vector of material pointers.
 
vector< SLMesh * > SLVMesh
 
SLAnimManager is the central class for all animation handling.
 
Toplevel holder of the assets meshes, materials, textures and shaders.
 
SLVGLTexture _textures
Vector of all texture pointers.
 
bool removeMesh(SLMesh *mesh)
Removes the specified mesh from the meshes resource vector.
 
void clear()
for all assets, clear gpu data
 
static SLTexFont * font24
24 pixel high fixed size font
 
static void deleteFonts()
Deletes all static fonts.
 
static SLTexFont * font10
10 pixel high fixed size font
 
static SLTexFont * getFont(SLfloat heightMM, SLint dpi)
returns nearest font for a given height in mm
 
static SLTexFont * font20
20 pixel high fixed size font
 
static SLTexFont * font09
9 pixel high fixed size font
 
static SLTexFont * font22
22 pixel high fixed size font
 
static SLTexFont * font14
14 pixel high fixed size font
 
static SLTexFont * font07
7 pixel high fixed size font
 
static SLTexFont * font08
8 pixel high fixed size font
 
SLVGLProgram & programs()
 
static SLTexFont * font18
18 pixel high fixed size font
 
SLGLProgram * getProgramByName(const string &programName)
Returns the pointer to shader program if found by name.
 
void merge(SLAssetManager &other)
merge other asset manager into this
 
SLVMaterial _materials
Vector of all materials pointers.
 
static SLTexFont * font12
12 pixel high fixed size font
 
SLVGLProgram _programs
Vector of all shader program pointers.
 
void deleteDataGpu()
for all assets, clear gpu data
 
static void generateFonts(SLstring fontPath, SLGLProgram &fontTexProgram)
Generates all static fonts.
 
SLVMesh _meshes
Vector of all meshes.
 
void generateStaticFonts(SLstring fontPath)
 
bool removeProgram(SLGLProgram *program)
Removes the specified mesh from the meshes resource vector.
 
SLVMaterial & materials()
 
static SLTexFont * font16
16 pixel high fixed size font
 
SLVGLTexture & textures()
 
Active or visible camera node class.
 
Encapsulation of an OpenGL shader program object.
 
An SLMesh object is a triangulated mesh, drawn with one draw call.
 
Texture Font class inherits SLGLTexture for alpha blended font rendering.