From: Martin Taibr <taibr.martin@gmail.com>
Date: Sun, 11 Nov 2018 21:07:39 +0000 (+0100)
Subject: list all engine stuff that uses the globals
X-Git-Tag: xonotic-v0.8.5~1258^2~48
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=aa06ba0e8c818aaa1da5337a39820f2cc91d4075;p=xonotic%2Fxonotic-data.pk3dir.git

list all engine stuff that uses the globals
---

diff --git a/qcsrc/lib/deglobalization.qh b/qcsrc/lib/deglobalization.qh
index a84413d0e5..37fd7e101e 100644
--- a/qcsrc/lib/deglobalization.qh
+++ b/qcsrc/lib/deglobalization.qh
@@ -6,6 +6,17 @@
 // Functions for which all usages are replaced with these macros can be hidden inside our `*defs.qh` files
 // to prevent anyone from using them accidentally.
 
+// TODO stuff in the engine that uses the v_forward/v_right/v_up globals and is not wrapped:
+//  - RF_USEAXIS, addentities, predraw,
+//    CL_GetEntityMatrix (in engine but is called from other functions so transitively any of them can use the globals - e.g. V_CalcRefdef, maybe others)
+//  - e.camera_transform / CL_VM_TransformView (in engine)
+//  - adddynamiclight
+//  - makestatic
+//  - gettaginfo
+//  - getentity
+//  - skel_get_bonerel, skel_get_boneabs, skel_set_bone, skel_mul_bone, skel_mul_bones
+//  - aim
+
 #ifdef GAMEQC
 STATIC_INIT(globals) {
 	// set to NaN to more easily detect uninitialized use