gdx.graphics.camera

calculate-zoom

(calculate-zoom camera & {:keys [left top right bottom]})

calculates the zoom value for camera to see all the 4 points.

frustum

(frustum camera)

position

(position camera)

Returns camera position as x y vector.

reset-zoom!

(reset-zoom! camera)

Sets the zoom value to 1.

set-position!

(set-position! camera [x y])

Sets x and y and calls update on the camera.

set-zoom!

(set-zoom! camera amount)

Sets the zoom value and updates.

visible-tiles

(visible-tiles camera)

zoom

(zoom camera)