APIdia Launch Partner
Top Constructors Methods
com.badlogic.gdx

public abstract Class AbstractGraphics

extends Object
implements Graphics
Class Inheritance
All Implemented Interfaces
com.badlogic.gdx.Graphics

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public float
public float
getDensity()

Implements com.badlogic.gdx.Graphics.getDensity.

This is a scaling factor for the Density Independent Pixel unit, following the same conventions as android.util.DisplayMetrics#density, where one DIP is one pixel on an approximately 160 dpi screen.

public float
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AbstractGraphicsback to summary
public AbstractGraphics()

Method Detail

getBackBufferScaleback to summary
public float getBackBufferScale()

Implements com.badlogic.gdx.Graphics.getBackBufferScale.

Annotations
@Override
getDensityback to summary
public float getDensity()

Implements com.badlogic.gdx.Graphics.getDensity.

Doc from com.badlogic.gdx.Graphics.getDensity.

This is a scaling factor for the Density Independent Pixel unit, following the same conventions as android.util.DisplayMetrics#density, where one DIP is one pixel on an approximately 160 dpi screen. Thus on a 160dpi screen this density value will be 1; on a 120 dpi screen it would be .75; etc. If the density could not be determined, this returns a default value of 1. Depending on the underlying platform implementation this might be a relatively expensive operation. Therefore it should not be called continously on each frame.

Annotations
@Override
getRawDeltaTimeback to summary
public float getRawDeltaTime()

Implements com.badlogic.gdx.Graphics.getRawDeltaTime.

Annotations
@Override