]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - common.h
faster surface culling check in light processing
[xonotic/darkplaces.git] / common.h
index 2986045f37301738a5ba4d85fccd86a980a39501..a31e822cc5fead2764828b0b3765956eac34701b 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);
 //@}
 
 //============================================================================