gdl.graphics.camera

Convinience functions operating on com.badlogic.gdx.graphics.OrthographicCamera.

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)

reset-zoom!

(reset-zoom! camera)

set-position!

(set-position! camera [x y])

set-zoom!

(set-zoom! camera amount)

visible-tiles

(visible-tiles camera)

zoom

(zoom camera)