testparse.c
branchtrunk
changeset 7 18bf77bb8c07
child 9 aea1b254e6a5
equal deleted inserted replaced
6:89bff6a08fca 7:18bf77bb8c07
       
     1 #include <stdio.h>
       
     2 #include "d3d2glsl.h"
       
     3 
       
     4 int main(int argc, char **argv)
       
     5 {
       
     6     if (argv[1] != NULL)
       
     7     {
       
     8         FILE *io = fopen(argv[1], "rb");
       
     9         if (io != NULL)
       
    10         {
       
    11             uint8 *buf = (uint8 *) malloc(1000000);
       
    12             int rc = fread(buf, 1, 1000000, io);
       
    13             fclose(io);
       
    14             D3D2GLSL_parse(buf, rc);
       
    15             free(buf);
       
    16         } // if
       
    17     } // if
       
    18 
       
    19     return 0;
       
    20 } // main
       
    21 
       
    22 // end of testparse.c ...
       
    23