ROOT logo
ROOT » GRAF3D » GL » TGLFBO

class TGLFBO


 Frame-buffer object.

 Requires GL-1.5.

 Taken from Gled project, see:
   http://www.gled.org/cgi-bin/viewcvs.cgi/trunk/libsets/GledCore/Pupils
 See also:
   http://www.opengl.org/registry/specs/EXT/framebuffer_object.txt

Function Members (Methods)

public:
TGLFBO()
virtual~TGLFBO()
voidBind()
voidBindTexture()
static TClass*Class()
voidInit(int w, int h)
virtual TClass*IsA() const
voidRelease()
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
voidUnbind()
voidUnbindTexture()
private:
TGLFBO(const TGLFBO&)
TGLFBO&operator=(const TGLFBO&)

Data Members

protected:
UInt_tfColorTexture
UInt_tfDepthBuffer
UInt_tfFrameBuffer
Int_tfH
Float_tfHScale
Bool_tfIsRescaled
Int_tfW
Float_tfWScale
static Bool_tfgRescaleToPow2

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLFBO()
 Constructor.
~TGLFBO()
 Destructor.
void Init(int w, int h)
 Acquire GL resources for given width and height.
void Release()
 Release the allocated GL resources.
void Bind()
 Bind the frame-buffer object.
void Unbind()
 Unbind the frame-buffer object.
void BindTexture()
 Bind texture.
void UnbindTexture()
 Unbind texture.
TGLFBO(const TGLFBO& )
TGLFBO& operator=(const TGLFBO& )