public class Camera extends Gizmo
Modifier and Type | Field and Description |
---|---|
int |
height |
static Camera |
main |
float[] |
matrix |
PointF |
scroll |
Visual |
target |
int |
width |
int |
x |
int |
y |
float |
zoom |
Constructor and Description |
---|
Camera(int x,
int y,
int width,
int height,
float zoom) |
Modifier and Type | Method and Description |
---|---|
static Camera |
add(Camera camera) |
Point |
cameraToScreen(float x,
float y) |
PointF |
center() |
static Camera |
createFullscreen(float zoom) |
void |
destroy() |
void |
focusOn(float x,
float y) |
void |
focusOn(PointF point) |
void |
focusOn(Visual visual) |
boolean |
hitTest(float x,
float y) |
static Camera |
remove(Camera camera) |
static Camera |
reset() |
static Camera |
reset(Camera newCamera) |
void |
resize(int width,
int height) |
float |
screenHeight() |
PointF |
screenToCamera(int x,
int y) |
float |
screenWidth() |
void |
shake(float magnitude,
float duration) |
void |
update() |
static void |
updateAll() |
void |
updateFullscreenCameraZoom(float zoom) |
void |
zoom(float value) |
void |
zoom(float value,
float fx,
float fy) |
camera, draw, getParent, getVisible, hasParent, isActive, isVisible, kill, killAndErase, remove, revive, setNullParent, setParent, setVisible
public static Camera main
public float zoom
public int x
public int y
public int width
public int height
public float[] matrix
public PointF scroll
public Visual target
public static Camera reset()
public static void updateAll()
public static Camera createFullscreen(float zoom)
public void updateFullscreenCameraZoom(float zoom)
public void zoom(float value)
public void zoom(float value, float fx, float fy)
public void resize(int width, int height)
public PointF center()
public boolean hitTest(float x, float y)
public void focusOn(float x, float y)
public void focusOn(PointF point)
public void focusOn(Visual visual)
public PointF screenToCamera(int x, int y)
public Point cameraToScreen(float x, float y)
public float screenWidth()
public float screenHeight()
public void shake(float magnitude, float duration)