O'Reilly logo

Android NDK Game Development Cookbook by Viktor Latypov, Sergey Kosarevsky

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a multiplatform gaming engine

In previous chapters and recipes, we handcrafted many ad hoc solutions to some multiplatform game development tasks. Now, we are going to combine all the relevant code into a nascent portable gaming engine and learn how to prepare makefiles for Windows and Android to build it.

Getting ready

To understand what is going on in this recipe, you are advised to read through the chapters 1 to 7 from the beginning of this book.

How to do it…

  1. We split all our code into several logical subsystems and put them into the following folders:
    • core: This has low level facilities, such as the intrusive smartpointer and math library
    • fs: This contains filesystem related classes
    • GL: This contains the official OpenGL headers
    • include

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required