mirror of
https://github.com/open-goal/jak-project
synced 2026-05-25 15:25:31 -04:00
1ffd42e090
* temp * make level-update-after-load work * add missing const
33 lines
833 B
Common Lisp
33 lines
833 B
Common Lisp
;;-*-Lisp-*-
|
|
(in-package goal)
|
|
|
|
;; name: transform-h.gc
|
|
;; name in dgo: transform-h
|
|
;; dgos: GAME, ENGINE
|
|
|
|
;; Transformation. w components of vectors should be 1.0
|
|
(deftype transform (structure)
|
|
((trans vector :inline :offset-assert 0) ;; translation
|
|
(rot vector :inline :offset-assert 16) ;; rotation (rotation vector)
|
|
(scale vector :inline :offset-assert 32) ;; scale (xyz components)
|
|
)
|
|
:method-count-assert 9
|
|
:size-assert #x30
|
|
:flag-assert #x900000030
|
|
)
|
|
|
|
|
|
;; Like transform, but it's a basic.
|
|
(deftype trs (basic)
|
|
((trans vector :inline :offset-assert 16)
|
|
(rot vector :inline :offset-assert 32)
|
|
(scale vector :inline :offset-assert 48)
|
|
)
|
|
(:methods
|
|
(new (symbol type) _type_ 0)
|
|
)
|
|
:method-count-assert 9
|
|
:size-assert #x40
|
|
:flag-assert #x900000040
|
|
)
|