]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_dyntexture.h
Add cl_dyntexture.h and .c (don't need to be added to the makefile or vc project...
[xonotic/darkplaces.git] / cl_dyntexture.h
diff --git a/cl_dyntexture.h b/cl_dyntexture.h
new file mode 100644 (file)
index 0000000..c513ab1
--- /dev/null
@@ -0,0 +1,18 @@
+// Andreas 'Black' Kirsch 07\r
+#ifndef CL_DYNTEXTURE_H\r
+#define CL_DYNTEXTURE_H\r
+\r
+#define DYNAMIC_TEXTURE_PATH_PREFIX                    "_dynamic/"\r
+#define MAX_DYNAMIC_TEXTURE_COUNT                      64\r
+\r
+// return a valid texture handle for a dynamic texture (might be filler texture if it hasnt been initialized yet)\r
+// textureflags will be ignored though for now [11/22/2007 Black]\r
+rtexture_t * CL_GetDynTexture( const char *name );\r
+\r
+// link a texture handle as dynamic texture and update texture handles in the renderer and draw_* accordingly\r
+void CL_LinkDynTexture( const char *name, rtexture_t *texture );\r
+\r
+// unlink a texture handle from its name\r
+void CL_UnlinkDynTexture( const char *name );\r
+\r
+#endif
\ No newline at end of file