Skip to content

Instantly share code, notes, and snippets.

@Lperlind
Lperlind / minimal_metal_window_darwin.odin
Last active February 7, 2024 12:34
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"