mirror of
https://github.com/open-goal/jak-project
synced 2026-05-23 23:05:43 -04:00
270 lines
7.9 KiB
Common Lisp
Vendored
Generated
270 lines
7.9 KiB
Common Lisp
Vendored
Generated
;;-*-Lisp-*-
|
|
(in-package goal)
|
|
|
|
;; definition of type pos-history
|
|
(deftype pos-history (structure)
|
|
((points (inline-array vector))
|
|
(num-points int32)
|
|
(h-first int32)
|
|
(h-last int32)
|
|
)
|
|
)
|
|
|
|
;; definition for method 3 of type pos-history
|
|
(defmethod inspect ((this pos-history))
|
|
(when (not this)
|
|
(set! this this)
|
|
(goto cfg-4)
|
|
)
|
|
(format #t "[~8x] ~A~%" this 'pos-history)
|
|
(format #t "~1Tpoints: #x~X~%" (-> this points))
|
|
(format #t "~1Tnum-points: ~D~%" (-> this num-points))
|
|
(format #t "~1Th-first: ~D~%" (-> this h-first))
|
|
(format #t "~1Th-last: ~D~%" (-> this h-last))
|
|
(label cfg-4)
|
|
this
|
|
)
|
|
|
|
;; definition of type debug-vertex
|
|
(deftype debug-vertex (structure)
|
|
((trans vector4w :inline)
|
|
(normal vector3h :inline)
|
|
(st vector2h :inline)
|
|
(color uint32)
|
|
)
|
|
)
|
|
|
|
;; definition for method 3 of type debug-vertex
|
|
(defmethod inspect ((this debug-vertex))
|
|
(when (not this)
|
|
(set! this this)
|
|
(goto cfg-4)
|
|
)
|
|
(format #t "[~8x] ~A~%" this 'debug-vertex)
|
|
(format #t "~1Ttrans: ~`vector4w`P~%" (-> this trans))
|
|
(format #t "~1Tnormal: ~`vector3h`P~%" (-> this normal))
|
|
(format #t "~1Tst: ~`vector2h`P~%" (-> this st))
|
|
(format #t "~1Tcolor: #x~X~%" (-> this color))
|
|
(label cfg-4)
|
|
this
|
|
)
|
|
|
|
;; definition of type debug-vertex-stats
|
|
(deftype debug-vertex-stats (basic)
|
|
((length int32)
|
|
(pos-count int32)
|
|
(vertex debug-vertex 600 :inline)
|
|
)
|
|
)
|
|
|
|
;; definition for method 3 of type debug-vertex-stats
|
|
(defmethod inspect ((this debug-vertex-stats))
|
|
(when (not this)
|
|
(set! this this)
|
|
(goto cfg-4)
|
|
)
|
|
(format #t "[~8x] ~A~%" this (-> this type))
|
|
(format #t "~1Tlength: ~D~%" (-> this length))
|
|
(format #t "~1Tpos-count: ~D~%" (-> this pos-count))
|
|
(format #t "~1Tvertex[600] @ #x~X~%" (-> this vertex))
|
|
(label cfg-4)
|
|
this
|
|
)
|
|
|
|
;; definition for symbol *color-black*, type rgba
|
|
(define *color-black* (new 'static 'rgba :a #x80))
|
|
|
|
;; definition for symbol *color-white*, type rgba
|
|
(define *color-white* (new 'static 'rgba :r #xff :g #xff :b #xff :a #x80))
|
|
|
|
;; definition for symbol *color-gray*, type rgba
|
|
(define *color-gray* (new 'static 'rgba :r #x80 :g #x80 :b #x80 :a #x80))
|
|
|
|
;; definition for symbol *color-red*, type rgba
|
|
(define *color-red* (new 'static 'rgba :r #xff :a #x80))
|
|
|
|
;; definition for symbol *color-green*, type rgba
|
|
(define *color-green* (new 'static 'rgba :g #xff :a #x80))
|
|
|
|
;; definition for symbol *color-blue*, type rgba
|
|
(define *color-blue* (new 'static 'rgba :b #xff :a #x80))
|
|
|
|
;; definition for symbol *color-cyan*, type rgba
|
|
(define *color-cyan* (new 'static 'rgba :g #xff :b #xff :a #x80))
|
|
|
|
;; definition for symbol *color-magenta*, type rgba
|
|
(define *color-magenta* (new 'static 'rgba :r #xff :b #xff :a #x80))
|
|
|
|
;; definition for symbol *color-yellow*, type rgba
|
|
(define *color-yellow* (new 'static 'rgba :r #xff :g #xff :a #x80))
|
|
|
|
;; definition for symbol *color-purple*, type rgba
|
|
(define *color-purple* (new 'static 'rgba :r #x40 :b #x80 :a #x80))
|
|
|
|
;; definition for symbol *color-light-gray*, type rgba
|
|
(define *color-light-gray* (new 'static 'rgba :r #xb0 :g #xb0 :b #xb0 :a #xb0))
|
|
|
|
;; definition for symbol *color-light-red*, type rgba
|
|
(define *color-light-red* (new 'static 'rgba :r #xff :g #x80 :b #x80 :a #x80))
|
|
|
|
;; definition for symbol *color-light-green*, type rgba
|
|
(define *color-light-green* (new 'static 'rgba :r #x80 :g #xff :b #x80 :a #x80))
|
|
|
|
;; definition for symbol *color-light-blue*, type rgba
|
|
(define *color-light-blue* (new 'static 'rgba :r #x80 :g #x80 :b #xff :a #x80))
|
|
|
|
;; definition for symbol *color-light-cyan*, type rgba
|
|
(define *color-light-cyan* (new 'static 'rgba :r #x80 :g #xff :b #xff :a #x80))
|
|
|
|
;; definition for symbol *color-light-magenta*, type rgba
|
|
(define *color-light-magenta* (new 'static 'rgba :r #xff :g #x80 :b #xff :a #x80))
|
|
|
|
;; definition for symbol *color-light-yellow*, type rgba
|
|
(define *color-light-yellow* (new 'static 'rgba :r #xff :g #xff :b #x80 :a #x80))
|
|
|
|
;; definition for symbol *color-dark-red*, type rgba
|
|
(define *color-dark-red* (new 'static 'rgba :r #x80 :a #x80))
|
|
|
|
;; definition for symbol *color-dark-green*, type rgba
|
|
(define *color-dark-green* (new 'static 'rgba :g #x80 :a #x80))
|
|
|
|
;; definition for symbol *color-dark-blue*, type rgba
|
|
(define *color-dark-blue* (new 'static 'rgba :b #x80 :a #x80))
|
|
|
|
;; definition for symbol *color-dark-cyan*, type rgba
|
|
(define *color-dark-cyan* (new 'static 'rgba :g #x80 :b #x80 :a #x80))
|
|
|
|
;; definition for symbol *color-dark-magenta*, type rgba
|
|
(define *color-dark-magenta* (new 'static 'rgba :r #x80 :b #x80 :a #x80))
|
|
|
|
;; definition for symbol *color-dark-yellow*, type rgba
|
|
(define *color-dark-yellow* (new 'static 'rgba :r #x80 :g #x80 :a #x80))
|
|
|
|
;; definition for symbol *color-orange*, type rgba
|
|
(define *color-orange* (new 'static 'rgba :r #xff :g #x80 :a #x80))
|
|
|
|
;; definition (debug) for function draw-debug-text-3d
|
|
;; WARN: Return type mismatch int vs none.
|
|
(defun-debug draw-debug-text-3d ((arg0 string) (arg1 vector) (arg2 bucket-id) (arg3 font-color) (arg4 vector2h) (arg5 rgba))
|
|
(add-debug-text-3d #t arg2 arg0 arg1 arg3 arg4)
|
|
0
|
|
(none)
|
|
)
|
|
|
|
;; definition (debug) for function draw-debug-x
|
|
;; WARN: Return type mismatch int vs none.
|
|
(defun-debug draw-debug-x ((arg0 vector) (arg1 bucket-id) (arg2 rgba))
|
|
(add-debug-x #t arg1 arg0 arg2)
|
|
0
|
|
(none)
|
|
)
|
|
|
|
;; definition (debug) for function draw-debug-line
|
|
;; WARN: Return type mismatch int vs none.
|
|
(defun-debug draw-debug-line ((arg0 vector) (arg1 vector) (arg2 bucket-id) (arg3 rgba) (arg4 symbol) (arg5 rgba))
|
|
(add-debug-line #t arg2 arg0 arg1 arg3 arg4 arg5)
|
|
0
|
|
(none)
|
|
)
|
|
|
|
;; definition (debug) for function draw-debug-vector
|
|
;; WARN: Return type mismatch int vs none.
|
|
(defun-debug draw-debug-vector ((arg0 vector) (arg1 vector) (arg2 bucket-id) (arg3 rgba) (arg4 meters))
|
|
(add-debug-vector #t arg2 arg0 arg1 arg4 arg3)
|
|
0
|
|
(none)
|
|
)
|
|
|
|
;; definition (debug) for function draw-debug-flat-triangle
|
|
;; WARN: Return type mismatch int vs none.
|
|
(defun-debug draw-debug-flat-triangle ((arg0 vector) (arg1 vector) (arg2 vector) (arg3 bucket-id) (arg4 rgba))
|
|
(add-debug-flat-triangle #t arg3 arg0 arg1 arg2 arg4)
|
|
0
|
|
(none)
|
|
)
|
|
|
|
;; definition (debug) for function draw-debug-sphere
|
|
;; WARN: Return type mismatch int vs none.
|
|
(defun-debug draw-debug-sphere ((arg0 vector) (arg1 bucket-id) (arg2 float) (arg3 rgba))
|
|
(add-debug-sphere
|
|
#t
|
|
arg1
|
|
arg0
|
|
(if (< 0.0 arg2)
|
|
arg2
|
|
(-> arg0 w)
|
|
)
|
|
arg3
|
|
)
|
|
0
|
|
(none)
|
|
)
|
|
|
|
;; definition (debug) for function draw-debug-matrix
|
|
;; WARN: Return type mismatch int vs none.
|
|
(defun-debug draw-debug-matrix ((arg0 matrix) (arg1 bucket-id) (arg2 float))
|
|
(add-debug-matrix #t arg1 arg0 arg2)
|
|
0
|
|
(none)
|
|
)
|
|
|
|
;; definition (debug) for function draw-debug-box-with-transform
|
|
;; WARN: Return type mismatch int vs none.
|
|
(defun-debug draw-debug-box-with-transform ((arg0 bounding-box) (arg1 matrix) (arg2 bucket-id) (arg3 rgba))
|
|
(add-debug-box-with-transform #t arg2 arg0 arg1 arg3)
|
|
0
|
|
(none)
|
|
)
|
|
|
|
;; definition (debug) for function draw-debug-line-sphere
|
|
;; WARN: Return type mismatch int vs none.
|
|
(defun-debug draw-debug-line-sphere ((arg0 vector) (arg1 vector) (arg2 bucket-id) (arg3 float) (arg4 rgba))
|
|
(add-debug-line-sphere
|
|
#t
|
|
arg2
|
|
arg0
|
|
arg1
|
|
(if (< 0.0 arg3)
|
|
arg3
|
|
(-> arg0 w)
|
|
)
|
|
arg4
|
|
)
|
|
0
|
|
(none)
|
|
)
|
|
|
|
;; definition of type stack-debug
|
|
(deftype stack-debug (structure)
|
|
((r29 uint128)
|
|
(r31 uint128)
|
|
(test-count int32)
|
|
(visit int32)
|
|
(obj basic)
|
|
)
|
|
)
|
|
|
|
;; definition for method 3 of type stack-debug
|
|
;; INFO: Used lq/sq
|
|
(defmethod inspect ((this stack-debug))
|
|
(when (not this)
|
|
(set! this this)
|
|
(goto cfg-4)
|
|
)
|
|
(format #t "[~8x] ~A~%" this 'stack-debug)
|
|
(format #t "~1Tr29: ~D~%" (-> this r29))
|
|
(format #t "~1Tr31: ~D~%" (-> this r31))
|
|
(format #t "~1Ttest-count: ~D~%" (-> this test-count))
|
|
(format #t "~1Tvisit: ~D~%" (-> this visit))
|
|
(format #t "~1Tobj: ~A~%" (-> this obj))
|
|
(label cfg-4)
|
|
this
|
|
)
|
|
|
|
;; failed to figure out what this is:
|
|
0
|
|
|
|
|
|
|
|
|