MCPcopy Create free account
hub / github.com/Card-Forge/forge / FrameRate

Method FrameRate

forge-gui-mobile/src/forge/FrameRate.java:27–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25 private OrthographicCamera cam;
26
27 public FrameRate() {
28 lastTimeCounted = TimeUtils.millis();
29 sinceChange = 0;
30 frameRate = Gdx.graphics.getFramesPerSecond();
31 font = new BitmapFont();
32 batch = new SpriteBatch();
33 cam = new OrthographicCamera(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
34 }
35
36 public void resize(int screenWidth, int screenHeight) {
37 cam = new OrthographicCamera(screenWidth, screenHeight);

Callers

nothing calls this directly

Calls 2

getWidthMethod · 0.65
getHeightMethod · 0.65

Tested by

no test coverage detected