Enum HdpiMode
- java.lang.Object
-
- java.lang.Enum<HdpiMode>
-
- com.badlogic.gdx.graphics.glutils.HdpiMode
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Logical
mouse coordinates,Graphics.getWidth()
andGraphics.getHeight()
will return logical coordinates according to the system defined HDPI scaling.Pixels
Mouse coordinates,Graphics.getWidth()
andGraphics.getHeight()
will return raw pixel coordinates irrespective of the system defined HDPI scaling.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
Logical
public static final HdpiMode Logical
mouse coordinates,Graphics.getWidth()
andGraphics.getHeight()
will return logical coordinates according to the system defined HDPI scaling. Rendering will be performed to a backbuffer at raw resolution. UseHdpiUtils
when callingGL20.glScissor(int, int, int, int)
orGL20.glViewport(int, int, int, int)
which expect raw coordinates.
-
Pixels
public static final HdpiMode Pixels
Mouse coordinates,Graphics.getWidth()
andGraphics.getHeight()
will return raw pixel coordinates irrespective of the system defined HDPI scaling.
-
-
Method Detail
-
values
public static HdpiMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HdpiMode c : HdpiMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HdpiMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-