Logo ROOT  
Reference Guide
TGLFBO Class Reference

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

Definition at line 17 of file TGLFBO.h.

Public Member Functions

 TGLFBO ()
 Constructor. More...
 
virtual ~TGLFBO ()
 Destructor. More...
 
void Bind ()
 Bind the frame-buffer object. More...
 
void BindTexture ()
 Bind texture. More...
 
Int_t GetH () const
 
Float_t GetHScale () const
 
Bool_t GetIsRescaled () const
 
Int_t GetMSCoverageSamples () const
 
Int_t GetMSSamples () const
 
Int_t GetReqH () const
 
Int_t GetReqW () const
 
Int_t GetW () const
 
Float_t GetWScale () const
 
void Init (int w, int h, int ms_samples=0)
 Acquire GL resources for given width, height and number of multi-sampling samples. More...
 
void Release ()
 Release the allocated GL resources. More...
 
void SetAsReadBuffer ()
 
void Unbind ()
 Unbind the frame-buffer object. More...
 
void UnbindTexture ()
 Unbind texture. More...
 

Static Public Member Functions

static Bool_t GetRescaleToPow2 ()
 Return state of fgRescaleToPow2 static member. More...
 
static void SetRescaleToPow2 (Bool_t r)
 Set state of fgRescaleToPow2 static member. More...
 

Protected Member Functions

UInt_t CreateAndAttachColorTexture ()
 Initialize color-texture and attach it to current FB. More...
 
UInt_t CreateAndAttachRenderBuffer (Int_t format, Int_t type)
 
void InitMultiSample ()
 
void InitStandard ()
 

Protected Attributes

UInt_t fColorTexture
 
UInt_t fDepthBuffer
 
UInt_t fFrameBuffer
 
Int_t fH
 
Float_t fHScale
 
Bool_t fIsRescaled
 
UInt_t fMSColorBuffer
 
Int_t fMSCoverageSamples
 
UInt_t fMSFrameBuffer
 
Int_t fMSSamples
 
Int_t fReqH
 
Int_t fReqW
 
Int_t fW
 
Float_t fWScale
 

Static Protected Attributes

static Bool_t fgMultiSampleNAWarned = kFALSE
 
static Bool_t fgRescaleToPow2 = kTRUE
 

Private Member Functions

 TGLFBO (const TGLFBO &)
 
TGLFBOoperator= (const TGLFBO &)
 

#include <TGLFBO.h>

Constructor & Destructor Documentation

◆ TGLFBO() [1/2]

TGLFBO::TGLFBO ( const TGLFBO )
private

◆ TGLFBO() [2/2]

TGLFBO::TGLFBO ( )

Constructor.

Definition at line 43 of file TGLFBO.cxx.

◆ ~TGLFBO()

TGLFBO::~TGLFBO ( )
virtual

Destructor.

Definition at line 64 of file TGLFBO.cxx.

Member Function Documentation

◆ Bind()

void TGLFBO::Bind ( )

Bind the frame-buffer object.

Definition at line 197 of file TGLFBO.cxx.

◆ BindTexture()

void TGLFBO::BindTexture ( )

Bind texture.

Definition at line 229 of file TGLFBO.cxx.

◆ CreateAndAttachColorTexture()

UInt_t TGLFBO::CreateAndAttachColorTexture ( )
protected

Initialize color-texture and attach it to current FB.

Definition at line 325 of file TGLFBO.cxx.

◆ CreateAndAttachRenderBuffer()

UInt_t TGLFBO::CreateAndAttachRenderBuffer ( Int_t  format,
Int_t  type 
)
protected

Definition at line 298 of file TGLFBO.cxx.

◆ GetH()

Int_t TGLFBO::GetH ( ) const
inline

Definition at line 60 of file TGLFBO.h.

◆ GetHScale()

Float_t TGLFBO::GetHScale ( ) const
inline

Definition at line 67 of file TGLFBO.h.

◆ GetIsRescaled()

Bool_t TGLFBO::GetIsRescaled ( ) const
inline

Definition at line 69 of file TGLFBO.h.

◆ GetMSCoverageSamples()

Int_t TGLFBO::GetMSCoverageSamples ( ) const
inline

Definition at line 64 of file TGLFBO.h.

◆ GetMSSamples()

Int_t TGLFBO::GetMSSamples ( ) const
inline

Definition at line 63 of file TGLFBO.h.

◆ GetReqH()

