(->camera)
(->camera y-down?)
Returns a 2D camera. The 1-arg arity is deprecated and should not be used!
Source
(defn
->camera
"Returns a 2D camera. The 1-arg arity is deprecated and should not be used!"
([] (->Camera (m/identity-matrix 3)))
([y-down?]
(->Camera
(if
y-down?
(m/look-at-matrix [0 0 1] [0 -1 0])
(m/look-at-matrix [0 0 -1] [0 1 0])))))