Support libgdx 1.9.11

This commit is contained in:
Izumi Kawashima 2022-11-23 19:48:12 +09:00
parent f7bdc420bf
commit fb94675868
3 changed files with 23 additions and 3 deletions

View File

@ -580,7 +580,7 @@ public class GdxGL extends GwtGL20 implements GL {
return glGetActiveAttrib(program, return glGetActiveAttrib(program,
index, index,
size, size,
type); (IntBuffer)type);
} }
@Override @Override
@ -588,7 +588,7 @@ public class GdxGL extends GwtGL20 implements GL {
return glGetActiveUniform(program, return glGetActiveUniform(program,
index, index,
size, size,
type); (IntBuffer)type);
} }
@Override @Override

View File

@ -179,7 +179,7 @@ public abstract class GwtApplication implements EntryPoint, Application {
lastWidth = graphics.getWidth(); lastWidth = graphics.getWidth();
lastHeight = graphics.getHeight(); lastHeight = graphics.getHeight();
Gdx.app = this; Gdx.app = this;
Gdx.audio = new GwtAudio(); Gdx.audio = new DefaultGwtAudio();
Gdx.graphics = graphics; Gdx.graphics = graphics;
Gdx.gl20 = graphics.getGL20(); Gdx.gl20 = graphics.getGL20();
Gdx.gl = Gdx.gl20; Gdx.gl = Gdx.gl20;

View File

@ -184,6 +184,26 @@ public class GwtGraphics implements Graphics {
return canvas.getHeight(); return canvas.getHeight();
} }
@Override
public int getSafeInsetLeft() {
return 0;
}
@Override
public int getSafeInsetTop() {
return 0;
}
@Override
public int getSafeInsetBottom() {
return 0;
}
@Override
public int getSafeInsetRight() {
return 0;
}
@Override @Override
public long getFrameId() { public long getFrameId() {
return frameId; return frameId;