Tucano  0.1
A library for rapid prototyping with modern OpenGL and GLSL
Tucano::AtomicBuffer Class Reference

An Atomic Buffer object (inherited from BufferObject). More...

#include <bufferobject.hpp>

Inheritance diagram for Tucano::AtomicBuffer:
Tucano::BufferObject< GLuint >

Public Member Functions

 AtomicBuffer (int s)
 Atomic Buffer constructor. More...
 
- Public Member Functions inherited from Tucano::BufferObject< GLuint >
 BufferObject (int s, GLenum buftype)
 
virtual ~BufferObject (void)
 Default Destructor. More...
 
GLuint getBufferID (void)
 Returns The id of the buffer (handle). More...
 
virtual void bind (void)
 Binds buffer object. More...
 
void bindBase (int index)
 Binds buffer to a specific binding point. More...
 
void unbindBase (void)
 Unbinds buffer from binding point. More...
 
virtual void unbind (void)
 Unbinds the buffer object. More...
 
virtual void clear (void)
 Clears all values (sets to zero). More...
 
virtual void readBuffer (GLuint **return_values)
 Reads a GPU buffer and stores it in a CPU array. More...
 
void printBuffer (void)
 Prints the content of a GPU. Usually used for debugging. More...
 
int getSize (void)
 Returns the size of the buffer, number of elements. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Tucano::BufferObject< GLuint >
virtual void create (void)
 Creates the Buffer Object. More...
 
- Protected Attributes inherited from Tucano::BufferObject< GLuint >
GLuint buffer_id
 The handle of the Buffer Object. More...
 
GLenum buffer_type
 Type of buffer. More...
 
int size
 Buffer dimension (number of elements). More...
 
int binding_point
 Binding point for this buffer. More...
 

Detailed Description

An Atomic Buffer object (inherited from BufferObject).

Constructor & Destructor Documentation

Tucano::AtomicBuffer::AtomicBuffer ( int  s)
inline

Atomic Buffer constructor.

Parameters
sSize of buffer.

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