ofDoc > 3d > of3dPrimitive

of3dPrimitive

Protected Attributes

Public Functions

of3dPrimitive (const of3dPrimitive &mom)
of3dPrimitive operator= (const of3dPrimitive &mom)
void mapTexCoords (float u1, float v1, float u2, float v2)
void mapTexCoordsFromTexture (ofTexture &inTexture)
ofMesh getMeshPtr () const
ofMesh getMesh () const
bool hasScaling () const
bool hasNormalsEnabled () const
void enableNormals ()
void enableTextures ()
void enableColors ()
void disableNormals ()
void disableTextures ()
void disableColors ()
void removeMesh (int index)
void removeTexture (int index)
void drawVertices () const
void drawWireframe () const
void drawFaces () const
void draw () const
void draw (ofPolyRenderMode renderType) const
void drawNormals (float length, bool bFaceNormals=false) const
void drawAxes (float a_size) const
void setUseVbo (bool useVbo)
bool isUsingVbo () const

Protected Functions

ofIndexType getIndices (int startIndex, int endIndex) const