jak-project/goal_src/engine/math/euler-h.gc
water111 e5f0fecf17
[Decompiler] bitfield support and clean up of DMA (#350)
* get to vif

* support basic bitfield access

* make bitfields in dma work

* clean up dma

* fix merge conflict
2021-04-11 16:07:01 -04:00

21 lines
560 B
Common Lisp

;;-*-Lisp-*-
(in-package goal)
;; name: euler-h.gc
;; name in dgo: euler-h
;; dgos: GAME, ENGINE
;; maybe euler angle storage orders?
(define EulSafe (new 'static 'boxed-array int32 4 0 1 2 0))
(define EulNext (new 'static 'boxed-array int32 4 1 2 0 1))
;; just uses the same xyzw and data array as vector.
;; the w stores a float that should be an integer that seems to have
;; bitfields for... something? Like maybe the order?
(deftype euler-angles (vector)
()
:method-count-assert 9
:size-assert #x10
:flag-assert #x900000010
)