Developer Documentation
Loading...
Searching...
No Matches
ACG::MeshCompiler::VertexElementInput Struct Reference

Public Member Functions

void getElementData (int _idx, void *_dst, const VertexElement *_desc) const
 read a vertex element
 

Public Attributes

char * internalBuf
 mem alloc if attribute buffer managed by this class
 
const char * data
 
int count
 
int stride
 offset in bytes from one element to the next
 
int attrSize
 size in bytes of one attribute
 
GLuint fmt
 element data format
 
int elementSize
 number of ints/floats/bytes per element
 

Detailed Description

Definition at line 742 of file MeshCompiler.hh.

Constructor & Destructor Documentation

◆ VertexElementInput()

ACG::MeshCompiler::VertexElementInput::VertexElementInput ( )

Definition at line 1382 of file MeshCompiler.cc.

◆ ~VertexElementInput()

ACG::MeshCompiler::VertexElementInput::~VertexElementInput ( )

Definition at line 1389 of file MeshCompiler.cc.

Member Function Documentation

◆ getElementData()

void ACG::MeshCompiler::VertexElementInput::getElementData ( int  _idx,
void *  _dst,
const VertexElement _desc 
) const

read a vertex element

Definition at line 2462 of file MeshCompiler.cc.

Member Data Documentation

◆ attrSize

int ACG::MeshCompiler::VertexElementInput::attrSize

size in bytes of one attribute

Definition at line 762 of file MeshCompiler.hh.

◆ count

int ACG::MeshCompiler::VertexElementInput::count

elements in buffer

Definition at line 756 of file MeshCompiler.hh.

◆ data

const char* ACG::MeshCompiler::VertexElementInput::data

address to data input, will not be released by MeshCompiler

  • may be an external address provided by user of class

Definition at line 753 of file MeshCompiler.hh.

◆ elementSize

int ACG::MeshCompiler::VertexElementInput::elementSize

number of ints/floats/bytes per element

Definition at line 771 of file MeshCompiler.hh.

◆ fmt

GLuint ACG::MeshCompiler::VertexElementInput::fmt

element data format

Definition at line 768 of file MeshCompiler.hh.

◆ internalBuf

char* ACG::MeshCompiler::VertexElementInput::internalBuf

mem alloc if attribute buffer managed by this class

Definition at line 748 of file MeshCompiler.hh.

◆ stride

int ACG::MeshCompiler::VertexElementInput::stride

offset in bytes from one element to the next

Definition at line 759 of file MeshCompiler.hh.


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