# cee::win::OpenGLContextSpecWin

class `OpenGLContextSpecWin`

  Specification class for creation of a Windows OpenGL context.

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

  Public Functions

  `OpenGLContextSpecWin`()

    Constructor - sets defaults.

  void `setDefault`()

    Sets default values.

  void `setColorBitsCount`(unsigned char count)

    Sets the color bits count.

  unsigned char `colorBitsCount`() const

    Gets the color bits count.

  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

  bool `multiSampling`() const

    Gets multi sampling toggle value.

  int `samplesCount`() const

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

  bool `needsWGLExtensions`() const

    Checks if the spec requires WGL extensions.

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Envision for Desktop in your own language, or choose a sample question below to start a conversation:

What is HOOPS Envision for Desktop?
What are the latest release notes for HOOPS Envision for Desktop?
How do I start evaluating HOOPS Envision for Desktop?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...