mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 21:27:52 -04:00
7fac11ddf5
* wip 128 bit support * add a few more files to offline test
25 lines
667 B
Common Lisp
25 lines
667 B
Common Lisp
;;-*-Lisp-*-
|
|
(in-package goal)
|
|
|
|
;; name: quaternion-h.gc
|
|
;; name in dgo: quaternion-h
|
|
;; dgos: GAME, ENGINE
|
|
|
|
(deftype quaternion (structure)
|
|
((data float 4 :do-not-decompile :offset-assert 0)
|
|
(x float :offset 0)
|
|
(y float :offset 4)
|
|
(z float :offset 8)
|
|
(w float :offset 12)
|
|
(vec vector :inline :offset 0)
|
|
(quad uint128 :offset 0)
|
|
)
|
|
:method-count-assert 9
|
|
:size-assert #x10
|
|
:flag-assert #x900000010
|
|
)
|
|
|
|
(define *unity-quaternion* (new 'static 'quaternion :x 0.0 :y 0.0 :z 0.0 :w 1.0))
|
|
|
|
(define-extern matrix->quaternion (function quaternion matrix quaternion))
|