Created
March 1, 2015 23:44
-
-
Save dzt/0b4863b5c2b504da70aa to your computer and use it in GitHub Desktop.
gdx_main_temp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.petersoboyejo.gdxgame; | |
public class Game extends ApplicationAdapter { | |
private SpriteBatch batch; | |
@Override | |
public void create() { | |
batch = new SpriteBatch(); | |
} | |
@Override | |
public void dispose() { | |
batch.dispose(); | |
} | |
@Override | |
public void render() { | |
Gdx.gl.glClearColor(1, 1, 1, 1); | |
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); | |
batch.begin(); | |
batch.end(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment