]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - misc/source/darkplaces-src/cl_dyntexture.h
Include the source of the Darkplaces engine too
[voretournament/voretournament.git] / misc / source / darkplaces-src / cl_dyntexture.h
diff --git a/misc/source/darkplaces-src/cl_dyntexture.h b/misc/source/darkplaces-src/cl_dyntexture.h
new file mode 100644 (file)
index 0000000..130dc16
--- /dev/null
@@ -0,0 +1,20 @@
+// Andreas 'Black' Kirsch 07
+#ifndef CL_DYNTEXTURE_H
+#define CL_DYNTEXTURE_H
+
+#define CLDYNTEXTUREPREFIX                     "_dynamic/"
+
+// always path fully specified names to the dynamic texture functions! (ie. with the _dynamic/ prefix, etc.!)
+
+// return a valid texture handle for a dynamic texture (might be filler texture if it hasnt been initialized yet)
+// or NULL if its not a valid dynamic texture name
+rtexture_t * CL_GetDynTexture( const char *name );
+
+// link a texture handle as dynamic texture and update texture handles in the renderer and draw_* accordingly
+void CL_LinkDynTexture( const char *name, rtexture_t *texture );
+
+// unlink a texture handle from its name
+void CL_UnlinkDynTexture( const char *name );
+
+#endif
+