read .OBJ file, first try

This commit is contained in:
2020-06-05 00:17:17 +02:00
parent ee00eec000
commit 5a6e98d034
7 changed files with 65 additions and 2 deletions

5
tools/Makefile Normal file
View File

@@ -0,0 +1,5 @@
BBFUNCS = ../libbubulles.a
read_obj: read_obj.c Makefile ${BBFUNCS}
gcc -Wall $< ${BBFUNCS} -o $@

25
tools/read_obj.c Normal file
View File

@@ -0,0 +1,25 @@
/*
tentatives de lecture des OBJ
*/
#include <stdio.h>
#include <stdlib.h>
#include "../bubulles.h"
int main(int argc, char *argv[])
{
int foo;
if (2 != argc) {
bubulles_version(1);
exit(0);
}
// foo = try_to_read_an_OBJ_file(argv[1], 0);
return 0;
}