renderstack::vertex_attribute Class Reference

specifies one vertex attribute such as vertex position or normal

#include <vertex_format.hpp>

Public Member Functions

 vertex_attribute (vertex_attribute_usage usage, int gl_type_code, int index, int dimension)
vertex_attribute_usage usage () const
int gl_type_code () const
int index () const
int dimension () const
int offset () const
void set_offset (int offset)

Detailed Description

Definition at line 73 of file vertex_format.hpp.


Constructor & Destructor Documentation

renderstack::vertex_attribute::vertex_attribute ( vertex_attribute_usage  usage,
int  gl_type_code,
int  index,
int  dimension 
)

Definition at line 47 of file vertex_format.cpp.

00053 :   m_usage         (usage)
00054 ,   m_gl_type_code  (gl_type_code)
00055 ,   m_index         (index)
00056 ,   m_dimension     (dimension)
00057 ,   m_offset        (-1)
00058 {
00059 }


Member Function Documentation

vertex_attribute_usage renderstack::vertex_attribute::usage (  )  const

Definition at line 61 of file vertex_format.cpp.

00062 {
00063     return m_usage;
00064 }

int renderstack::vertex_attribute::gl_type_code (  )  const

Definition at line 66 of file vertex_format.cpp.

00067 {
00068     return m_gl_type_code;
00069 }

int renderstack::vertex_attribute::index (  )  const

Definition at line 71 of file vertex_format.cpp.

00072 {
00073     return m_index;
00074 }

int renderstack::vertex_attribute::dimension (  )  const

Definition at line 76 of file vertex_format.cpp.

00077 {
00078     return m_dimension;
00079 }

int renderstack::vertex_attribute::offset (  )  const

Definition at line 81 of file vertex_format.cpp.

00082 {
00083     return m_offset;
00084 }

void renderstack::vertex_attribute::set_offset ( int  offset  ) 

Definition at line 86 of file vertex_format.cpp.

00087 {
00088     m_offset = offset;
00089 }


The documentation for this class was generated from the following files:
Generated on Sun Apr 11 12:23:12 2010 for RenderStack by  doxygen 1.6.3