mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 21:27:52 -04:00
d264779173
* d/jak2: finish `glist` and `glist-h` partially done `time-of-day` * d/jak2: finish `camera` and `cam-interface` * d/jak2: partially finish `cam-master` `cam-states`, and `cam-update` finish `cam-states-dbg` `cam-combiner` `cam-debug` and `cam-start` * tests: update ref tests * scripts: add scripts to automatically update gsrc files * d/jak2: update gsrc
73 lines
3 KiB
Common Lisp
73 lines
3 KiB
Common Lisp
;;-*-Lisp-*-
|
|
(in-package goal)
|
|
|
|
;; name: debug-h.gc
|
|
;; name in dgo: debug-h
|
|
;; dgos: ENGINE, GAME
|
|
|
|
;; NOTE - for cam-states
|
|
(define-extern add-debug-flat-triangle (function symbol bucket-id vector vector vector rgba symbol))
|
|
;; NOTE - for cam-debug
|
|
(define-extern transform-float-point (function vector vector4w vector4w))
|
|
(define-extern add-debug-line (function symbol bucket-id vector vector rgba symbol rgba symbol))
|
|
|
|
;; DECOMP BEGINS
|
|
|
|
(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 *color-black* (new 'static 'rgba :a #x80))
|
|
(define *color-white* (new 'static 'rgba :r #xff :g #xff :b #xff :a #x80))
|
|
(define *color-gray* (new 'static 'rgba :r #x80 :g #x80 :b #x80 :a #x80))
|
|
(define *color-red* (new 'static 'rgba :r #xff :a #x80))
|
|
(define *color-green* (new 'static 'rgba :g #xff :a #x80))
|
|
(define *color-blue* (new 'static 'rgba :b #xff :a #x80))
|
|
(define *color-cyan* (new 'static 'rgba :g #xff :b #xff :a #x80))
|
|
(define *color-magenta* (new 'static 'rgba :r #xff :b #xff :a #x80))
|
|
(define *color-yellow* (new 'static 'rgba :r #xff :g #xff :a #x80))
|
|
(define *color-light-red* (new 'static 'rgba :r #xff :g #x80 :b #x80 :a #x80))
|
|
(define *color-light-green* (new 'static 'rgba :r #x80 :g #xff :b #x80 :a #x80))
|
|
(define *color-light-blue* (new 'static 'rgba :r #x80 :g #x80 :b #xff :a #x80))
|
|
(define *color-light-cyan* (new 'static 'rgba :r #x80 :g #xff :b #xff :a #x80))
|
|
(define *color-light-magenta* (new 'static 'rgba :r #xff :g #x80 :b #xff :a #x80))
|
|
(define *color-light-yellow* (new 'static 'rgba :r #xff :g #xff :b #x80 :a #x80))
|
|
(define *color-dark-red* (new 'static 'rgba :r #x80 :a #x80))
|
|
(define *color-dark-green* (new 'static 'rgba :g #x80 :a #x80))
|
|
(define *color-dark-blue* (new 'static 'rgba :b #x80 :a #x80))
|
|
(define *color-dark-cyan* (new 'static 'rgba :g #x80 :b #x80 :a #x80))
|
|
(define *color-dark-magenta* (new 'static 'rgba :r #x80 :b #x80 :a #x80))
|
|
(define *color-dark-yellow* (new 'static 'rgba :r #x80 :g #x80 :a #x80))
|
|
(define *color-orange* (new 'static 'rgba :r #xff :g #x80 :a #x80))
|
|
|
|
(define-extern add-debug-matrix (function symbol bucket-id matrix float matrix))
|