]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/deglobalization.qh
wrap the remaining globaals that i know how
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / deglobalization.qh
index 42c6f760ec235e156a5b43b81c562394c1c85574..5f5651064a84acd33da189e7b31722ea6da7f31e 100644 (file)
@@ -12,8 +12,6 @@
 //    - however RF_USEAXIS is only used if MF_ROTATE is used which is only set in one place
 //  - e.camera_transform / CL_VM_TransformView (in engine
 //    - this is the only used function that both sets and gets the globals (aim does too but isn't used in our code)
-//  - adddynamiclight
-//  - makestatic
 
 #define NEW_VECS(...) EVAL(OVERLOAD(NEW_VECS, __VA_ARGS__))
 #define NEW_VECS_3(forward, right, up) vector forward = '0 0 0'; vector right = '0 0 0'; vector up = '0 0 0';
@@ -72,6 +70,12 @@ STATIC_INIT(globals) {
        CLEAR_V_GLOBALS(); \
 } MACRO_END
 
+#define ADD_DYNAMIC_LIGHT(org, radius, lightcolours, forward, right, up) MACRO_BEGIN { \
+       SET_V_GLOBALS(forward, right, up); \
+       _adddynamiclight_hidden(org, radius, lightcolours); \
+       CLEAR_V_GLOBALS(); \
+} MACRO_END
+
 #define VECTOR_VECTORS(forward_in, forward, right, up) MACRO_BEGIN { \
        _vectorvectors_hidden(forward_in); \
        GET_V_GLOBALS(forward, right, up); \