mirror of
https://github.com/open-goal/jak-project
synced 2026-05-24 15:21:12 -04:00
2cb00f4a02
* blocked: `puffer` has state decomp issues * blocked: decomp crash when adding process-drawble cast in `helix-water` * blocked: `green-eco-lurker` no nice way to cast value out of EMB * decomp: started on `citadel-sages` * decomp: `seagull` blocked state decomp * blocked: `sunken-pipegame` runs into handle related issues * blocked: `snow-ram` and `snow-ram-boss` state decomp * decomp: `rolling-race-ring` blocked, handle casts * blocked: state decomp in `part-tester` * decomp: started `joint-exploder` * blocked: `anim-tester` has rare cmove-#f-zero usage * decomp: I lied! `anim-tester` finished * config: update banned list
50 lines
1.5 KiB
Common Lisp
50 lines
1.5 KiB
Common Lisp
;;-*-Lisp-*-
|
|
(in-package goal)
|
|
|
|
;; name: debug-h.gc
|
|
;; name in dgo: debug-h
|
|
;; dgos: GAME, ENGINE
|
|
|
|
;; TODO - for anim-tester
|
|
(define-extern *debug-menu-context* debug-menu-context)
|
|
|
|
(deftype pos-history (structure)
|
|
((points (inline-array vector) :offset-assert 0)
|
|
(num-points int32 :offset-assert 4)
|
|
(h-first int32 :offset-assert 8)
|
|
(h-last int32 :offset-assert 12)
|
|
)
|
|
:method-count-assert 9
|
|
:size-assert #x10
|
|
:flag-assert #x900000010
|
|
)
|
|
|
|
(deftype debug-vertex (structure)
|
|
((trans vector4w :inline :offset-assert 0)
|
|
(normal vector3h :inline :offset-assert 16)
|
|
(st vector2h :inline :offset-assert 22)
|
|
(color uint32 :offset-assert 28)
|
|
)
|
|
:method-count-assert 9
|
|
:size-assert #x20
|
|
:flag-assert #x900000020
|
|
)
|
|
|
|
(deftype debug-vertex-stats (basic)
|
|
((length int32 :offset-assert 4)
|
|
(pos-count int32 :offset-assert 8)
|
|
(vertex debug-vertex 600 :inline :offset-assert 16)
|
|
)
|
|
:method-count-assert 9
|
|
:size-assert #x4b10
|
|
:flag-assert #x900004b10
|
|
)
|
|
|
|
|
|
(define-extern add-debug-matrix (function symbol bucket-id matrix matrix))
|
|
(define-extern add-debug-text-sphere (function symbol bucket-id vector float string rgba symbol))
|
|
;; TODO - for trajectory.gc
|
|
(define-extern add-debug-line (function symbol bucket-id vector vector rgba symbol rgba symbol))
|
|
|
|
(defun-extern add-debug-sphere symbol bucket-id vector float rgba symbol)
|