LLGL 0.05 Beta
Loading...
Searching...
No Matches
LLGL::NativeHandle Struct Reference

Android native handle structure. More...

#include <Win32NativeHandle.h>

Classes

struct  NativeHandleX11
struct  NativeHandleWayland

Public Attributes

ANativeWindow * window
void * view
NativeType type
 Specifies whether this is an X11 or Wayland native handle.
union { 
   NativeHandleX11   x11 
 Native handle for X11 protocol. More...
   NativeHandleWayland   wayland 
 Native handle for Wayland protocol. More...
}; 
void * responder
 Generic NSResponder object that must be either of type NSWindow or NSView.
IUnknown * window
 Core window raw pointer.
emscripten::val canvas
 CSS selector of canvas object.
HWND window

Detailed Description

Android native handle structure.

Win32 native handle structure.

Emscripten native handle structure.

UWP native handle structure.

MacOS native handle structure.

Linux native handle structure.

iOS native handle structure.

See also
Surface::GetNativeHandle
Surface::GetNativeHandle
WindowDescriptor::windowContext
Remarks
This must be a POD (Plain-Old-Data) structure, so no default initialization is provided!
See also
Surface::GetNativeHandle
WindowDescriptor::windowContext

Member Data Documentation

◆ [union]

union { ... } LLGL::NativeHandle

◆ canvas

emscripten::val LLGL::NativeHandle::canvas

CSS selector of canvas object.

◆ responder

void* LLGL::NativeHandle::responder

Generic NSResponder object that must be either of type NSWindow or NSView.

Remarks
When a SwapChain is created, the responder is interpreted as:
  • Top-level window if it points to an NSWindow, in which case the respective MTKView (Metal) or GLKView (OpenGL) will replace its content view.
  • Subview if it points to an NSView, in which case the respective MTKView (Metal) or GLKView (OpenGL) will be added as a subview.
See also
WindowDescriptor::windowContext

◆ type

NativeType LLGL::NativeHandle::type

Specifies whether this is an X11 or Wayland native handle.

◆ view

void* LLGL::NativeHandle::view

◆ wayland

NativeHandleWayland LLGL::NativeHandle::wayland

Native handle for Wayland protocol.

◆ window [1/3]

ANativeWindow* LLGL::NativeHandle::window

◆ window [2/3]

IUnknown* LLGL::NativeHandle::window

Core window raw pointer.

Remarks
This must be initialized with a raw pointer to a Microsoft::UI::Core::CoreWindow object.

◆ window [3/3]

HWND LLGL::NativeHandle::window

◆ x11

NativeHandleX11 LLGL::NativeHandle::x11

Native handle for X11 protocol.


The documentation for this struct was generated from the following files: