MCPcopy
hub / github.com/libgdx/libgdx / AbstractGraphics

Class AbstractGraphics

gdx/src/com/badlogic/gdx/AbstractGraphics.java:4–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2package com.badlogic.gdx;
3
4public abstract class AbstractGraphics implements Graphics {
5
6 @Override
7 public float getRawDeltaTime () {
8 return getDeltaTime();
9 }
10
11 @Override
12 public float getDensity () {
13 float ppiX = getPpiX();
14 return (ppiX > 0 && ppiX <= Float.MAX_VALUE) ? ppiX / 160f : 1f;
15 }
16
17 @Override
18 public float getBackBufferScale () {
19 return getBackBufferWidth() / (float)getWidth();
20 }
21}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected