Added ReadBlend, a data extraction API for Blender's .blend files

This can come in handy, to author physics data for Bullet from Blender, and directly get the physics data straight from the .blend file

Thanks a lot to Adam D. Moss, to digg up this code and make it available under the MIT license
It was mentioned several years ago in this thread:
http://archives.seul.org/linuxgames/Apr-2005/msg00002.html
This commit is contained in:
erwin.coumans
2008-10-06 03:53:51 +00:00
parent 30a13d5b5d
commit 2998d2a8f3
9 changed files with 3511 additions and 0 deletions

36
Extras/readblend/Makefile Normal file
View File

@@ -0,0 +1,36 @@
CC = gcc
COPTS = -O2 -Wall
#CC = gcc31
#COPTS = -O2 -Wall -ggdb -lm
#COPTS = -O3 -g -fno-inline-functions -ffast-math -pg -Wall
#COPTS = -ggdb -Wall
CFLAGS = $(COPTS) $(INCS) -lm
EXEC = testblend
OBJ_SRCS = testblend.c readblend.c
OBJ_OBJS = $(OBJ_SRCS:.c=.o)
%.o: %.c
${CC} ${CFLAGS} -c $< -o $@
all: $(EXEC)
clean:
rm -f $(EXEC) *.o gmon.out
#dist:
# tar -hzvcf flynn-`cat VERSION`.tar.gz `cat MANIFEST`
# ls -la flynn-`cat VERSION`.tar.gz
#testdist:
# tar -zvcf flynn-testdir.tar.gz test
# ls -la flynn-testdir.tar.gz
$(EXEC): $(OBJ_OBJS)
$(CC) $(CFLAGS) $^ -o $@