15 #define SL_LOAD_ASSETS_IN_PARALLEL 1
128 if (sp->name() == programName)
139 m->assetManager(
this);
210 SLfloat targetH_PX = dpmm * heightMM;
212 if (targetH_PX < 7)
return font07;
213 if (targetH_PX < 8)
return font08;
214 if (targetH_PX < 9)
return font09;
215 if (targetH_PX < 10)
return font10;
216 if (targetH_PX < 12)
return font12;
217 if (targetH_PX < 14)
return font14;
218 if (targetH_PX < 16)
return font16;
219 if (targetH_PX < 18)
return font18;
220 if (targetH_PX < 20)
return font20;
221 if (targetH_PX < 24)
return font22;
static SLint dpi
Dot per inch resolution of screen.
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()
Encapsulation of an OpenGL shader program object.
static SLGLProgramGeneric * get(SLStdShaderProg id)
Get program reference for given id.
Defines a standard CG material with textures and a shader program.
An SLMesh object is a triangulated mesh, drawn with one draw call.
Texture Font class inherits SLGLTexture for alpha blended font rendering.