jak-project/goal_src/jak2/engine/math/euler-h.gc
water111 f7bd0752f8
[decomp] Decompile first batch of files in engine (#1787)
* wip

* getting stuff set up so we can actually run test cases

* better handle block entry stuff

* types2 working on gstring

* comments

* math ref working

* up to first stack stuff

* stack fixes

* bounding box

* math stuff is working

* float fixes

* temp debug for (method 9 profile-array)

* stupid stupid bug

* debugging

* everything is broken

* some amount of type stuff works

* bitfield

* texture bitfields not working

* temp

* types

* more stuff

* type check

* temp

* float related fixes for light and res problems

* revisit broken files, fix bugs

* more types

* vector debug

* bug fixes for decompiler crashes in harder functions

* update goal_src
2022-08-24 00:29:51 -04:00

25 lines
668 B
Common Lisp

;;-*-Lisp-*-
(in-package goal)
;; name: euler-h.gc
;; name in dgo: euler-h
;; dgos: ENGINE, GAME
;; DECOMP BEGINS
;; maybe euler angle storage orders?
;; what is this naming convention?
(define EulSafe (new 'static 'boxed-array :type int32 0 1 2 0))
(define EulNext (new 'static 'boxed-array :type int32 1 2 0 1))
;; just uses the same xyzw and data array as vector.
;; the w stores an integer that seems to have
;; bitfields for... something? Like maybe the order?
;; Euler angles are mostly unused, and the code is a bit of disaster.
(deftype euler-angles (vector)
()
:method-count-assert 9
:size-assert #x10
:flag-assert #x900000010
)