GL++  0.1
OpenGL API C++ Wrapper
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends Groups Pages
glpp::vertex_attrib_array Struct Reference

Attribute of a vertex array object. More...

#include <vertex_array.hpp>

Inheritance diagram for glpp::vertex_attrib_array:
glpp::noncopyable

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_arrayowner_vertex_array () const
 Get vertex_array that this attribute belongs to.
- Public Member Functions inherited from glpp::noncopyable
 noncopyable (noncopyable &)
noncopyableoperator= (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_arraymp_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.

Detailed Description

Attribute of a vertex array object.

This interface permits to query and manage an attribute of a vertex array object.

Remarks
non-copyable, non-inheritable, RAII

Member Function Documentation

void glpp::vertex_attrib_array::disable ( )
void glpp::vertex_attrib_array::enable ( )
bool glpp::vertex_attrib_array::is_enabled ( ) const
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


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