Vixen
02b45cc4
csharp
public readonly record struct GlContextRequest

What kind of OpenGL context to ask the windowing layer for.

Read the guide page for this →

Remarks

⚠ Version and profile are decided when the context is created; the pixel format is decided when the window is. Depth and stencil bits belong to the framebuffer the window was made with, so they are the platform's option rather than this record's — asking for them here would be a request that arrives after the only moment it could be honoured.

Fields and properties (4)

  • public int MajorVersion

    The major version to ask for.

  • public int MinorVersion

    The minor version to ask for.

  • public bool UseEmbedded

    Whether to ask for OpenGL ES rather than desktop OpenGL.

  • public bool Debug

    Whether to ask for a debug context.

Methods (1)

  • public GlContextRequest()

    What kind of OpenGL context to ask the windowing layer for.

Used by (3)

  • DesktopGlContextVixen.Platform.Desktop
  • DesktopWindowVixen.Platform.Desktop
  • IGlContextSourceVixen.Platform