Setting Up Macos Window

Setting up the macOS window layer when porting a Windows game to Metal. Covers AppDelegate + NSWindow programmatic setup, a CAMetalLayer-backed GameView with CAMetalDisplayLink, GameViewController lifecycle, AppKit notifications routed into the engine via `Engine*` callbacks, keyboard/mouse input replacing WndProc, fullscreen transitions, cursor visibility and mouse-look confinement, sleep prevention, and per-frame screen state for sizes and EDR. Use whenever the question touches porting a Windows game window to macOS — AppDelegate / GameView / GameViewController setup, replacing WndProc, fullscreen, cursor handling, window resize, or AppKit notification routing.

apple db48047 7 files · 46.3 KB Updated

File contents

apple/game-porting-toolkit/tree/main/game-porting-skills/skills/setting-up-macos-window commit db480479f7

Frequently asked questions

npx skillmds@latest add apple/setting-up-macos-window