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, int ms_samples = 0)
virtual TClass*IsA() const
voidRelease()
voidSetAsReadBuffer()
virtual voidShowMembers(TMemberInspector& insp)
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
UInt_tfMSColorBuffer
Int_tfMSCoverageSamples
UInt_tfMSFrameBuffer
Int_tfMSSamples
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.
TGLFBO(const TGLFBO& )
TGLFBO& operator=(const TGLFBO& )