Files
jak-project/test/decompiler/reference/jak2/engine/geometry/geometry-h_REF.gc
T
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

72 lines
1.9 KiB
Common Lisp
Vendored
Generated

;;-*-Lisp-*-
(in-package goal)
;; definition of type curve
(deftype curve (structure)
((cverts (inline-array vector) :offset-assert 0)
(num-cverts int32 :offset-assert 4)
(knots (pointer float) :offset-assert 8)
(num-knots int32 :offset-assert 12)
(length float :offset-assert 16)
)
:method-count-assert 9
:size-assert #x14
:flag-assert #x900000014
)
;; definition for method 3 of type curve
(defmethod inspect curve ((obj curve))
(when (not obj)
(set! obj obj)
(goto cfg-4)
)
(format #t "[~8x] ~A~%" obj 'curve)
(format #t "~1Tcverts: #x~X~%" (-> obj cverts))
(format #t "~1Tnum-cverts: ~D~%" (-> obj num-cverts))
(format #t "~1Tknots: #x~X~%" (-> obj knots))
(format #t "~1Tnum-knots: ~D~%" (-> obj num-knots))
(format #t "~1Tlength: ~f~%" (-> obj length))
(label cfg-4)
obj
)
;; definition of type border-plane
(deftype border-plane (basic)
((name symbol :offset-assert 4)
(action basic :offset-assert 8)
(slot int8 :offset-assert 12)
(trans vector :inline :offset-assert 16)
(normal vector :inline :offset-assert 32)
)
:method-count-assert 11
:size-assert #x30
:flag-assert #xb00000030
(:methods
(debug-draw! (_type_) none 9)
(point-past-plane? (_type_ vector) symbol 10)
)
)
;; definition for method 3 of type border-plane
(defmethod inspect border-plane ((obj border-plane))
(when (not obj)
(set! obj obj)
(goto cfg-4)
)
(format #t "[~8x] ~A~%" obj (-> obj type))
(format #t "~1Tname: ~A~%" (-> obj name))
(format #t "~1Taction: ~A~%" (-> obj action))
(format #t "~1Tslot: ~D~%" (-> obj slot))
(format #t "~1Ttrans: ~`vector`P~%" (-> obj trans))
(format #t "~1Tnormal: ~`vector`P~%" (-> obj normal))
(label cfg-4)
obj
)
;; failed to figure out what this is:
0