Int_t TGLFBO::GetReqH ( ) const
inline

Definition at line 62 of file TGLFBO.h.

◆ GetReqW()

Int_t TGLFBO::GetReqW ( ) const
inline

Definition at line 61 of file TGLFBO.h.

◆ GetRescaleToPow2()

Bool_t TGLFBO::GetRescaleToPow2 ( )
static

Return state of fgRescaleToPow2 static member.

Definition at line 348 of file TGLFBO.cxx.

◆ GetW()

Int_t TGLFBO::GetW ( ) const
inline

Definition at line 59 of file TGLFBO.h.

◆ GetWScale()

Float_t TGLFBO::GetWScale ( ) const
inline

Definition at line 66 of file TGLFBO.h.

◆ Init()

void TGLFBO::Init ( int  w,
int  h,
int  ms_samples = 0 
)

Acquire GL resources for given width, height and number of multi-sampling samples.

Definition at line 73 of file TGLFBO.cxx.

◆ InitMultiSample()

void TGLFBO::InitMultiSample ( )
protected

Definition at line 281 of file TGLFBO.cxx.

◆ InitStandard()

void TGLFBO::InitStandard ( )
protected

Definition at line 270 of file TGLFBO.cxx.

◆ operator=()

TGLFBO& TGLFBO::operator= ( const TGLFBO )
private

◆ Release()

void TGLFBO::Release ( )

Release the allocated GL resources.

Definition at line 180 of file TGLFBO.cxx.

◆ SetAsReadBuffer()

void TGLFBO::SetAsReadBuffer ( )

Definition at line 261 of file TGLFBO.cxx.

◆ SetRescaleToPow2()

void TGLFBO::SetRescaleToPow2 ( Bool_t  r)
static

Set state of fgRescaleToPow2 static member.

Default is kTRUE as this works better on older hardware, especially ATI.

Definition at line 357 of file TGLFBO.cxx.

◆ Unbind()

void TGLFBO::Unbind ( )

Unbind the frame-buffer object.

Definition at line 214 of file TGLFBO.cxx.

◆ UnbindTexture()

void TGLFBO::UnbindTexture ( )

Unbind texture.

Definition at line 247 of file TGLFBO.cxx.

Member Data Documentation

◆ fColorTexture

UInt_t TGLFBO::fColorTexture
protected

Definition at line 25 of file TGLFBO.h.

◆ fDepthBuffer

UInt_t TGLFBO::fDepthBuffer
protected

Definition at line 26 of file TGLFBO.h.

◆ fFrameBuffer

UInt_t TGLFBO::fFrameBuffer
protected

Definition at line 24 of file TGLFBO.h.

◆ fgMultiSampleNAWarned

Bool_t TGLFBO::fgMultiSampleNAWarned = kFALSE
staticprotected

Definition at line 36 of file TGLFBO.h.

◆ fgRescaleToPow2

Bool_t TGLFBO::fgRescaleToPow2 = kTRUE
staticprotected

Definition at line 35 of file TGLFBO.h.

◆ fH

Int_t TGLFBO::fH
protected

Definition at line 30 of file TGLFBO.h.

◆ fHScale

Float_t TGLFBO::fHScale
protected

Definition at line 32 of file TGLFBO.h.

◆ fIsRescaled

Bool_t TGLFBO::fIsRescaled
protected

Definition at line 33 of file TGLFBO.h.

◆ fMSColorBuffer

UInt_t TGLFBO::fMSColorBuffer
protected

Definition at line 28 of file TGLFBO.h.

◆ fMSCoverageSamples

Int_t TGLFBO::fMSCoverageSamples
protected

Definition at line 30 of file TGLFBO.h.

◆ fMSFrameBuffer

UInt_t TGLFBO::fMSFrameBuffer
protected

Definition at line 27 of file TGLFBO.h.

◆ fMSSamples

Int_t TGLFBO::fMSSamples
protected

Definition at line 30 of file TGLFBO.h.

◆ fReqH

Int_t TGLFBO::fReqH
protected

Definition at line 30 of file TGLFBO.h.

◆ fReqW

Int_t TGLFBO::fReqW
protected

Definition at line 30 of file TGLFBO.h.

◆ fW

Int_t TGLFBO::fW
protected

Definition at line 30 of file TGLFBO.h.

◆ fWScale

Float_t TGLFBO::fWScale
protected

Definition at line 32 of file TGLFBO.h.

Libraries for TGLFBO:
[legend]

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