VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
makVrv::DtPixelBufferObject Class Reference

An object which wraps an OpenGL pixel buffer object and allows for asynchronous downloads of texture data. More...

Public Member Functions

 DtPixelBufferObject ()
 ~DtPixelBufferObject ()
void downloadFromTexture (unsigned int texture, int w, int h)
 Starts downloading the texture from memory.
void getData (void *data)
 Get the data by copying it into the available data.
unsigned int bufferSize () const
 Return the buffered data in bytes.

Protected Attributes

unsigned int myBufferObject
unsigned int myBufferSize

Detailed Description

An object which wraps an OpenGL pixel buffer object and allows for asynchronous downloads of texture data.

Constructor & Destructor Documentation

makVrv::DtPixelBufferObject::DtPixelBufferObject ( )
makVrv::DtPixelBufferObject::~DtPixelBufferObject ( )

Member Function Documentation

void makVrv::DtPixelBufferObject::downloadFromTexture ( unsigned int  texture,
int  w,
int  h 
)

Starts downloading the texture from memory.

void makVrv::DtPixelBufferObject::getData ( void *  data)

Get the data by copying it into the available data.

Warning! this will block until downloading is complete. Warning! if downloading has not started no data will be available. Warning! data must be atleast bufferSize bytes.

unsigned int makVrv::DtPixelBufferObject::bufferSize ( ) const

Return the buffered data in bytes.

Member Data Documentation

unsigned int makVrv::DtPixelBufferObject::myBufferObject
protected
unsigned int makVrv::DtPixelBufferObject::myBufferSize
protected

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

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)