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_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)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)

Data Members

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

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()
Get the size of depth buffer.
void SetDepthSize(UInt_t depth)
Set the size of color buffer.
Bool_t HasDepth()
Check, if this surface has depth buffer.
UInt_t GetStencilSize()
Get the size of stencil buffer.
void SetStencilSize(UInt_t stencil)
Set the size of stencil buffer.
Bool_t HasStencil()
Check, if this surface has stencil buffer.
UInt_t GetAccumSize()
Get the size of accum buffer.
void SetAccumSize(UInt_t accum)
Set the size of accum buffer.
Bool_t HasAccumBuffer()
Check, if this surface has accumulation buffer.
Bool_t IsDoubleBuffered()
Check, if the surface is double buffered.
void SetDoubleBuffered(Bool_t db)
Set the surface as double/single buffered.
TGLFormat()

Author: Timur Pocheptsov, Jun 2007
Last update: root/gl:$Id: TGLFormat.h 21453 2007-12-18 15:18:30Z matevz $
Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.