ROOT 6.12/07 Reference Guide |
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
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 () |
Static Protected Attributes | |
static Bool_t | fgMultiSampleNAWarned = kFALSE |
static Bool_t | fgRescaleToPow2 = kTRUE |
Private Member Functions | |
TGLFBO (const TGLFBO &) | |
TGLFBO & | operator= (const TGLFBO &) |
#include <TGLFBO.h>
|
private |
TGLFBO::TGLFBO | ( | ) |
Constructor.
Definition at line 43 of file TGLFBO.cxx.
|
virtual |
Destructor.
Definition at line 64 of file TGLFBO.cxx.
void TGLFBO::Bind | ( | ) |
Bind the frame-buffer object.
Definition at line 197 of file TGLFBO.cxx.
void TGLFBO::BindTexture | ( | ) |
Bind texture.
Definition at line 229 of file TGLFBO.cxx.
|
protected |
Initialize color-texture and attach it to current FB.
Definition at line 325 of file TGLFBO.cxx.
Definition at line 298 of file TGLFBO.cxx.
|
static |
Return state of fgRescaleToPow2 static member.
Definition at line 348 of file TGLFBO.cxx.
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.
|
protected |
Definition at line 281 of file TGLFBO.cxx.
|
protected |
Definition at line 270 of file TGLFBO.cxx.
void TGLFBO::Release | ( | ) |
Release the allocated GL resources.
Definition at line 180 of file TGLFBO.cxx.
void TGLFBO::SetAsReadBuffer | ( | ) |
Definition at line 261 of file TGLFBO.cxx.
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.
void TGLFBO::Unbind | ( | ) |
Unbind the frame-buffer object.
Definition at line 214 of file TGLFBO.cxx.
void TGLFBO::UnbindTexture | ( | ) |
Unbind texture.
Definition at line 247 of file TGLFBO.cxx.