00001 /* test using the trivial Loader */ 00002 00003 #include <stdio.h> 00004 00005 #include <GL/gl.h> 00006 00007 #include "lodestone.h" 00008 #include "echoBackend.h" 00009 #include "lsOBJLoader.h" 00010 00011 int main(int argc, char *argv[]) 00012 { 00013 lsInterface *ls = echoGetLSInterface(); 00014 FILE *f; 00015 lsNode root; 00016 00017 lsOBJLoaderInit(ls); 00018 00019 if(argc > 1) 00020 { 00021 f = fopen(argv[1], "r"); 00022 } 00023 else 00024 { 00025 printf("No file given.\n"); 00026 exit(1); 00027 } 00028 00029 root = lsOBJLoad(f); 00030 00031 printf("Root node: %d\n", root); 00032 00033 return 0; 00034 }