42         assert(points.size() > 1);
 
   47             for (
SLuint i = 0; i < 
P.size(); ++i)
 
   50             for (
SLuint i = 0; i < 
P.size(); ++i)
 
vector< SLVec3f > SLVVec3f
 
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.
 
SLVuint I32
Vector of vertex indices 32 bit.
 
SLVushort I16
Vector of vertex indices 16 bit.
 
SLGLPrimitiveType _primitive
Primitive type (default triangles)
 
SLVVec3f P
Vector for vertex positions layout (location = 0)
 
const SLstring & name() const
 
SLPolyline creates a polyline object.
 
SLPolyline(SLAssetManager *assetMgr, const SLstring &name="Polyline")
 
void buildMesh(const SLVVec3f &points, SLbool closed=false, SLMaterial *material=nullptr)
 
SLPolyline(SLAssetManager *assetMgr, const SLVVec3f &points, SLbool closed=false, const SLstring &name="Polyline", SLMaterial *material=nullptr)
ctor for polyline with a vector of points