Back to project page CircleWorldGDX.
The source code is released under:
MIT License
If you think the Android project CircleWorldGDX 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.fdangelo.circleworld.gui.core; /* w ww . j a v a 2 s .c om*/ public class Gui { static private Screen activeScreen; static public void setActiveScreen(final Screen screen) { activeScreen = screen; activeScreen.setActive(); } static public Screen getActiveScreen() { return activeScreen; } static public void update(final float deltaTime) { if (activeScreen != null) { activeScreen.update(deltaTime); } } static public void draw() { if (activeScreen != null) { activeScreen.draw(); } } public static void resize(final int width, final int height) { if (activeScreen != null) { activeScreen.resize(width, height); } } }