cee::win::OpenGLContextSpecWin Class Reference

Specification class for creation of a Windows OpenGL context. More...

Public Member Functions

 OpenGLContextSpecWin ()
 Constructor - sets defaults. More...
 
void setDefault ()
 Sets default values. More...
 
void setColorBitsCount (unsigned char count)
 Sets the color bits count. More...
 
unsigned char colorBitsCount () const
 Gets the color bits count. More...
 
void setMultiSampling (bool set, int samplesCount=-1)
 Enables/disables multi sampling and set the number of samples (-1 means max possible). Note: samplesCount must be 2^n if != -1. More...
 
bool multiSampling () const
 Gets multi sampling toggle value. More...
 
int samplesCount () const
 Gets the number of samples for multi sampling (-1 means max possible) More...
 
bool needsWGLExtensions () const
 Checks if the spec requires WGL extensions. More...
 

Detailed Description

Specification class for creation of a Windows OpenGL context.

Currently used for enabling multi sampling (anti-aliasing) WGL extension.

Constructor & Destructor Documentation

cee::win::OpenGLContextSpecWin::OpenGLContextSpecWin ( )

Constructor - sets defaults.

Member Function Documentation

unsigned char cee::win::OpenGLContextSpecWin::colorBitsCount ( ) const

Gets the color bits count.

bool cee::win::OpenGLContextSpecWin::multiSampling ( ) const

Gets multi sampling toggle value.

bool cee::win::OpenGLContextSpecWin::needsWGLExtensions ( ) const

Checks if the spec requires WGL extensions.

int cee::win::OpenGLContextSpecWin::samplesCount ( ) const

Gets the number of samples for multi sampling (-1 means max possible)

void cee::win::OpenGLContextSpecWin::setColorBitsCount ( unsigned char  count)

Sets the color bits count.

void cee::win::OpenGLContextSpecWin::setDefault ( )

Sets default values.

void cee::win::OpenGLContextSpecWin::setMultiSampling ( bool  set,
int  samplesCount = -1 
)

Enables/disables multi sampling and set the number of samples (-1 means max possible). Note: samplesCount must be 2^n if != -1.