32 virtual void releaseResources();
35 int numberOfPrimitives()
const;
38 virtual void add(
unsigned int* indexToUpdate );
41 virtual void remove(
unsigned int index );
44 virtual void render(
int mode,
unsigned int groupCount,
bool geocentric,
45 float geocentricAlpha,
const double cameraLocation[3],
46 const double positionMatrix[16],
47 const double projectionMatrix[16],
51 virtual void update(
int renderMode );
58 virtual void set3DVertexPosition(
unsigned int index,
unsigned int vertIndex,
59 float x,
float y,
float z,
float w ) = 0;
62 virtual void set3DVertexQuadPositions(
unsigned int index,
63 float x,
float y,
float z,
float w) = 0;
66 virtual void get3DVertexPosition(
unsigned int index,
unsigned int vertex,
67 float& x,
float& y,
float& z,
float& w )
const = 0;
70 virtual void set2DVertexPosition(
unsigned int index,
unsigned int vertIndex,
71 float x,
float y ) = 0;
74 virtual void get2DVertexPosition(
unsigned int index,
unsigned int vertIndex,
75 float& x,
float& y )
const = 0;
78 virtual void set2DOffsetRotation(
unsigned int index,
unsigned int vertIndex,
float angle ) = 0;
81 virtual void get2DOffsetRotation(
unsigned int index,
unsigned int vertIndex,
float& angle )
const = 0;
84 virtual void setColor(
unsigned int index,
unsigned int vertIndex,
float r,
float g,
float b,
float a ) = 0;
87 virtual void getColor(
unsigned int index,
unsigned int vertIndex,
float& r,
float& g,
float& b,
float& a )
const = 0;
90 virtual void setUVCoordinates(
unsigned int index,
unsigned int vertIndex,
float u,
float v ) = 0;
93 virtual void getUVCoordinates(
unsigned int index,
unsigned int vertIndex,
float& u,
float& v )
const = 0;
103 virtual void setFillParameters(
unsigned int index,
void* fill,
104 unsigned int fullStipplePattern[32] = 0 ) = 0;
108 virtual void getFillParameters(
unsigned int index,
void*& fill,
109 unsigned int fullStipplePattern[32] = 0 )
const = 0;
113 virtual void setGroup(
unsigned int index,
float zFactor ) = 0;
117 virtual float group(
unsigned int index )
const = 0;
123 virtual float* vertexData()
const = 0;
126 virtual unsigned int vertexDataSize()
const = 0;
132 return myVertexCount;
unsigned int vertexCount() const
Get the number of vertices per primitive.
Definition: DtPrimitiveStyle.h:130
The abstract base class for the various primitive styles.
Definition: DtPrimitiveStyle.h:21
A class the wraps a OpenGL Array Buffer object.
Definition: DtBufferObject.h:17
#define DT_DLL_VRVGRAPHICS
Contains DLL export macros.
Definition: vrvGraphics.h:19
DT_DLL_vrfutil double angle(double vec1[3], double vec2[3])
std::vector< unsigned int * > IndexList
Definition: DtPrimitiveStyle.h:141
IndexList myProxyIndices
Definition: DtPrimitiveStyle.h:142
const char int mode
Definition: ioapi.h:38
unsigned int myVertexCount
Definition: DtPrimitiveStyle.h:139
voidpf uLong offset
Definition: ioapi.h:42