GL++
0.1
OpenGL API C++ Wrapper
|
Attribute of a vertex array object. More...
#include <vertex_array.hpp>
Public Member Functions | |
void | enable () |
Enable usage of this attribute. | |
void | disable () |
Disable usage of this attribute. | |
bool | is_enabled () const |
Check if this attribute is enabled. | |
void | set_pointerf (const buffer &bo, GLint vector_size, attribf_data_type bo_type, size_t stride=0, size_t offset=0) |
Define where data are stored for this attribute. | |
void | set_pointeri (const buffer &bo, GLint vector_size, attribf_data_type bo_type, size_t stride=0, size_t offset=0) |
Define where data are stored for this attribute. | |
void | set_pointerl (const buffer &bo, GLint vector_size, attribf_data_type bo_type, size_t stride=0, size_t offset=0) |
Define where data are stored for this attribute. | |
GLuint | index () const |
Get the index of this attribute. | |
const vertex_array & | owner_vertex_array () const |
Get vertex_array that this attribute belongs to. | |
Public Member Functions inherited from glpp::noncopyable | |
noncopyable (noncopyable &) | |
noncopyable & | operator= (noncopyable &) |
Protected Types | |
enum | param_type |
Enumeration of all parameters of an attribute. |
Protected Member Functions | |
vertex_attrib_array (const vertex_array *pvao, GLuint index) | |
Constructor is only called by vertex_array owner. |
Protected Attributes | |
const vertex_array * | mp_vao |
Pointer to owner object of this attributes;. | |
GLuint | m_attr_index |
Index of this attribute. |
Friends | |
class | vertex_array |
All attributes belong and are managed by a vertex_array object. |
Attribute of a vertex array object.
This interface permits to query and manage an attribute of a vertex array object.
void glpp::vertex_attrib_array::disable | ( | ) |
Disable usage of this attribute.
http://www.opengl.org/sdk/docs/man4/xhtml/glEnableVertexAttribArray.xml
void glpp::vertex_attrib_array::enable | ( | ) |
Enable usage of this attribute.
http://www.opengl.org/sdk/docs/man4/xhtml/glEnableVertexAttribArray.xml
bool glpp::vertex_attrib_array::is_enabled | ( | ) | const |
Check if this attribute is enabled.
http://www.opengl.org/sdk/docs/man4/xhtml/glGetVertexAttrib.xml
void glpp::vertex_attrib_array::set_pointerf | ( | const buffer & | bo, |
GLint | vector_size, | ||
attribf_data_type | bo_type, | ||
size_t | stride = 0 , |
||
size_t | offset = 0 |
||
) |
Define where data are stored for this attribute.
http://www.opengl.org/sdk/docs/man4/xhtml/glVertexAttrib.xml
void glpp::vertex_attrib_array::set_pointeri | ( | const buffer & | bo, |
GLint | vector_size, | ||
attribf_data_type | bo_type, | ||
size_t | stride = 0 , |
||
size_t | offset = 0 |
||
) |
Define where data are stored for this attribute.
http://www.opengl.org/sdk/docs/man4/xhtml/glVertexAttrib.xml
void glpp::vertex_attrib_array::set_pointerl | ( | const buffer & | bo, |
GLint | vector_size, | ||
attribf_data_type | bo_type, | ||
size_t | stride = 0 , |
||
size_t | offset = 0 |
||
) |
Define where data are stored for this attribute.
http://www.opengl.org/sdk/docs/man4/xhtml/glVertexAttrib.xml