]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - common.h
illuminated surfaces are now sorted by texture, giving a good fps
[xonotic/darkplaces.git] / common.h
index 2986045f37301738a5ba4d85fccd86a980a39501..ad96265c7915354e48de148a490b0089ec3a7753 100644 (file)
--- a/common.h
+++ b/common.h
@@ -103,6 +103,15 @@ short BuffLittleShort (const unsigned char *buffer);
 
 /// Encode a big endian 32bit int to the given \p buffer
 void StoreBigLong (unsigned char *buffer, unsigned int i);
+
+/// Encode a big endian 16bit int to the given \p buffer
+void StoreBigShort (unsigned char *buffer, unsigned short i);
+
+/// Encode a little endian 32bit int to the given \p buffer
+void StoreLittleLong (unsigned char *buffer, unsigned int i);
+
+/// Encode a little endian 16bit int to the given \p buffer
+void StoreLittleShort (unsigned char *buffer, unsigned short i);
 //@}
 
 //============================================================================
@@ -195,6 +204,7 @@ int COM_ParseToken_Console(const char **datapointer);
 
 extern int com_argc;
 extern const char **com_argv;
+extern int com_selffd;
 
 int COM_CheckParm (const char *parm);
 void COM_Init (void);
@@ -242,6 +252,7 @@ typedef enum gamemode_e
        GAME_ROGUE,
        GAME_NEHAHRA,
        GAME_NEXUIZ,
+       GAME_XONOTIC,
        GAME_TRANSFUSION,
        GAME_GOODVSBAD2,
        GAME_TEU,
@@ -259,9 +270,11 @@ typedef enum gamemode_e
        GAME_DARSANA,
        GAME_CONTAGIONTHEORY,
        GAME_EDU2P,
-       GAME_BLADEMASTER,
        GAME_PROPHECY,
        GAME_BLOODOMNICIDE,
+       GAME_STEELSTORM, // added by motorsep
+       GAME_STRAPBOMB, // added by motorsep for Urre
+       GAME_MOONHELM,
        GAME_COUNT
 }
 gamemode_t;
@@ -337,5 +350,8 @@ size_t strlcpy(char *dst, const char *src, size_t siz);
 
 void FindFraction(double val, int *num, int *denom, int denomMax);
 
+// decodes XPM file to XPM array (as if #include'd)
+char **XPM_DecodeString(const char *in);
+
 #endif