mirror of
https://github.com/open-goal/jak-project
synced 2026-05-23 23:05:43 -04:00
65 lines
2.1 KiB
Common Lisp
Vendored
Generated
65 lines
2.1 KiB
Common Lisp
Vendored
Generated
;;-*-Lisp-*-
|
|
(in-package goal)
|
|
|
|
;; definition for method 16 of type draw-node
|
|
;; WARN: Return type mismatch int vs none.
|
|
(defmethod collect-regions ((this draw-node) (arg0 sphere) (arg1 int) (arg2 region-prim-list))
|
|
"Fill the region-prim-list with regions that intersect the sphere."
|
|
(dotimes (s2-0 arg1)
|
|
(if (spheres-overlap? arg0 (the-as sphere (-> this bsphere)))
|
|
(collect-regions (-> this child) arg0 (the-as int (-> this child-count)) arg2)
|
|
)
|
|
(&+! this 32)
|
|
)
|
|
0
|
|
(none)
|
|
)
|
|
|
|
;; definition for method 3 of type drawable-inline-array-node
|
|
(defmethod inspect ((this drawable-inline-array-node))
|
|
(format #t "[~8x] ~A~%" this (-> this type))
|
|
(format #t "~Tlength: ~D~%" (-> this length))
|
|
(format #t "~Tdata[~D]: @ #x~X~%" (-> this length) (-> this data))
|
|
(dotimes (s5-0 (-> this length))
|
|
(format #t "~T [~D] ~A~%" s5-0 (-> this data s5-0))
|
|
)
|
|
this
|
|
)
|
|
|
|
;; definition for method 8 of type drawable-inline-array-node
|
|
(defmethod mem-usage ((this drawable-inline-array-node) (usage memory-usage-block) (flags int))
|
|
(set! (-> usage length) (max 65 (-> usage length)))
|
|
(set! (-> usage data 64 name) "draw-node")
|
|
(+! (-> usage data 64 count) (-> this length))
|
|
(let ((v1-6 (asize-of this)))
|
|
(+! (-> usage data 64 used) v1-6)
|
|
(+! (-> usage data 64 total) (logand -16 (+ v1-6 15)))
|
|
)
|
|
this
|
|
)
|
|
|
|
;; definition for method 5 of type drawable-inline-array-node
|
|
;; WARN: Return type mismatch uint vs int.
|
|
(defmethod asize-of ((this drawable-inline-array-node))
|
|
(the-as int (+ (-> drawable-inline-array-node size) (* (+ (-> this length) -1) 32)))
|
|
)
|
|
|
|
;; definition for method 16 of type drawable-inline-array-node
|
|
;; WARN: Return type mismatch int vs none.
|
|
(defmethod collect-regions ((this drawable-inline-array-node) (arg0 sphere) (arg1 int) (arg2 region-prim-list))
|
|
"Fill the region-prim-list with regions that intersect the sphere."
|
|
(collect-regions (the-as draw-node (-> this data)) arg0 (-> this length) arg2)
|
|
0
|
|
(none)
|
|
)
|
|
|
|
;; definition for function draw-node-cull
|
|
;; ERROR: function was not converted to expressions. Cannot decompile.
|
|
|
|
;; failed to figure out what this is:
|
|
0
|
|
|
|
|
|
|
|
|