]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
added CGVM_Stain function
authorlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 1 Feb 2002 11:37:41 +0000 (11:37 +0000)
committerlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 1 Feb 2002 11:37:41 +0000 (11:37 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1461 d7cf8633-e32d-0410-b094-e92efae38249

cgame_api.h
cgamevm.c

index a061818cf017b514bdbc6a546c6221923d05e684..02edf0ee184fcc5c5a9a6bf6656993949cedb171 100644 (file)
@@ -57,6 +57,7 @@ int CGVM_GetCvarInt(const char *name);
 char *CGVM_GetCvarString(const char *name);
 double CGVM_Time(void);
 int CGVM_Model(const char *name);
+void CGVM_Stain(const float *origin, float radius, int cr1, int cg1, int cb1, int ca1, int cr2, int cg2, int cb2, int ca2);
 // more will be added
 
 // engine called functions
index d6caeb9a1b6a20ce8c62c93b872114e512922b36..9dd567e27ce5b27ebfc5049d81ebd91522691e2a 100644 (file)
--- a/cgamevm.c
+++ b/cgamevm.c
@@ -267,3 +267,8 @@ int CGVM_Model(const char *name)
        cgvm_model[i] = model;
        return i;
 }
+
+void CGVM_Stain(const float *origin, float radius, int cr1, int cg1, int cb1, int ca1, int cr2, int cg2, int cb2, int ca2)
+{
+       R_Stain((float *)origin, radius, cr1, cg1, cb1, ca1, cr2, cg2, cb2, ca2);
+}