19 #ifndef EQUTIL_PIXELBUFFEROBJECT_H 20 #define EQUTIL_PIXELBUFFEROBJECT_H 22 #include <lunchbox/lock.h> 32 namespace detail {
class PixelBufferObject; }
55 const bool threadSafe );
58 EQ_API
virtual ~PixelBufferObject();
70 EQ_API
virtual Error setup(
const size_t size,
const unsigned type );
73 EQ_API
virtual void destroy();
81 EQ_API
virtual const void* mapRead()
const;
89 EQ_API
virtual void* mapWrite();
97 EQ_API
virtual void unmap()
const;
100 EQ_API
virtual bool bind()
const;
103 EQ_API
virtual void unbind()
const;
106 EQ_API
size_t getSize()
const;
109 EQ_API
bool isInitialized()
const;
112 EQ_API
bool isThreadSafe()
const;
115 unsigned getID()
const;
118 PixelBufferObject(
const PixelBufferObject& ) =
delete;
119 PixelBufferObject& operator=(
const PixelBufferObject& ) =
delete;
120 detail::PixelBufferObject*
const _impl;
125 #endif // EQUTIL_PIXELBUFFEROBJECT_H A C++ class to abstract OpenGL pixel buffer objects.
The Equalizer client library.