libgdx api changes

This commit is contained in:
Hannes Janetzek 2014-03-08 04:48:16 +01:00
parent 12ad13c0af
commit f313bb30f7
2 changed files with 8 additions and 17 deletions

View File

@ -164,7 +164,7 @@ public abstract class GwtApplication implements EntryPoint, Application {
//Gdx.audio = new GwtAudio();
Gdx.graphics = graphics;
Gdx.gl20 = graphics.getGL20();
Gdx.gl = graphics.getGLCommon();
Gdx.gl = Gdx.gl20;
Gdx.files = new GwtFiles(preloader);
this.input = new GwtInput(graphics.canvas);
Gdx.input = this.input;

View File

@ -22,7 +22,6 @@ import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Graphics;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.GL30;
import com.badlogic.gdx.graphics.GLCommon;
import com.badlogic.gdx.utils.GdxRuntimeException;
import com.google.gwt.canvas.client.Canvas;
import com.google.gwt.dom.client.CanvasElement;
@ -111,15 +110,9 @@ public class GwtGraphics implements Graphics {
return context;
}
@Override
public GLCommon getGLCommon() {
return gl;
}
@Override
public GL20 getGL20() {
return null;
return gl;
}
@Override
@ -333,13 +326,11 @@ public class GwtGraphics implements Graphics {
@Override
public boolean isGL30Available() {
// TODO Auto-generated method stub
return false;
}
@Override
public GL30 getGL30() {
// TODO Auto-generated method stub
return null;
}
}