clojure.graphics.camera
Camera
protocol
members
combined
(combined _)
The combined projection and view matrix.
frustum
(frustum _)
Returns [left-x right-x bottom-y top-y]
.
inc-zoom!
(inc-zoom! _ amount)
Applies the amount to the current zoom, not lower than 0.1
.
reset-zoom!
(reset-zoom! _)
Sets the zoom value to 1.
set-position!
(set-position! _ [x y])
set-zoom!
(set-zoom! _ value)
Initial zoom is 1
.
viewport-height
(viewport-height _)
viewport-width
(viewport-width _)
zoom
(zoom _)