Skip to content

Instantly share code, notes, and snippets.

@Lperlind
Lperlind / minimal_metal_window_darwin.odin
Last active August 5, 2024 20:55
Odin Minimal Metal Window
/*
Minmal Cocoa Window with Metal API
No error handling intentionally to just show the happy path
IMPORTANT: you odin version needs to be using the commit edcd335 or later!
Otherwise you will get a silent error at runtime as Cocoa would have not been linked!
*/
package minimal_metal_window
import NS "vendor:darwin/Foundation"