Toplevel holder of the assets meshes, materials, textures and shaders.
Defines a standard CG material with textures and a shader program.
An SLMesh object is a triangulated mesh, drawn with one draw call.
const SLstring & name() const
SLRectangle creates a rectangular mesh with a certain resolution.
SLuint _resX
resolution in x direction
void buildMesh(SLMaterial *mat)
SLRectangle::buildMesh fills in the underlying arrays from the SLMesh object.
SLuint _resY
resolution in y direction
SLRectangle(SLAssetManager *assetMgr, const SLVec2f &min, const SLVec2f &max, SLuint resX, SLuint resY, const SLstring &name="rectangle mesh", SLMaterial *mat=nullptr)
ctor for rectangle w. min & max corner
SLVec2f _uv_min
min corner tex.coord.
SLVec2f _uv_max
max corner tex.coord.