Register
handmade.network»Forums»Handmade Hero Starting With OSX Platform Layer
Ted Bendixson
16 posts

I make apps and games for Mac OS and iOS. Avid terrain park snowboarder. Park City, UT.

Handmade Hero Starting With OSX Platform Layer
10 months, 4 weeks ago Edited by Ted Bendixson on Dec. 27, 2018, 9:54 p.m. Reason: Initial post
Hey all,

I wanted to start building Handmade Hero on my Mac but there weren't any videos starting on that platform. So instead of buying a P.C. to start following along, I decided to learn how it's done on a Mac and share it as a tutorial series (Youtube videos coming soon).

https://medium.com/@theobendixson...platform-layer-day-1-9348559e9211

Happy to hear your feedback.
Mārtiņš Možeiko
1983 posts / 1 project
Handmade Hero Starting With OSX Platform Layer
10 months, 4 weeks ago
Your snippet with iostream and printf is kind of wrong. printf is in "stdio.h" (or "cstdio"), not in iostream. In iostream there is std::cout, if that is your thing.
Ted Bendixson
16 posts

I make apps and games for Mac OS and iOS. Avid terrain park snowboarder. Park City, UT.

Handmade Hero Starting With OSX Platform Layer
10 months, 4 weeks ago
Thanks! Changed it.
Simon Anciaux
681 posts
Handmade Hero Starting With OSX Platform Layer
10 months, 4 weeks ago
1
2
3
#include "stdio.h"
/* Should be */
#include <stdio.h>

Using < and > instead of " changes where the compiler is looking for the header. For system header (header provided by xcode) you should use < and >, for the headers of your project you should use ". Here is how it works with msvc, but I guess it works in a similar way with clang.
Ted Bendixson
16 posts

I make apps and games for Mac OS and iOS. Avid terrain park snowboarder. Park City, UT.

Handmade Hero Starting With OSX Platform Layer
10 months, 3 weeks ago
Again, many thanks.