com.badlogic.gdx.scenes.scene2d.Stage.act()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(170)

本文整理了Java中com.badlogic.gdx.scenes.scene2d.Stage.act()方法的一些代码示例,展示了Stage.act()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Stage.act()方法的具体详情如下:
包路径:com.badlogic.gdx.scenes.scene2d.Stage
类名称:Stage
方法名:act

Stage.act介绍

[英]Calls #act(float) with Graphics#getDeltaTime(), limited to a minimum of 30fps.
[中]调用#act(float)和图形#getDeltaTime(),最低速度限制为30fps。

代码示例

代码示例来源:origin: libgdx/libgdx

@Override
public void render () {
  Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT | GL20.GL_DEPTH_BUFFER_BIT);
  stage.act();
  stage.draw();
}

代码示例来源:origin: libgdx/libgdx

@Override
public void render () {
  Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
  stage.act(Math.min(Gdx.graphics.getDeltaTime(), 1 / 30f));
  stage.draw();
}

代码示例来源:origin: libgdx/libgdx

@Override
public void render () {
  Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
  stage.act(Math.min(Gdx.graphics.getDeltaTime(), 1 / 30f));
  stage.draw();
}

代码示例来源:origin: libgdx/libgdx

@Override
public void render () {
  Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
  stage.act(Math.min(Gdx.graphics.getDeltaTime(), 1 / 30f));
  stage.draw();
}

代码示例来源:origin: libgdx/libgdx

@Override
public void render () {
  Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
  ui.act(Gdx.graphics.getDeltaTime());
  ui.draw();
}

代码示例来源:origin: libgdx/libgdx

@Override
public void render () {
  Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
  stage.act(Gdx.graphics.getDeltaTime());
  stage.draw();
}

代码示例来源:origin: libgdx/libgdx

public void render () {
  Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
  stage.act(Gdx.graphics.getDeltaTime());
  stage.draw();
}

代码示例来源:origin: libgdx/libgdx

@Override
public void render () {
  Gdx.gl.glClearColor(0.2f, 0.2f, 0.2f, 1);
  Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
  stage.act(Math.min(Gdx.graphics.getDeltaTime(), 1 / 30f));
  stage.draw();
}

代码示例来源:origin: libgdx/libgdx

@Override
public void render () {
  Gdx.gl.glClearColor(0.2f, 0.2f, 0.2f, 1);
  Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
  ui.act(Math.min(Gdx.graphics.getDeltaTime(), 1 / 30f));
  ui.draw();
}

代码示例来源:origin: libgdx/libgdx

@Override
public void render () {
  Gdx.gl.glClearColor(0.2f, 0.2f, 0.2f, 1);
  Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
  stage.act(Math.min(Gdx.graphics.getDeltaTime(), 1 / 30f));
  stage.draw();
}

代码示例来源:origin: libgdx/libgdx

public void render () {
  // System.out.println(meow.getValue());
  Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
  stage.act(Gdx.graphics.getDeltaTime());
  stage.draw();
}

代码示例来源:origin: libgdx/libgdx

public void render () {
  // System.out.println(touchpad.getKnobPercentX() + " " + touchpad.getKnobPercentY());
  Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
  stage.act(Gdx.graphics.getDeltaTime());
  stage.draw();
}

代码示例来源:origin: libgdx/libgdx

public void render () {
  Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
  stage.act(Gdx.graphics.getDeltaTime());
  stage.draw();
}

代码示例来源:origin: libgdx/libgdx

public void render () {
  Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
  stage.act(Gdx.graphics.getDeltaTime());
  stage.draw();
}

代码示例来源:origin: libgdx/libgdx

@Override
public void render () {
  Gdx.gl.glClearColor(0.2f, 0.2f, 0.2f, 1);
  Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
  stage.act(Math.min(Gdx.graphics.getDeltaTime(), 1 / 30f));
  stage.draw();
}

代码示例来源:origin: libgdx/libgdx

public void render () {
  Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
  stage.act(Gdx.graphics.getDeltaTime());
  stage.draw();
}

代码示例来源:origin: libgdx/libgdx

public void render () {
  Gdx.gl.glClearColor(0, 0, 0, 1);
  Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
  stage.act(Gdx.graphics.getDeltaTime());
  stage.draw();
}

代码示例来源:origin: libgdx/libgdx

@Override
public void render () {
  Gdx.gl.glClearColor(0.2f, 0.2f, 0.2f, 1);
  Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
  fpsLabel.setText("fps: " + Gdx.graphics.getFramesPerSecond());
  stage.act(Math.min(Gdx.graphics.getDeltaTime(), 1 / 30f));
  stage.draw();
}

代码示例来源:origin: libgdx/libgdx

public void render () {
  // System.out.println(meow.getValue());
  Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
  stage.act(Gdx.graphics.getDeltaTime());
  stage.draw();
  stage.getBatch().begin();
  patch.draw(stage.getBatch(), 300, 100, 126, 126);
  stage.getBatch().end();
}

代码示例来源:origin: libgdx/libgdx

@Override
public void render () {
  if (textArea.getHeight() != textArea.getPrefHeight()) {
    scrollPane.invalidate();
    scrollPane.scrollTo(0, textArea.getHeight() - textArea.getCursorY(), 0, textArea.getStyle().font.getLineHeight());
  }
 Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
 stage.act(Gdx.graphics.getDeltaTime());
 stage.draw();
}

相关文章