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>
43class 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);
Definition SbPimplPtr.h:55
The SbVec2f class is a 2 dimensional vector with floating point coordinates.
Definition SbVec2f.h:49
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition SbVec3f.h:51
The SbVec4f class is a 4 dimensional vector with floating point coordinates.
Definition SbVec4f.h:49
The SoCache class is the superclass for all internal cache classes.
Definition SoCache.h:43
virtual SbBool isValid(const SoState *state) const
Definition SoCache.cpp:257
The SoPointDetail class is for storing detailed information for a single 3D point.
Definition SoPointDetail.h:38
This cache contains an organized version of the geometry in vertex array form.
Definition SoPrimitiveVertexCache.h:48
The SoPrimitiveVertex class represents a single vertex of a generated primitive.
Definition SoPrimitiveVertex.h:43
The SoState class manages the Coin scene graph traversal state data.
Definition SoState.h:44