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()
Int_tGetH() const
Float_tGetHScale() const
Bool_tGetIsRescaled() const
Int_tGetMSCoverageSamples() const
Int_tGetMSSamples() const
Int_tGetReqH() const
Int_tGetReqW() const
static Bool_tGetRescaleToPow2()
Int_tGetW() const
Float_tGetWScale() const
voidInit(int w, int h, int ms_samples = 0)
virtual TClass*IsA() const
voidRelease()
voidSetAsReadBuffer()
static voidSetRescaleToPow2(Bool_t r)
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_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
UInt_tfMSColorBuffer
Int_tfMSCoverageSamples
UInt_tfMSFrameBuffer
Int_tfMSSamples
Int_tfReqH
Int_tfReqW
Int_tfW
Float_tfWScale
static Bool_tfgMultiSampleNAWarned
static Bool_tfgRescaleToPow2

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLFBO()
 Constructor.
~TGLFBO()
 Destructor.
void Init(int w, int h, int ms_samples = 0)
 Acquire GL resources for given width, height and number of
 multi-sampling samples.
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.
void SetAsReadBuffer()
void InitStandard()
void InitMultiSample()
UInt_t CreateAndAttachRenderBuffer(Int_t format, Int_t type)
UInt_t CreateAndAttachColorTexture()
 Initialize color-texture and attach it to current FB.
Bool_t GetRescaleToPow2()
 Return state of fgRescaleToPow2 static member.
void SetRescaleToPow2(Bool_t r)
 Set state of fgRescaleToPow2 static member.
 Default is kTRUE as this works better on older hardware, especially ATI.
TGLFBO(const TGLFBO& )
TGLFBO& operator=(const TGLFBO& )
Int_t GetW() const
{ return fW; }
Int_t GetH() const
{ return fH; }
Int_t GetReqW() const
{ return fReqW; }
Int_t GetReqH() const
{ return fReqH; }
Int_t GetMSSamples() const
{ return fMSSamples; }
Int_t GetMSCoverageSamples() const
{ return fMSCoverageSamples; }
Float_t GetWScale() const
{ return fWScale; }
Float_t GetHScale() const
{ return fHScale; }
Bool_t GetIsRescaled() const
{ return fIsRescaled; }