ofDoc
>
3d
>
of3dPrimitive
Topics
Protected Attributes
Public Functions
Protected Functions
of3dPrimitive
Protected Attributes
ofVec4f
texCoords
bool
usingVbo
ofMesh
mesh
ofMesh
normalsMesh
Public Functions
of3dPrimitive
()
~of3dPrimitive
()
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
()
ofMesh
getMesh
()
ofMesh
getMeshPtr
() const
ofMesh
getMesh
() const
ofVec4f
getTexCoordsPtr
()
ofVec4f
getTexCoords
()
ofVec4f
getTexCoordsPtr
() const
ofVec4f
getTexCoords
() 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
void
normalizeAndApplySavedTexCoords
()
ofIndexType
getIndices
(int startIndex, int endIndex) const