testparse.c
branchtrunk
changeset 7 18bf77bb8c07
child 9 aea1b254e6a5
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testparse.c	Sun Feb 10 18:34:12 2008 -0500
@@ -0,0 +1,23 @@
+#include <stdio.h>
+#include "d3d2glsl.h"
+
+int main(int argc, char **argv)
+{
+    if (argv[1] != NULL)
+    {
+        FILE *io = fopen(argv[1], "rb");
+        if (io != NULL)
+        {
+            uint8 *buf = (uint8 *) malloc(1000000);
+            int rc = fread(buf, 1, 1000000, io);
+            fclose(io);
+            D3D2GLSL_parse(buf, rc);
+            free(buf);
+        } // if
+    } // if
+
+    return 0;
+} // main
+
+// end of testparse.c ...
+