Open Inventor Reference
SoShape::SimpleVertexArrayCache Struct Reference

Helper struct used by primitive types like cube, sphere, ... More...

#include <Inventor/nodes/SoShape.h>

Public Member Functions

 SimpleVertexArrayCache ()
 
void drawArrays (SoShape *shape, SoGLRenderAction *action, GLenum primitiveType)
 
void enableVertexAttributes (SoState *state)
 
void disableVertexAttributes (SoState *state)
 

Public Attributes

SoVBO vbo
 
int numVertices
 
char * vertexOffset
 
char * normalOffset
 
char * texCoordOffset
 
char * colorOffset
 
bool useTexCoords
 
bool useNormals
 
bool useColors
 

Detailed Description

Definition at line 165 of file SoShape.h.

Constructor & Destructor Documentation

◆ SimpleVertexArrayCache()

SoShape::SimpleVertexArrayCache::SimpleVertexArrayCache ( )

Member Function Documentation

◆ disableVertexAttributes()

void SoShape::SimpleVertexArrayCache::disableVertexAttributes ( SoState state)

◆ drawArrays()

void SoShape::SimpleVertexArrayCache::drawArrays ( SoShape shape,
SoGLRenderAction action,
GLenum  primitiveType 
)

◆ enableVertexAttributes()

void SoShape::SimpleVertexArrayCache::enableVertexAttributes ( SoState state)

Member Data Documentation

◆ colorOffset

char* SoShape::SimpleVertexArrayCache::colorOffset

Definition at line 181 of file SoShape.h.

◆ normalOffset

char* SoShape::SimpleVertexArrayCache::normalOffset

Definition at line 179 of file SoShape.h.

◆ numVertices

int SoShape::SimpleVertexArrayCache::numVertices

Definition at line 176 of file SoShape.h.

◆ texCoordOffset

char* SoShape::SimpleVertexArrayCache::texCoordOffset

Definition at line 180 of file SoShape.h.

◆ useColors

bool SoShape::SimpleVertexArrayCache::useColors

Definition at line 185 of file SoShape.h.

◆ useNormals

bool SoShape::SimpleVertexArrayCache::useNormals

Definition at line 184 of file SoShape.h.

◆ useTexCoords

bool SoShape::SimpleVertexArrayCache::useTexCoords

Definition at line 183 of file SoShape.h.

◆ vbo

SoVBO SoShape::SimpleVertexArrayCache::vbo

Definition at line 174 of file SoShape.h.

◆ vertexOffset

char* SoShape::SimpleVertexArrayCache::vertexOffset

Definition at line 178 of file SoShape.h.


The documentation for this struct was generated from the following file: