Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGLFormat Class Reference

Encapsulation of format / contents of an OpenGL buffer.

Definition at line 35 of file TGLFormat.h.

Public Member Functions

 TGLFormat ()
 
 TGLFormat (Rgl::EFormatOptions options)
 Define surface using options.
 
virtual ~TGLFormat ()
 Destructor.
 
Int_t GetAccumSize () const
 Get the size of accum buffer.
 
Int_t GetDepthSize () const
 Get the size of depth buffer.
 
Int_t GetSamples () const
 Get the number of samples for multi-sampling.
 
Int_t GetStencilSize () const
 Get the size of stencil buffer.
 
Bool_t HasAccumBuffer () const
 Check, if this surface has accumulation buffer.
 
Bool_t HasDepth () const
 Check, if this surface has depth buffer.
 
Bool_t HasMultiSampling () const
 Check, if multi-sampling is required.
 
Bool_t HasStencil () const
 Check, if this surface has stencil buffer.
 
virtual TClassIsA () const
 
Bool_t IsDoubleBuffered () const
 Check, if the surface is double buffered.
 
Bool_t IsStereo () const
 Check, if the surface is stereo buffered.
 
Bool_t operator!= (const TGLFormat &rhs) const
 Check for non-equality.
 
Bool_t operator== (const TGLFormat &rhs) const
 Check if two formats are equal.
 
void SetAccumSize (Int_t accum)
 Set the size of accum buffer.
 
void SetDepthSize (Int_t depth)
 Set the size of color buffer.
 
void SetDoubleBuffered (Bool_t db)
 Set the surface as double/single buffered.
 
void SetSamples (Int_t samples)
 Set the number of samples for multi-sampling.
 
void SetStencilSize (Int_t stencil)
 Set the size of stencil buffer.
 
void SetStereo (Bool_t db)
 Set the surface as stereo/non-stereo buffered.
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Static Private Member Functions

static Int_t GetDefaultSamples ()
 Return default number of samples for multi-sampling.
 
static void InitAvailableSamples ()
 

Private Attributes

Int_t fAccumSize
 
Int_t fDepthSize
 
Bool_t fDoubleBuffered
 
Int_t fSamples
 
Int_t fStencilSize
 
Bool_t fStereo
 

Static Private Attributes

static std::vector< Int_tfgAvailableSamples
 

#include <TGLFormat.h>

Constructor & Destructor Documentation

◆ TGLFormat() [1/2]

TGLFormat::TGLFormat ( )

Definition at line 36 of file TGLFormat.cxx.

◆ TGLFormat() [2/2]

TGLFormat::TGLFormat ( Rgl::EFormatOptions  options)

Define surface using options.

Definition at line 63 of file TGLFormat.cxx.

◆ ~TGLFormat()

TGLFormat::~TGLFormat ( )
virtual

Destructor.

Definition at line 80 of file TGLFormat.cxx.

Member Function Documentation

◆ Class()

static TClass * TGLFormat::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TGLFormat::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TGLFormat::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 83 of file TGLFormat.h.

◆ DeclFileName()

static const char * TGLFormat::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 83 of file TGLFormat.h.

◆ GetAccumSize()

Int_t TGLFormat::GetAccumSize ( ) const

Get the size of accum buffer.

Definition at line 154 of file TGLFormat.cxx.

◆ GetDefaultSamples()

Int_t TGLFormat::GetDefaultSamples ( )
staticprivate

Return default number of samples for multi-sampling.

Definition at line 235 of file TGLFormat.cxx.

◆ GetDepthSize()

Int_t TGLFormat::GetDepthSize ( ) const

Get the size of depth buffer.

Definition at line 104 of file TGLFormat.cxx.

◆ GetSamples()

Int_t TGLFormat::GetSamples ( ) const

Get the number of samples for multi-sampling.

Definition at line 211 of file TGLFormat.cxx.

◆ GetStencilSize()

Int_t TGLFormat::GetStencilSize ( ) const

Get the size of stencil buffer.

Definition at line 129 of file TGLFormat.cxx.

