NativeHandleFlags
Description
Enumeration of native window handle flags.
This enumeration is a bitflag which encodes both the native handle type (see Type) and the feature set (see Feature).
The handle type may be used at runtime to decide which platform-dependent APIs to use, for example in order to create an OpenGL context or a Vulkan instance.
- See also
Public / Constants
Type
Bitmask of type flags.
The type flag determines how the INativeHandle.NativeHandle values of INativeWindow and RenderContext objects may be interpreted, after having obtained them from one of these factory methods, for example:
Type_Unspecified
The native window handle type is left unspecified.
The documentation of the class that implements the INativeWindow interface or the abstract RenderContext class should provide information about how to interpret the native window handle, which implies that code using Type_Unspecified will work only with that concrete class.
- See also
Type_WinAPI
Native handle values of the Windows API
https://docs.microsoft.com/en-us/windows/win32/api
INativeWindow : HWND
RenderContext : HGLRC
- See also
Type_Wayland
Native handle values of the Wayland API
https://wayland.freedesktop.org/
INativeWindow : wl_surface*
RenderContext : ?
- See also
Type_X11
Native handle values of the X11 API
https://x.org/wiki/
INativeWindow : Window
RenderContext : ?
- See also
Type_MacOS
Native handle values of the macOS API
https://developer.apple.com/documentation/appkit/
INativeWindow : NSWindow
RenderContext : ?
- See also
Type_SDL2
Native handle values of the Simple DirectMedia Layer 2
https://wiki.libsdl.org/SDL2/
INativeWindow : SDL_Window*
RenderContext : SDL_GLContext
- See also
Type_SDL3
Native handle values of the Simple DirectMedia Layer 3
https://wiki.libsdl.org/SDL3/
INativeWindow : SDL_Window*
RenderContext : SDL_GLContext
- See also