Added the ability to get the up vector of a camera. I didn't add the set ability yet.

This commit is contained in:
Kamn
2015-02-16 18:05:38 -07:00
parent 486cdae382
commit 4806f6d6c4

View File

@@ -186,6 +186,11 @@ camera will be set."
(.lookAt camera x y z)
(.update camera)))
(defn up [screen]
"Returns the up vector of the camera in `screen`."
(let [^Camera camera (u/get-obj screen :camera)]
(. camera up)))
(defn near
"Returns the near clipping plane distance of the camera in `screen`."
[screen]