Enum Constant and Description |
---|
Logical
mouse coordinates,
Graphics.getWidth() and
Graphics.getHeight() will return logical coordinates
according to the system defined HDPI scaling. |
Pixels
Mouse coordinates,
Graphics.getWidth() and
Graphics.getHeight() will return raw pixel coordinates
irrespective of the system defined HDPI scaling. |
Modifier and Type | Method and Description |
---|---|
static HdpiMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HdpiMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HdpiMode Logical
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(int, int, int, int)
or GL20.glViewport(int, int, int, int)
which
expect raw coordinates.public static final HdpiMode Pixels
Graphics.getWidth()
and
Graphics.getHeight()
will return raw pixel coordinates
irrespective of the system defined HDPI scaling.public static HdpiMode[] values()
for (HdpiMode c : HdpiMode.values()) System.out.println(c);
public static HdpiMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null