1 #ifndef COIN_SOPRIMITIVEVERTEXCACHE_H 2 #define COIN_SOPRIMITIVEVERTEXCACHE_H 36 #include <Inventor/caches/SoCache.h> 37 #include <Inventor/system/gl.h> 38 #include <Inventor/SbVec3f.h> 39 #include <Inventor/SbVec4f.h> 40 #include <Inventor/SbVec2f.h> 41 #include <Inventor/tools/SbPimplPtr.h> 43 class SoPrimitiveVertexCacheP;
58 ALL = (NORMAL|TEXCOORD|COLOR)
64 void renderTriangles(
SoState * state,
const int arrays = ALL)
const;
65 void renderLines(
SoState * state,
const int arrays = ALL)
const;
66 void renderPoints(
SoState * state,
const int array = ALL)
const;
71 const int * pointdetailidx = NULL);
76 int getNumVertices(
void)
const;
77 const SbVec3f * getVertexArray(
void)
const;
78 const SbVec3f * getNormalArray(
void)
const;
79 const SbVec4f * getTexCoordArray(
void)
const;
80 const SbVec2f * getBumpCoordArray(
void)
const;
81 const uint8_t * getColorArray(
void)
const;
83 int getNumTriangleIndices(
void)
const;
84 const GLint * getTriangleIndices(
void)
const;
85 int32_t getTriangleIndex(
const int idx)
const;
87 SbBool colorPerVertex(
void)
const;
88 const SbVec4f * getMultiTextureCoordinateArray(
const int unit)
const;
90 int getNumLineIndices(
void)
const;
91 const GLint * getLineIndices(
void)
const;
93 int getNumPointIndices(
void)
const;
94 const GLint * getPointIndices(
void)
const;
97 void depthSortTriangles(
SoState * state);
100 SbPimplPtr<SoPrimitiveVertexCacheP> pimpl;
107 #endif // COIN_SOPRIMITIVEVERTEXCACHE_H The SbVec2f class is a 2 dimensional vector with floating point coordinates.This vector class is used...
Definition: SbVec2f.h:49
virtual SbBool isValid(const SoState *state) const
Definition: SoCache.cpp:256
The SoPrimitiveVertex class represents a single vertex of a generated primitive.Instances of SoPrimit...
Definition: SoPrimitiveVertex.h:43
The SbVec4f class is a 4 dimensional vector with floating point coordinates.This vector class is used...
Definition: SbVec4f.h:49
Definition: SoPrimitiveVertexCache.h:48
The SoPointDetail class is for storing detailed information for a single 3D point.Instances of this class are used among other things for storing information about the vertices of lines and polygons after pick operations, and for storing information returned to tessellation callbacks.
Definition: SoPointDetail.h:38
The SoState class manages the Coin scenegraph traversal state data.The SoState class is used by actio...
Definition: SoState.h:44
The SbVec3f class is a 3 dimensional vector with floating point coordinates.This vector class is used...
Definition: SbVec3f.h:51
The SoCache class is the superclass for all internal cache classes.It organizes reference counting to...
Definition: SoCache.h:43