Skip to content

Instantly share code, notes, and snippets.

View xslattery's full-sized avatar

Xavier Slattery xslattery

View GitHub Profile
@xslattery
xslattery / platform_macos_metal_example.mm
Last active October 1, 2018 13:24
This is an example of manually driving a MacOS Metal application with a loop. Including events and rendering.
//
// platform_macos_metal_example.mm
// macos-platform-metal-example
//
#import <Cocoa/Cocoa.h>
#import <MetalKit/MetalKit.h>
bool running = true;