MCPcopy
hub / github.com/libgdx/libgdx / render

Method render

tests/gdx-tests/src/com/badlogic/gdx/tests/CursorTest.java:53–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51 }
52
53 public void render () {
54 // set the clear color and clear the screen.
55 ScreenUtils.clear(1, 1, 1, 1);
56
57 if (Gdx.input.isTouched()) {
58 Gdx.graphics.setCursor(cursor1);
59 } else {
60 cursorActive = !cursorActive;
61 if (cursorActive) {
62 Gdx.graphics.setCursor(cursor2);
63 } else {
64 Gdx.graphics.setCursor(cursor3);
65 }
66 }
67 }
68}

Callers

nothing calls this directly

Calls 3

clearMethod · 0.95
isTouchedMethod · 0.65
setCursorMethod · 0.65

Tested by

no test coverage detected