mirror of
https://github.com/open-goal/jak-project
synced 2026-06-06 11:47:44 -04:00
5b44aece75
* delete unused shaders * hide some options in debug menu * change fullscreen logic a bit * add "all actors" toggle * borderless fix and fix alpha in direct renderer untextured (do we need a separate shader for that?) * fix fuel cell orbit icons in widescreen * fix `curve` types * refs * fix levitator task... * fix some task stuff * update font code a bit (temp) * cmake, third-party and visual studio overhaul * Update .gitmodules * update modules * clone repos * fix encoding in zydis * where did these come from * try again * add submodule * Update 11zip * Update 11zip * Update 11zip * delete * try again * clang * update compiler flags * delete 11zip. go away. * Create memory-dump-p2s.py * properly * fix minimum architecture c++ compiler flags * fix zydis * oops * Update all-types.gc * fix clang-cl tests * make "all actors" work better, entity debug qol * update game-text conversion code to be more modularized * Create vendor.txt * fix typos and minor things * update refs * clang * Attempt to add clang-cl support to vs2019 and CI * vs2022 + clang-cl * srsly? fix clang build * Update launch.vs.json * extend windows CI timer
42 lines
1.3 KiB
Common Lisp
42 lines
1.3 KiB
Common Lisp
;;-*-Lisp-*-
|
|
(in-package goal)
|
|
|
|
;; name: geometry-h.gc
|
|
;; name in dgo: geometry-h
|
|
;; dgos: GAME, ENGINE
|
|
|
|
(defconstant MAX_CURVE_CONTROL_POINTS 256)
|
|
|
|
;; A 3 dimensional polynomial spline with arbitrarily placed knot points
|
|
;; It's used for camera paths and similar and can be generated by offline tools.
|
|
(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
|
|
)
|
|
|
|
;; unused plane type that would likely trigger some action on crossing.
|
|
(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)
|
|
)
|
|
)
|
|
|
|
(defun-extern quaternion-from-two-vectors-max-angle! quaternion vector vector float quaternion)
|