本文整理了Java中com.badlogic.gdx.Graphics.isContinuousRendering()
方法的一些代码示例,展示了Graphics.isContinuousRendering()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Graphics.isContinuousRendering()
方法的具体详情如下:
包路径:com.badlogic.gdx.Graphics
类名称:Graphics
方法名:isContinuousRendering
暂无
代码示例来源:origin: libgdx/libgdx
public void changed (ChangeEvent event, Actor actor) {
boolean continuous = Gdx.graphics.isContinuousRendering();
Gdx.graphics.setContinuousRendering(!continuous);
}
});
代码示例来源:origin: libgdx/libgdx
@Override
public void onOffsetsChanged (final float xOffset, final float yOffset, final float xOffsetStep, final float yOffsetStep,
final int xPixelOffset, final int yPixelOffset) {
// it spawns too frequent on some devices - its annoying!
// if (DEBUG)
// Log.d(TAG, " > AndroidWallpaperEngine - onOffsetChanged(" + xOffset + " " + yOffset + " " + xOffsetStep + " "
// + yOffsetStep + " " + xPixelOffset + " " + yPixelOffset + ") " + hashCode() + ", linkedApp: " + (linkedApp != null));
this.offsetsConsumed = false;
this.xOffset = xOffset;
this.yOffset = yOffset;
this.xOffsetStep = xOffsetStep;
this.yOffsetStep = yOffsetStep;
this.xPixelOffset = xPixelOffset;
this.yPixelOffset = yPixelOffset;
// can fail if linkedApp == null, so we repeat it in Engine.onResume
notifyOffsetsChanged();
if (!Gdx.graphics.isContinuousRendering()) {
Gdx.graphics.requestRendering();
}
super.onOffsetsChanged(xOffset, yOffset, xOffsetStep, yOffsetStep, xPixelOffset, yPixelOffset);
}
代码示例来源:origin: libgdx/libgdx
@Override
public void onOffsetsChanged (final float xOffset, final float yOffset, final float xOffsetStep, final float yOffsetStep,
final int xPixelOffset, final int yPixelOffset) {
// it spawns too frequent on some devices - its annoying!
// if (DEBUG)
// Log.d(TAG, " > AndroidWallpaperEngine - onOffsetChanged(" + xOffset + " " + yOffset + " " + xOffsetStep + " "
// + yOffsetStep + " " + xPixelOffset + " " + yPixelOffset + ") " + hashCode() + ", linkedApp: " + (linkedApp != null));
this.offsetsConsumed = false;
this.xOffset = xOffset;
this.yOffset = yOffset;
this.xOffsetStep = xOffsetStep;
this.yOffsetStep = yOffsetStep;
this.xPixelOffset = xPixelOffset;
this.yPixelOffset = yPixelOffset;
// can fail if linkedApp == null, so we repeat it in Engine.onResume
notifyOffsetsChanged();
if (!Gdx.graphics.isContinuousRendering()) {
Gdx.graphics.requestRendering();
}
super.onOffsetsChanged(xOffset, yOffset, xOffsetStep, yOffsetStep, xPixelOffset, yPixelOffset);
}
代码示例来源:origin: libgdx/libgdx
if (!Gdx.graphics.isContinuousRendering()) {
Gdx.graphics.requestRendering();
代码示例来源:origin: libgdx/libgdx
if (!Gdx.graphics.isContinuousRendering()) {
Gdx.graphics.requestRendering();
代码示例来源:origin: libgdx/libgdx
if (!Gdx.graphics.isContinuousRendering()) {
Gdx.graphics.requestRendering();
代码示例来源:origin: libgdx/libgdx
if (!Gdx.graphics.isContinuousRendering()) {
Gdx.graphics.requestRendering();
代码示例来源:origin: kotcrab/vis-ui
private void blink () {
if (!Gdx.graphics.isContinuousRendering()) {
cursorOn = true;
return;
}
long time = TimeUtils.nanoTime();
if ((time - lastBlink) / 1000000000.0f > blinkTime) {
cursorOn = !cursorOn;
lastBlink = time;
}
}
代码示例来源:origin: langurmonkey/gaiasky
private void blink() {
if (!Gdx.graphics.isContinuousRendering()) {
cursorOn = true;
return;
}
long time = TimeUtils.nanoTime();
if ((time - lastBlink) / 1000000000.0f > blinkTime) {
cursorOn = !cursorOn;
lastBlink = time;
}
}
内容来源于网络,如有侵权,请联系作者删除!