]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - csprogs.h
added RF_FULLBRIGHT and RF_NOSHADOW renderflags for CSQC
[xonotic/darkplaces.git] / csprogs.h
index 24856dd740a8d9652e129065bcaec1a85d4198dd..6e2e517cf50a76ce39566d11eff4c4b1945d2004 100644 (file)
--- a/csprogs.h
+++ b/csprogs.h
 #define RF_USEAXIS                     16      // When set, the entity will use the v_forward, v_right and v_up globals instead of it's angles field for orientation. Angles will be ignored compleatly.
                                                                // Note that to use this properly, you'll NEED to use the predraw function to set the globals.
 //#define RF_DOUBLESIDED               32
+#define RF_USETRANSPARENTOFFSET 64 // Allows QC to customize origin used for transparent sorting via transparent_origin global, helps to fix transparent sorting bugs on a very large entities
+#define RF_NOCULL                              128 // do not cull this entity using r_cullentities, for large outdoor entities (asteroids on the sky. etc)
+
+#define RF_FULLBRIGHT                  256
+#define RF_NOSHADOW                            512
 
 extern cvar_t csqc_progname;   //[515]: csqc crc check and right csprogs name according to progs.dat
 extern cvar_t csqc_progcrc;
 extern cvar_t csqc_progsize;
 
-qboolean MakeDownloadPacket(const char *filename, unsigned char *data, unsigned long len, int crc, int cnt, sizebuf_t *buf, int protocol);
+void CL_VM_PreventInformationLeaks(void);
+
+qboolean MakeDownloadPacket(const char *filename, unsigned char *data, size_t len, int crc, int cnt, sizebuf_t *buf, int protocol);
+
+qboolean CL_VM_GetEntitySoundOrigin(int entnum, vec3_t out);
 
 #endif