APIdia Launch Partner
Top Fields Constructors Methods
com.badlogic.gdx.graphics.glutils

public final Enum HdpiMode

extends Enum<HdpiMode>
Class Inheritance
Imports
com.badlogic.gdx.Graphics, com.badlogic.gdx.graphics.GL20

Field Summary

Modifier and TypeField and Description
public static final HdpiMode
Logical

mouse coordinates, Graphics#getWidth() and Graphics#getHeight() will return logical coordinates according to the system defined HDPI scaling.

public static final HdpiMode
Pixels

Mouse coordinates, Graphics#getWidth() and Graphics#getHeight() will return raw pixel coordinates irrespective of the system defined HDPI scaling.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static HdpiMode
public static HdpiMode[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

Logicalback to summary
public static final HdpiMode Logical

mouse coordinates, Graphics#getWidth() and Graphics#getHeight() will return logical coordinates according to the system defined HDPI scaling. Rendering will be performed to a backbuffer at raw resolution. Use HdpiUtils when calling GL20#glScissor or GL20#glViewport which expect raw coordinates.

Pixelsback to summary
public static final HdpiMode Pixels

Mouse coordinates, Graphics#getWidth() and Graphics#getHeight() will return raw pixel coordinates irrespective of the system defined HDPI scaling.

Constructor Detail

HdpiModeback to summary
private HdpiMode()

Method Detail

valueOfback to summary
public static HdpiMode valueOf(String name)
valuesback to summary
public static HdpiMode[] values()