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

An object which wraps an OpenGL frame buffer object and allows rendering To a texture. More...

Public Member Functions

 DtFrameBufferObject (unsigned int width, unsigned int height, const char *name)
 
virtual ~DtFrameBufferObject ()
 
virtual void resize (unsigned int width, unsigned int height)
 Resize the frame buffer. More...
 
virtual void attachTexture2D (unsigned int textureId)
 Attach a texture to the frame buffer object. More...
 
virtual bool valid ()
 Check to see if the frame buffer is valid. More...
 
virtual void bind ()
 Bind the current frame buffer. More...
 
virtual void unbind ()
 Unbind the current frame buffer, use system frame buffer. More...
 
virtual void setDeleteFbosOnDestruction (bool val)
 set whether to delete fbos on ~ More...
 
virtual bool deleteFbosOnDestruction (void) const
 get whether fbos are deleted on ~ More...
 
virtual unsigned int fboId (void) const
 

Protected Attributes

std::string myName
 
bool myBoundFlag
 
unsigned int myFrameBuffer
 
unsigned int myDepthBuffer
 
bool myDeleteFbosOnDestruction
 

Detailed Description

An object which wraps an OpenGL frame buffer object and allows rendering To a texture.

Constructor & Destructor Documentation

makVrv::DtFrameBufferObject::DtFrameBufferObject ( unsigned int  width,
unsigned int  height,
const char name 
)
virtual makVrv::DtFrameBufferObject::~DtFrameBufferObject ( )
virtual

Member Function Documentation

virtual void makVrv::DtFrameBufferObject::resize ( unsigned int  width,
unsigned int  height 
)
virtual

Resize the frame buffer.

virtual void makVrv::DtFrameBufferObject::attachTexture2D ( unsigned int  textureId)
virtual

Attach a texture to the frame buffer object.

virtual bool makVrv::DtFrameBufferObject::valid ( )
virtual

Check to see if the frame buffer is valid.

virtual void makVrv::DtFrameBufferObject::bind ( )
virtual

Bind the current frame buffer.

virtual void makVrv::DtFrameBufferObject::unbind ( )
virtual

Unbind the current frame buffer, use system frame buffer.

virtual void makVrv::DtFrameBufferObject::setDeleteFbosOnDestruction ( bool  val)
virtual

set whether to delete fbos on ~

virtual bool makVrv::DtFrameBufferObject::deleteFbosOnDestruction ( void  ) const
virtual

get whether fbos are deleted on ~

virtual unsigned int makVrv::DtFrameBufferObject::fboId ( void  ) const
virtual

Member Data Documentation

std::string makVrv::DtFrameBufferObject::myName
protected
bool makVrv::DtFrameBufferObject::myBoundFlag
protected
unsigned int makVrv::DtFrameBufferObject::myFrameBuffer
protected
unsigned int makVrv::DtFrameBufferObject::myDepthBuffer
protected
bool makVrv::DtFrameBufferObject::myDeleteFbosOnDestruction
protected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)