#include <PixelBufferObject.hpp>
Public Member Functions | |
void | bind (const std::size_t i) |
std::uint32_t | getHandle (const std::size_t i) |
PixelBufferObject (const std::size_t size) | |
void | unbind () |
~PixelBufferObject () | |
Private Attributes | |
std::uint32_t | handles_ [2] |
A pipelined pixel buffer object (composed to 2 pixel buffer handles)
Definition at line 13 of file PixelBufferObject.hpp.
PixelBufferObject::PixelBufferObject | ( | const std::size_t | size | ) |
Definition at line 9 of file PixelBufferObject.cpp.
PixelBufferObject::~PixelBufferObject | ( | ) |
Definition at line 19 of file PixelBufferObject.cpp.
void PixelBufferObject::bind | ( | const std::size_t | i | ) |
Binds a pixel buffer object to the current OpenGL context.
i | The index of the pixel buffer object to bind (either 0 or 1) |
Definition at line 24 of file PixelBufferObject.cpp.
std::uint32_t PixelBufferObject::getHandle | ( | const std::size_t | i | ) |
i | The index of the pixel buffer object to get |
Definition at line 35 of file PixelBufferObject.cpp.
void PixelBufferObject::unbind | ( | ) |
Unbind the current pixel buffer object from the current OpenGL context.
Definition at line 29 of file PixelBufferObject.cpp.
|
private |
Definition at line 42 of file PixelBufferObject.hpp.