public readonly record struct EglContextOptionsWhat to build an EglContext out of.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (11)
public nint NativeWindowThe native window to present to — an ANativeWindow* on Android — or zero for a device that renders offscreen.
public Int2 OffscreenSizeHow big the offscreen surface is, when there is no window.
public nint NativeDisplayThe platform's display, or DefaultDisplay for the one it has.
public GlProfile? ProfileWhich dialect to ask for, or for the highest the driver will give — see EglContext's version ladder.
public int DepthBitsThe default framebuffer's depth, as a floor.
public int StencilBitsIts stencil, as a floor.
public int SamplesIts sample count; one asks for no multisample config at all.
public bool DebugWhether to ask for a debug context, which EGL 1.5 and up can give.
public nint ShareContextA context to share objects with, or zero.
public int SwapIntervalHow many vertical intervals a present waits for — one for vsync, zero for none.
public Action<nint, int>? PrepareNativeWindowCalled with the native window and the chosen config's NativeVisualId, between choosing the config and creating the surface, or for a platform that needs nothing done.
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, Action<nint, int>? PrepareNativeWindow = null)What to build an EglContext out of.
Used by (4)
- EglAttributeTestsVixen.Graphics.OpenGL.Tests
- EglAttributesVixen.Graphics.OpenGL
- EglContextVixen.Graphics.OpenGL
- EglContextTestsVixen.Graphics.OpenGL.Tests