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. | |
| virtual | ~TGLFBO () |
| Destructor. | |
| void | Bind () |
| Bind the frame-buffer object. | |
| void | BindTexture () |
| Bind texture. | |
| 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. | |
| virtual TClass * | IsA () const |
| void | Release () |
| Release the allocated GL resources. | |
| void | SetAsReadBuffer () |
| virtual void | Streamer (TBuffer &) |
| void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
| void | Unbind () |
| Unbind the frame-buffer object. | |
| void | UnbindTexture () |
| Unbind texture. | |
Static Public Member Functions | |
| static TClass * | Class () |
| static const char * | Class_Name () |
| static constexpr Version_t | Class_Version () |
| static const char * | DeclFileName () |
| static Bool_t | GetRescaleToPow2 () |
| Return state of fgRescaleToPow2 static member. | |
| static void | SetRescaleToPow2 (Bool_t r) |
| Set state of fgRescaleToPow2 static member. | |
Protected Member Functions | |
| UInt_t | CreateAndAttachColorTexture () |
| Initialize color-texture and attach it to current FB. | |
| 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 &)=delete | |
| TGLFBO & | operator= (const TGLFBO &)=delete |
#include <TGLFBO.h>
| 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.
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.
|
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.
|
inline |
| 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.