hx3d  1
2D/3D Simple Game Framework
Public Member Functions | List of all members
hx3d::graphics::buffers::ArrayBuffer< T > Class Template Referenceabstract

OpenGL GPU uploadable buffer. More...

#include <array_buffer.hpp>

Public Member Functions

virtual void upload ()=0
 Upload the data to the GPU.
 
virtual void begin (const Ptr< Shader > &shader)=0
 Begin the use with a shader. More...
 
virtual void end (const Ptr< Shader > &shader)=0
 End the use with a shader. More...
 
- Public Member Functions inherited from hx3d::graphics::buffers::Buffer< T >
void set (const std::vector< T > &values)
 Set the buffer values. More...
 
void add (const std::vector< T > &values)
 Add buffer values. More...
 
T * data ()
 Get the buffer values. More...
 
GLuint getId ()
 Get the buffer ID. More...
 
unsigned int size ()
 Get the buffer size. More...
 
std::vector< T > & getVector ()
 Get the vector. More...
 
getValue (unsigned int i)
 Get a value. More...
 
void setValue (const unsigned int i, const T value)
 Set a value. More...
 
void clear ()
 Clear all values.
 

Additional Inherited Members

- Protected Attributes inherited from hx3d::graphics::buffers::Buffer< T >
std::vector< T > _vector
 Data.
 
GLuint _buf
 Internal ID.
 

Detailed Description

template<class T>
class hx3d::graphics::buffers::ArrayBuffer< T >

OpenGL GPU uploadable buffer.

Definition at line 39 of file array_buffer.hpp.

Member Function Documentation

template<class T>
virtual void hx3d::graphics::buffers::ArrayBuffer< T >::begin ( const Ptr< Shader > &  shader)
pure virtual
template<class T>
virtual void hx3d::graphics::buffers::ArrayBuffer< T >::end ( const Ptr< Shader > &  shader)
pure virtual

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