We are getting oh so close to rendering graphics on the Mac. In this video tutorial, we will setup the pixel buffer and figure out how to write its contents to a window in the Mac OS platform layer.
You will learn how NSBitmapImageRep, NSImage, and NSWindow work together to let you render the raw contents of memory to the screen.
You will start to understand the difference between code that is meant to be specific to one platform and code that is meant to work on all platforms.
You will also learn some Objective-C memory management and why you might choose to use an autoreleasepool in a hot loop with quite a few dynamic memory allocations.
Check out the git repo:
github.com/TheoBendixson/Handmade-Hero-Mac-Platfor…
🎮 PLAY COVE KID: tedbendixson.itch.io/cove-kid
🐦 TWITTER: twitter.com/TBendixson
🙏 PATREON: www.patreon.com/tedbendixson?fan_landing=true
📱 ITUNES: apps.apple.com/us/developer/send-it-apps-llc/id113…
📄 MEDIUM: theobendixson.medium.com/
💾 GITHUB: github.com/TheoBendixson
🦉 WYZANT: www.wyzant.com/tutor/profile
コメント