Back to project page fun-gl.
The source code is released under:
Apache License
If you think the Android project fun-gl listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.sample.clean; //from w ww . j a va2 s . c o m import com.jcxavier.android.opengl.engine.EngineActivity; import com.jcxavier.android.opengl.engine.RendererOptions; import com.jcxavier.android.opengl.game.GameStage; import com.jcxavier.android.opengl.game.SimpleGameStage; import com.jcxavier.android.opengl.game.camera.OrthographicCamera; import com.jcxavier.android.opengl.math.Vector3; public class TestActivity extends EngineActivity { private SimpleGameStage mStage; @Override protected void onGameSetup() { // creates a basic test stage with a 2D, top-down default orthographic camera mStage = new TestStage(new OrthographicCamera()); } @Override protected GameStage onGameStart() { return mStage; } @Override protected void onLoadAssets() { // assets can now be loaded if needed } @Override protected void onConfigureOptions(final RendererOptions options) { // configures the renderer with basic options options.setBackgroundColor(new Vector3(0.6f, 0.6f, 0.6f)); } @Override protected void onGameFinished() { // game was finished, application is about to exit } }