Vixen
02b45cc4
csharp
public readonly record struct EglContextOptions

What to build an EglContext out of.

No guide page documents this yet — the page shows what the code says about itself.

Fields and properties (10)

  • public nint NativeWindow

    The native window to present to — an ANativeWindow* on Android — or zero for a device that renders offscreen.

  • public Int2 OffscreenSize

    How big the offscreen surface is, when there is no window.

  • public nint NativeDisplay

    The platform's display, or DefaultDisplay for the one it has.

  • public GlProfile? Profile

    Which dialect to ask for, or for the highest the driver will give — see EglContext's version ladder.

  • public int DepthBits

    The default framebuffer's depth, as a floor.

  • public int StencilBits

    Its stencil, as a floor.

  • public int Samples

    Its sample count; one asks for no multisample config at all.

  • public bool Debug

    Whether to ask for a debug context, which EGL 1.5 and up can give.

  • public nint ShareContext

    A context to share objects with, or zero.

  • public int SwapInterval

    How many vertical intervals a present waits for — one for vsync, zero for none.

Methods (1)

  • public EglContextOptions(nint NativeWindow, Int2 OffscreenSize = default(Int2), nint NativeDisplay = 0, GlProfile? Profile = null, int DepthBits = 24, int StencilBits = 8, int Samples = 1, bool Debug = false, nint ShareContext = 0, int SwapInterval = 1)

    What to build an EglContext out of.

Used by (4)

  • EglAttributeTestsVixen.Graphics.OpenGL.Tests
  • EglAttributesVixen.Graphics.OpenGL
  • EglContextVixen.Graphics.OpenGL
  • EglContextTestsVixen.Graphics.OpenGL.Tests