libgdx api changes
This commit is contained in:
parent
12ad13c0af
commit
f313bb30f7
@ -164,7 +164,7 @@ public abstract class GwtApplication implements EntryPoint, Application {
|
|||||||
//Gdx.audio = new GwtAudio();
|
//Gdx.audio = new GwtAudio();
|
||||||
Gdx.graphics = graphics;
|
Gdx.graphics = graphics;
|
||||||
Gdx.gl20 = graphics.getGL20();
|
Gdx.gl20 = graphics.getGL20();
|
||||||
Gdx.gl = graphics.getGLCommon();
|
Gdx.gl = Gdx.gl20;
|
||||||
Gdx.files = new GwtFiles(preloader);
|
Gdx.files = new GwtFiles(preloader);
|
||||||
this.input = new GwtInput(graphics.canvas);
|
this.input = new GwtInput(graphics.canvas);
|
||||||
Gdx.input = this.input;
|
Gdx.input = this.input;
|
||||||
|
@ -22,7 +22,6 @@ import com.badlogic.gdx.Gdx;
|
|||||||
import com.badlogic.gdx.Graphics;
|
import com.badlogic.gdx.Graphics;
|
||||||
import com.badlogic.gdx.graphics.GL20;
|
import com.badlogic.gdx.graphics.GL20;
|
||||||
import com.badlogic.gdx.graphics.GL30;
|
import com.badlogic.gdx.graphics.GL30;
|
||||||
import com.badlogic.gdx.graphics.GLCommon;
|
|
||||||
import com.badlogic.gdx.utils.GdxRuntimeException;
|
import com.badlogic.gdx.utils.GdxRuntimeException;
|
||||||
import com.google.gwt.canvas.client.Canvas;
|
import com.google.gwt.canvas.client.Canvas;
|
||||||
import com.google.gwt.dom.client.CanvasElement;
|
import com.google.gwt.dom.client.CanvasElement;
|
||||||
@ -111,15 +110,9 @@ public class GwtGraphics implements Graphics {
|
|||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public GLCommon getGLCommon() {
|
|
||||||
return gl;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public GL20 getGL20() {
|
public GL20 getGL20() {
|
||||||
return null;
|
return gl;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -332,14 +325,12 @@ public class GwtGraphics implements Graphics {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isGL30Available() {
|
public boolean isGL30Available() {
|
||||||
// TODO Auto-generated method stub
|
return false;
|
||||||
return false;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public GL30 getGL30() {
|
public GL30 getGL30() {
|
||||||
// TODO Auto-generated method stub
|
return null;
|
||||||
return null;
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user