glcxx: A Modern C++ Interface to OpenGL Object Management
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
glcxx::Array Class Reference

C++ wrapper for an OpenGL vertex array object. More...

#include <Array.hpp>

Public Member Functions

 Array ()
 Create and allocate an OpenGL vertex array object.
 
 ~Array ()
 Destroy the vertex array object.
 
void bind ()
 Bind the vertex array object.
 
GLuint id () const
 Get the vertex array object's ID. More...
 

Static Public Member Functions

static std::shared_ptr< Arraycreate ()
 Factory method to construct a Array. More...
 

Protected Attributes

GLuint m_id
 The vertex array object's ID.
 

Detailed Description

C++ wrapper for an OpenGL vertex array object.

Member Function Documentation

static std::shared_ptr<Array> glcxx::Array::create ( )
inlinestatic

Factory method to construct a Array.

Returns
std::shared_ptr to the created Array.
GLuint glcxx::Array::id ( ) const
inline

Get the vertex array object's ID.

Returns
The buffer ID.

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