ROOT logo
ROOT » GRAF3D » GL » TGLFormat

class TGLFormat


 Encapsulation of format / contents of an OpenGL buffer.

Function Members (Methods)

public:
TGLFormat()
TGLFormat(TGLFormat::EFormatOptions options)
TGLFormat(const TGLFormat&)
virtual~TGLFormat()
static TClass*Class()
UInt_tGetAccumSize() const
UInt_tGetDepthSize() const
UInt_tGetStencilSize() const
Bool_tHasAccumBuffer() const
Bool_tHasDepth() 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(UInt_t accum)
voidSetDepthSize(UInt_t depth)
voidSetDoubleBuffered(Bool_t db)
voidSetStencilSize(UInt_t stencil)
voidSetStereo(Bool_t db)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)

Data Members

public:
enum EFormatOptions { kDoubleBuffer
kDepth
kAccum
kStencil
kStereo
};
private:
UInt_tfAccumSize
UInt_tfDepthSize
Bool_tfDoubleBuffered
UInt_tfStencilSize
Bool_tfStereo

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLFormat()
Default ctor. Default surface is:
-double buffered
-RGBA
-with depth buffer
TGLFormat(EFormatOptions opt)
Define surface using options.
~TGLFormat()
Destructor.
UInt_t GetDepthSize() const
Get the size of depth buffer.
void SetDepthSize(UInt_t depth)
Set the size of color buffer.
Bool_t HasDepth() const
Check, if this surface has depth buffer.
UInt_t GetStencilSize() const
Get the size of stencil buffer.
void SetStencilSize(UInt_t stencil)
Set the size of stencil buffer.
Bool_t HasStencil() const
Check, if this surface has stencil buffer.
UInt_t GetAccumSize() const
Get the size of accum buffer.
void SetAccumSize(UInt_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.
TGLFormat()