Chapter    5

Supporting Multiple Platforms in C++

There will come a time in your game development career when you have to write code which will only work on a single platform. That code will have to be compiled out of other platforms. You will more than likely also have to find alternative implementations for each of the platforms you will be working on. Classic examples of such code can usually be found in interactions between your game and online login and microtransaction solutions such as Game Center, Google+, Xbox Live, PlayStation Network and Steam.

There can be more complicated problems between different platforms. iOS devices run on Arm processors, Android supports Arm, x86 and MIPS and most other operating systems can be run on more ...

Get C++ Game Development Primer now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.