molecular
Public Member Functions | Friends | List of all members
molecular::util::Mesh::Attribute Class Reference

Single attribute buffer. More...

#include <Mesh.h>

Public Member Functions

template<typename T >
const T * GetData () const
 Get attribute data. More...
 
template<typename T >
T * GetData ()
 Get attribute data. More...
 
void SetData (VertexAttributeInfo::Type type, unsigned int components, const void *data, size_t size)
 Set attribute data from raw data. More...
 
const void * GetRawData () const
 Get pointer to raw data. More...
 
size_t GetRawSize () const
 Get data size in bytes. More...
 
VertexAttributeInfo::Type GetType () const
 
unsigned int GetNumComponents () const
 

Friends

class Mesh
 

Detailed Description

Single attribute buffer.

Member Function Documentation

template<typename T >
const T* molecular::util::Mesh::Attribute::GetData ( ) const
inline

Get attribute data.

template<typename T >
T* molecular::util::Mesh::Attribute::GetData ( )
inline

Get attribute data.

unsigned int molecular::util::Mesh::Attribute::GetNumComponents ( ) const
inline
const void* molecular::util::Mesh::Attribute::GetRawData ( ) const
inline

Get pointer to raw data.

Use GetData() to get a typed representation.

size_t molecular::util::Mesh::Attribute::GetRawSize ( ) const
inline

Get data size in bytes.

VertexAttributeInfo::Type molecular::util::Mesh::Attribute::GetType ( ) const
inline
void molecular::util::Mesh::Attribute::SetData ( VertexAttributeInfo::Type  type,
unsigned int  components,
const void *  data,
size_t  size 
)
inline

Set attribute data from raw data.

Friends And Related Function Documentation

friend class Mesh
friend

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