mirror of
https://github.com/open-goal/jak-project
synced 2026-06-04 02:47:17 -04:00
29 lines
785 B
Common Lisp
29 lines
785 B
Common Lisp
;;-*-Lisp-*-
|
|
(in-package goal)
|
|
|
|
;; name: cam-start.gc
|
|
;; name in dgo: cam-start
|
|
;; dgos: GAME, ENGINE
|
|
|
|
(defun cam-stop ()
|
|
(kill-by-name 'camera-master *active-pool*)
|
|
(kill-by-name 'camera-slave *active-pool*)
|
|
(kill-by-name 'camera-combiner *active-pool*)
|
|
(set! *camera* #f)
|
|
(set! *camera-combiner* #f)
|
|
(set! *camera-base-mode* cam-string)
|
|
(none)
|
|
)
|
|
|
|
(defun cam-start ((arg0 symbol))
|
|
(cam-stop)
|
|
(process-new camera-combiner cam-combiner-init :from *camera-dead-pool* :to *camera-pool* :stack *scratch-memory-top*)
|
|
(set! *camera* (the-as camera-master (ppointer->process (process-new camera-master cam-master-init :from *camera-master-dead-pool* :to *camera-pool* :stack *scratch-memory-top*))))
|
|
(if arg0
|
|
(reset-cameras)
|
|
)
|
|
(none)
|
|
)
|
|
|
|
(cam-start #f)
|