public static enum GameCamera.ZoomMode extends Enum<GameCamera.ZoomMode>
| Enum Constant and Description |
|---|
TO_HEIGHT
Calculates the required zoom based on the virtual height provided.
|
TO_VALUE
Uses the literal value provided as a zoom factor.
|
TO_WIDTH
Calculates the required zoom based on the virtual width provided.
|
| Modifier and Type | Method and Description |
|---|---|
static GameCamera.ZoomMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GameCamera.ZoomMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GameCamera.ZoomMode TO_VALUE
public static final GameCamera.ZoomMode TO_WIDTH
public static final GameCamera.ZoomMode TO_HEIGHT
public static GameCamera.ZoomMode[] values()
for (GameCamera.ZoomMode c : GameCamera.ZoomMode.values()) System.out.println(c);
public static GameCamera.ZoomMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2020. All rights reserved.