Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
ACG::SceneGraph::ACG::VertexElement Struct Reference

Description of one vertex element. More...

Public Member Functions

void setByteOffset (unsigned int _offset)
 
unsigned int getByteOffset () const
 

Public Attributes

unsigned int type_
 GL_FLOAT, GL_UNSIGNED_BYTE, GL_INT, ...
 
unsigned int numElements_
 how many elements of type_
 
VERTEX_USAGE usage_
 position, normal, shader input ..
 
const char * shaderInputName_
 set shader input name, if usage_ = VERTEX_USAGE_USER_DEFINED otherwise this is set automatically, if usage_ != VERTEX_USAGE_USER_DEFINED
 
const void * pointer_
 Offset in bytes to the first occurrence of this element in vertex buffer; Or address to vertex data in system memory.
 
unsigned int divisor_
 For instanced rendering: Step rate describing how many instances are drawn before advancing to the next element. Must be 0 if this element is not per instance data.
 
unsigned int vbo_
 Explicit vbo source of this element, set to 0 if the buffer bound at the time of activating the declaration should be used instead.
 

Detailed Description

Description of one vertex element.

Definition at line 84 of file MeshNode2T.cc.

Member Function Documentation

unsigned int ACG::SceneGraph::ACG::VertexElement::getByteOffset ( ) const

interpret pointer_ as byte offset

void ACG::SceneGraph::ACG::VertexElement::setByteOffset ( unsigned int  _offset)

interpret pointer_ as byte offset


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