Developer Documentation
ACG::VertexElement Struct Reference

Description of one vertex element. More...

#include <OpenFlipper/libs_required/ACG/GL/VertexDeclaration.hh>

Public Member Functions

void setByteOffset (unsigned int _offset)
 
unsigned int getByteOffset () const
 
bool operator== (const VertexElement &_other) const
 
bool operator!= (const VertexElement &_other) const
 

Public Attributes

unsigned int type_
 GL_FLOAT, GL_UNSIGNED_BYTE, GL_INT, ... More...
 
unsigned int numElements_
 how many elements of type_ More...
 
VERTEX_USAGE usage_
 position, normal, shader input .. More...
 
const char * shaderInputName_
 set shader input name, if usage_ = VERTEX_USAGE_USER_DEFINED otherwise this is set automatically, if usage_ != VERTEX_USAGE_USER_DEFINED More...
 
const void * pointer_
 Offset in bytes to the first occurrence of this element in vertex buffer; Or address to vertex data in system memory. More...
 
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. More...
 
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. More...
 

Detailed Description

Description of one vertex element.

Definition at line 78 of file VertexDeclaration.hh.

Constructor & Destructor Documentation

◆ VertexElement()

ACG::VertexElement::VertexElement ( )

Definition at line 57 of file VertexDeclaration.cc.

Member Function Documentation

◆ getByteOffset()

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

interpret pointer_ as byte offset

Definition at line 77 of file VertexDeclaration.cc.

◆ operator!=()

bool ACG::VertexElement::operator!= ( const VertexElement _other) const
inline

comparison operator

Definition at line 104 of file VertexDeclaration.hh.

◆ operator==()

bool ACG::VertexElement::operator== ( const VertexElement _other) const

comparison operator

Definition at line 91 of file VertexDeclaration.cc.

◆ setByteOffset()

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

interpret pointer_ as byte offset

Definition at line 63 of file VertexDeclaration.cc.

Member Data Documentation

◆ divisor_

unsigned int ACG::VertexElement::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.

Definition at line 87 of file VertexDeclaration.hh.

◆ numElements_

unsigned int ACG::VertexElement::numElements_

how many elements of type_

Definition at line 83 of file VertexDeclaration.hh.

◆ pointer_

const void* ACG::VertexElement::pointer_

Offset in bytes to the first occurrence of this element in vertex buffer; Or address to vertex data in system memory.

Definition at line 86 of file VertexDeclaration.hh.

◆ shaderInputName_

const char* ACG::VertexElement::shaderInputName_

set shader input name, if usage_ = VERTEX_USAGE_USER_DEFINED otherwise this is set automatically, if usage_ != VERTEX_USAGE_USER_DEFINED

Definition at line 85 of file VertexDeclaration.hh.

◆ type_

unsigned int ACG::VertexElement::type_

GL_FLOAT, GL_UNSIGNED_BYTE, GL_INT, ...

Definition at line 82 of file VertexDeclaration.hh.

◆ usage_

VERTEX_USAGE ACG::VertexElement::usage_

position, normal, shader input ..

Definition at line 84 of file VertexDeclaration.hh.

◆ vbo_

unsigned int ACG::VertexElement::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.

Definition at line 88 of file VertexDeclaration.hh.


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