handmade.network » Forums » Handmade Hero Starting With OSX Platform Layer
tedbendixson
Ted Bendixson
6 posts

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

#17065 Handmade Hero Starting With OSX Platform Layer
2 months, 3 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.
mmozeiko
Mārtiņš Možeiko
1903 posts / 1 project
#17066 Handmade Hero Starting With OSX Platform Layer
2 months, 3 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.
tedbendixson
Ted Bendixson
6 posts

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

#17071 Handmade Hero Starting With OSX Platform Layer
2 months, 3 weeks ago

Thanks! Changed it.
mrmixer
Simon Anciaux
565 posts
#17075 Handmade Hero Starting With OSX Platform Layer
2 months, 3 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.
tedbendixson
Ted Bendixson
6 posts

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

#17085 Handmade Hero Starting With OSX Platform Layer
2 months, 3 weeks ago

Again, many thanks.