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

Page-based user interface

In the previous chapter, we developed a game that contained a single page. Most of the modern mobile games, however, contain sophisticated user interfaces backed by complex business logic. A typical user interface consists of several full-screen pages with multiple UI elements, such as buttons, images and, input boxes. These are rendered using the in-game rendering system, and do not depend on the user interface of the underlying operating system. In this recipe, we show you how to approach this problem.

Getting ready

You might want to find out what open source C++ multiplatform UI libraries exist out there. The following link will help you: http://en.wikipedia.org/wiki/List_of_platform-independent_GUI_libraries.

We would ...

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