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) |
Definition at line 73 of file vertex_format.hpp.
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 }
vertex_attribute_usage renderstack::vertex_attribute::usage | ( | ) | const |
Definition at line 61 of file vertex_format.cpp.
int renderstack::vertex_attribute::gl_type_code | ( | ) | const |
Definition at line 66 of file vertex_format.cpp.
int renderstack::vertex_attribute::index | ( | ) | const |
Definition at line 71 of file vertex_format.cpp.
int renderstack::vertex_attribute::dimension | ( | ) | const |
Definition at line 76 of file vertex_format.cpp.
int renderstack::vertex_attribute::offset | ( | ) | const |
Definition at line 81 of file vertex_format.cpp.
void renderstack::vertex_attribute::set_offset | ( | int | offset | ) |
Definition at line 86 of file vertex_format.cpp.
00087 { 00088 m_offset = offset; 00089 }