◆ HasAccumBuffer()

Bool_t TGLFormat::HasAccumBuffer ( ) const

Check, if this surface has accumulation buffer.

Definition at line 171 of file TGLFormat.cxx.

◆ HasDepth()

Bool_t TGLFormat::HasDepth ( ) const

Check, if this surface has depth buffer.

Definition at line 121 of file TGLFormat.cxx.

◆ HasMultiSampling()

Bool_t TGLFormat::HasMultiSampling ( ) const

Check, if multi-sampling is required.

Definition at line 227 of file TGLFormat.cxx.

◆ HasStencil()

Bool_t TGLFormat::HasStencil ( ) const

Check, if this surface has stencil buffer.

Definition at line 146 of file TGLFormat.cxx.

◆ InitAvailableSamples()

void TGLFormat::InitAvailableSamples ( )
staticprivate

Definition at line 263 of file TGLFormat.cxx.

◆ IsA()

virtual TClass * TGLFormat::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Definition at line 83 of file TGLFormat.h.

◆ IsDoubleBuffered()

Bool_t TGLFormat::IsDoubleBuffered ( ) const

Check, if the surface is double buffered.

Definition at line 179 of file TGLFormat.cxx.

◆ IsStereo()

Bool_t TGLFormat::IsStereo ( ) const

Check, if the surface is stereo buffered.

Definition at line 195 of file TGLFormat.cxx.

◆ operator!=()

Bool_t TGLFormat::operator!= ( const TGLFormat rhs) const

Check for non-equality.

Definition at line 96 of file TGLFormat.cxx.

◆ operator==()

Bool_t TGLFormat::operator== ( const TGLFormat rhs) const

Check if two formats are equal.

Definition at line 87 of file TGLFormat.cxx.

◆ SetAccumSize()

void TGLFormat::SetAccumSize ( Int_t  accum)

Set the size of accum buffer.

Definition at line 162 of file TGLFormat.cxx.

◆ SetDepthSize()

void TGLFormat::SetDepthSize ( Int_t  depth)

Set the size of color buffer.

Definition at line 112 of file TGLFormat.cxx.

◆ SetDoubleBuffered()

void TGLFormat::SetDoubleBuffered ( Bool_t  db)

Set the surface as double/single buffered.

Definition at line 187 of file TGLFormat.cxx.

◆ SetSamples()

void TGLFormat::SetSamples ( Int_t  samples)

Set the number of samples for multi-sampling.

Definition at line 219 of file TGLFormat.cxx.

◆ SetStencilSize()

void TGLFormat::SetStencilSize ( Int_t  stencil)

Set the size of stencil buffer.

Definition at line 137 of file TGLFormat.cxx.

◆ SetStereo()

void TGLFormat::SetStereo ( Bool_t  db)

Set the surface as stereo/non-stereo buffered.

Definition at line 203 of file TGLFormat.cxx.

◆ Streamer()

virtual void TGLFormat::Streamer ( TBuffer )
virtual

◆ StreamerNVirtual()

void TGLFormat::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 83 of file TGLFormat.h.

Member Data Documentation

◆ fAccumSize

Int_t TGLFormat::fAccumSize
private

Definition at line 41 of file TGLFormat.h.

◆ fDepthSize

Int_t TGLFormat::fDepthSize
private

Definition at line 40 of file TGLFormat.h.

◆ fDoubleBuffered

Bool_t TGLFormat::fDoubleBuffered
private

Definition at line 38 of file TGLFormat.h.

◆ fgAvailableSamples

std::vector< Int_t > TGLFormat::fgAvailableSamples
staticprivate

Definition at line 45 of file TGLFormat.h.

◆ fSamples

Int_t TGLFormat::fSamples
private

Definition at line 43 of file TGLFormat.h.

◆ fStencilSize

Int_t TGLFormat::fStencilSize
private

Definition at line 42 of file TGLFormat.h.

◆ fStereo

Bool_t TGLFormat::fStereo
private

Definition at line 39 of file TGLFormat.h.

Libraries for TGLFormat:

The documentation for this class was generated from the following files: