d3d2glsl.h
branchtrunk
changeset 20 bb2e8f285acc
parent 18 0dbdb2be8bf8
child 35 5749d174b537
--- a/d3d2glsl.h	Fri Mar 14 07:12:31 2008 -0400
+++ b/d3d2glsl.h	Sun Mar 16 04:22:03 2008 -0400
@@ -13,6 +13,18 @@
 extern "C" {
 #endif
 
+/*
+ * const int compiled_against = D3D2GLSL_VERSION;
+ * const int linked_against = D3D2GLSL_version();
+ */
+#define D3D2GLSL_VERSION 1
+int D3D2GLSL_version(void);
+
+/*
+ * These allocators work just like the C runtime's malloc() and free()
+ *  (in fact, they use malloc() and free() internally if you don't
+ *  specify your own allocator).
+ */
 typedef void *(*D3D2GLSL_malloc)(int bytes);
 typedef void (*D3D2GLSL_free)(void *ptr);