mirror of
https://github.com/open-goal/jak-project
synced 2026-08-20 14:24:45 -04:00
(init-vf0-vector) to make vector code a bit more readable (#494)
* decomp: Use a macro for loading VF0 (maybe should be in goal-lib.gc?) * update references * lint: format * delete now unused file
This commit is contained in:
@@ -588,3 +588,8 @@
|
||||
(define-extern vector-rad<-vector-deg/2! (function vector vector int))
|
||||
|
||||
(define-extern sprite-distorter-generate-tables (function none))
|
||||
|
||||
(defmacro init-vf0-vector ()
|
||||
"Initializes the VF0 vector which is a constant vector in the VU set to <0,0,0,1>"
|
||||
`(.lvf vf0 (new 'static 'vector :x 0.0 :y 0.0 :z 0.0 :w 1.0))
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user