ROOT » GRAF3D » GL » TGLFormat

class TGLFormat


 Encapsulation of format / contents of an OpenGL buffer.

Function Members (Methods)

public:
virtual~TGLFormat()
static TClass*Class()
Int_tGetAccumSize() const
Int_tGetDepthSize() const
Int_tGetSamples() const
Int_tGetStencilSize() const
Bool_tHasAccumBuffer() const
Bool_tHasDepth() const
Bool_tHasMultiSampling() const
Bool_tHasStencil() const
virtual TClass*IsA() const
Bool_tIsDoubleBuffered() const
Bool_tIsStereo() const
Bool_toperator!=(const TGLFormat& rhs) const
TGLFormat&operator=(const TGLFormat&)
Bool_toperator==(const TGLFormat& rhs) const
voidSetAccumSize(Int_t accum)
voidSetDepthSize(Int_t depth)
voidSetDoubleBuffered(Bool_t db)
voidSetSamples(Int_t samples)
voidSetStencilSize(Int_t stencil)
voidSetStereo(Bool_t db)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
TGLFormat()
TGLFormat(Rgl::EFormatOptions options)
TGLFormat(const TGLFormat&)
private:
static Int_tGetDefaultSamples()
static voidInitAvailableSamples()

Data Members

private:
Int_tfAccumSize
Int_tfDepthSize
Bool_tfDoubleBuffered
Int_tfSamples
Int_tfStencilSize
Bool_tfStereo
static vector<Int_t>fgAvailableSamples

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLFormat()
 16-bits needed for some virtual machines (VirtualBox) and Xming-mesa
 (when running ssh from windows to linux).
 All others seem to have 24-bit depth-buffers only and use this anyway.
Default ctor. Default surface is:
-double buffered
-RGBA
-with depth buffer
-no accumulation buffer
-with stencil
-multi-sampling depends on seeting of "OpenGL.Framebuffer.Multisample"
TGLFormat(Rgl::EFormatOptions options)
Define surface using options.
~TGLFormat()
Destructor.
Int_t GetDepthSize() const
Get the size of depth buffer.
void SetDepthSize(Int_t depth)
Set the size of color buffer.
Bool_t HasDepth() const
Check, if this surface has depth buffer.
Int_t GetStencilSize() const
Get the size of stencil buffer.
void SetStencilSize(Int_t stencil)
Set the size of stencil buffer.
Bool_t HasStencil() const
Check, if this surface has stencil buffer.
Int_t GetAccumSize() const
Get the size of accum buffer.
void SetAccumSize(Int_t accum)
Set the size of accum buffer.
Bool_t HasAccumBuffer() const
Check, if this surface has accumulation buffer.
Bool_t IsDoubleBuffered() const
Check, if the surface is double buffered.
void SetDoubleBuffered(Bool_t db)
Set the surface as double/single buffered.
Bool_t IsStereo() const
Check, if the surface is stereo buffered.
void SetStereo(Bool_t db)
Set the surface as stereo/non-stereo buffered.
Int_t GetSamples() const
Get the number of samples for multi-sampling.
void SetSamples(Int_t samples)
Set the number of samples for multi-sampling.
Bool_t HasMultiSampling() const
Check, if multi-sampling is requred.
Int_t GetDefaultSamples()
 Return default number of samples for multi-sampling.
void InitAvailableSamples()
TGLFormat()