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…
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 libraryfs
: This contains filesystem related classesGL
: This contains the official OpenGL headersinclude
: This contains the include files of some third-party librariesgraphics
: This contains high-level graphics-related code, such as fonts, canvas, and imagesLGL
: This contains our OpenGL wrapper and functions-loading code together with the abstraction layer...