VR-Forces 4.0.4 Class Documentation
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...

List of all members.

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


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.

Return the buffered data in bytes.


Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)