Before We Begin

As always, we'll create a couple of simple example programs in this chapter. To do that, we just create a new project and copy over all of the source code of the framework we've developed so far.

As In previous chapters, we'll have a single test starter activity that presents us with the tests in the form of a list. We'll call it GLAdvancedStarter and make it our default activity. Simply copy over the GL3DBasicsStarter, and replace the class names of the tests. We also need to add each of the test activities to the manifest with a proper <activity>element.

Each of the tests will extend GLGame as usual; the actual code will be implemented as a GLScreen that we'll hook up with the GLGame instance. To conserve space, we'll only present you with the relevant portions of the GLScreen implementations. All of the tests and the starter activity reside within the package com.badlogic.androidgames.gladvanced. Some of the classes will be part of our framework and will go into the respective framework packages.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.149.249.154