II. Application Example
Package com. example. groupactiontest; import com. badlogic. gdx. applicationListener; import com. badlogic. gdx. gdx; import com. badlogic. gdx. input. keys; import com. badlogic. gdx. input. peripheral; import com. badlogic. gdx. graphics. GL10; public class MyGame implements ApplicationListener {@ Overridepublic void create () {boolean fullscreen = Gdx. graphics. isFullscreen (); // determines whether the current screen supports full screen System. out. println ("fullscreen: --------->" + fullscreen); Gdx. graphics. setDisplayMode (1280,720, true); // set resolution to HD ready (1280x720) and set full-screen to true // set resolution to default and set full-screen to trueGdx. graphics. setDisplayMode (Gdx. graphics. getjavastopdisplaymode (). width, Gdx. graphics. getjavastopdisplaymode (). height, true); Gdx. graphics. setVSync (true) ;}@ Overridepublic void dispose () {// TODO Auto-generated method stub} @ Overridepublic void pause () {// TODO Auto-generated method stub} @ Overridepublic void render () {Gdx. gl. glClear (GL10.GL _ COLOR_BUFFER_BIT) ;}@ Overridepublic void resize (int arg0, int arg1) {// TODO Auto-generated method stub} @ Overridepublic void resume () {// TODO Auto-generated method stub }}
4. Download source code
Http://download.csdn.net/detail/caihongshijie6/7052163