sdl2/generated/lib_sdl_metal library

Functions

sdlMetalCreateView(Pointer<SdlWindow> window) Pointer<NativeType>
Create a CAMetalLayer-backed NSView/UIView and attach it to the specified window.
sdlMetalDestroyView(Pointer<NativeType> view) → void
Destroy an existing SDL_MetalView object.
sdlMetalGetDrawableSize(Pointer<SdlWindow> window, Pointer<Int32> w, Pointer<Int32> h) → void
Get the size of a window's underlying drawable in pixels (for use with setting viewport, scissor & etc).
sdlMetalGetLayer(Pointer<NativeType> view) Pointer<NativeType>
Get a pointer to the backing CAMetalLayer for the given view.