48     UV[0].resize(
P.size()); 
 
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.
 
SLVushort I16
Vector of vertex indices 16 bit.
 
SLbool _isVolume
Flag for RT if mesh is a closed volume.
 
SLVVec3f N
Vector for vertex normals (opt.) layout (location = 1)
 
virtual void deleteData()
SLMesh::deleteData deletes all mesh data and vbo's.
 
SLVVec2f UV[2]
Array of 2 Vectors for tex. coords. (opt.) layout (location = 2)
 
SLVVec3f P
Vector for vertex positions layout (location = 0)
 
void buildMesh(SLMaterial *mat)
Builds the mesh by copying the vertex info into the arrays of SLMescj.
 
SLTriangle(SLAssetManager *assetMgr, SLMaterial *mat, const SLstring &name="triangle mesh", const SLVec3f &p0=SLVec3f(0, 0, 0), const SLVec3f &p1=SLVec3f(1, 0, 0), const SLVec3f &p2=SLVec3f(0, 1, 0), const SLVec2f &t0=SLVec2f(0, 0), const SLVec2f &t1=SLVec2f(1, 0), const SLVec2f &t2=SLVec2f(0, 1))
 
SLVec2f t[3]
Array of 3 vertex tex. coords. (opt.)
 
SLVec3f p[3]
Array of 3 vertex positions.