本文整理了Java中com.badlogic.gdx.Graphics.requestRendering()
方法的一些代码示例,展示了Graphics.requestRendering()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Graphics.requestRendering()
方法的具体详情如下:
包路径:com.badlogic.gdx.Graphics
类名称:Graphics
方法名:requestRendering
[英]Requests a new frame to be rendered if the rendering mode is non-continuous. This method can be called from any thread.
[中]如果渲染模式为非连续,则请求渲染新帧。此方法可以从任何线程调用。
代码示例来源:origin: libgdx/libgdx
public void run () {
cursorOn = !cursorOn;
Gdx.graphics.requestRendering();
}
};
代码示例来源:origin: libgdx/libgdx
@Override
public void postRunnable (Runnable runnable) {
synchronized (runnables) {
runnables.add(runnable);
Gdx.graphics.requestRendering();
}
}
代码示例来源:origin: libgdx/libgdx
@Override
public void postRunnable (Runnable runnable) {
synchronized (runnables) {
runnables.add(runnable);
Gdx.graphics.requestRendering();
}
}
代码示例来源:origin: libgdx/libgdx
@Override
public void postRunnable (Runnable runnable) {
synchronized (runnables) {
runnables.add(runnable);
Gdx.graphics.requestRendering();
}
}
代码示例来源:origin: libgdx/libgdx
@Override
public boolean shouldEndEditing (UITextField textField) {
// Text field needs to have at least one symbol - so we can use backspace
textField.setText("x");
Gdx.graphics.requestRendering();
return true;
}
代码示例来源:origin: libgdx/libgdx
@Override
public void postRunnable (Runnable runnable) {
synchronized (runnables) {
runnables.add(runnable);
Gdx.graphics.requestRendering();
}
}
代码示例来源:origin: libgdx/libgdx
@Override
public void postRunnable (Runnable runnable) {
synchronized (runnables) {
runnables.add(runnable);
Gdx.graphics.requestRendering();
}
}
代码示例来源:origin: libgdx/libgdx
@Override
public void postRunnable (Runnable runnable) {
synchronized (runnables) {
runnables.add(runnable);
Gdx.graphics.requestRendering();
}
}
代码示例来源:origin: libgdx/libgdx
@Override
public boolean textFieldShouldEndEditing (UITextField textField) {
// Text field needs to have at least one symbol - so we can use backspace
textField.setText("x");
Gdx.graphics.requestRendering();
return true;
}
代码示例来源:origin: libgdx/libgdx
@Override
public void postRunnable (Runnable runnable) {
synchronized (runnables) {
runnables.add(runnable);
Gdx.graphics.requestRendering();
}
}
代码示例来源:origin: libgdx/libgdx
@Override
public void postRunnable (Runnable runnable) {
synchronized (runnables) {
runnables.add(runnable);
Gdx.graphics.requestRendering();
}
}
代码示例来源:origin: libgdx/libgdx
@Override
public boolean shouldEndEditing (UITextField textField) {
// Text field needs to have at least one symbol - so we can use backspace
textField.setText("x");
Gdx.graphics.requestRendering();
return true;
}
代码示例来源:origin: libgdx/libgdx
@Override
public void postRunnable (Runnable runnable) {
synchronized (runnables) {
runnables.add(runnable);
Gdx.graphics.requestRendering();
}
}
代码示例来源:origin: libgdx/libgdx
@Override
public boolean textFieldShouldEndEditing (UITextField textField) {
// Text field needs to have at least one symbol - so we can use backspace
textField.setText("x");
Gdx.graphics.requestRendering();
return true;
}
代码示例来源:origin: libgdx/libgdx
@Override
public void deleteBackward () {
app.input.inputProcessor.keyTyped((char)8);
super.deleteBackward();
Gdx.graphics.requestRendering();
}
}
代码示例来源:origin: libgdx/libgdx
@Override
public void deleteBackward () {
app.input.inputProcessor.keyTyped((char)8);
super.deleteBackward();
Gdx.graphics.requestRendering();
}
}
代码示例来源:origin: libgdx/libgdx
public void addAction (Action action) {
action.setActor(this);
actions.add(action);
if (stage != null && stage.getActionsRequestRendering()) Gdx.graphics.requestRendering();
}
代码示例来源:origin: libgdx/libgdx
@Override
public void act (float delta) {
super.act(delta);
if (animateTime > 0) {
animateTime -= delta;
Stage stage = getStage();
if (stage != null && stage.getActionsRequestRendering()) Gdx.graphics.requestRendering();
}
}
代码示例来源:origin: libgdx/libgdx
@Override
public boolean textFieldShouldReturn (UITextField textField) {
if (keyboardCloseOnReturn) setOnscreenKeyboardVisible(false);
app.input.inputProcessor.keyDown(Keys.ENTER);
app.input.inputProcessor.keyTyped((char)13);
Gdx.graphics.requestRendering();
return false;
}
};
代码示例来源:origin: libgdx/libgdx
@Override
public boolean shouldReturn (UITextField textField) {
if (keyboardCloseOnReturn) setOnscreenKeyboardVisible(false);
app.input.inputProcessor.keyDown(Keys.ENTER);
app.input.inputProcessor.keyTyped((char)13);
Gdx.graphics.requestRendering();
return false;
}
};
内容来源于网络,如有侵权,请联系作者删除!