Skip to content

Commit

Permalink
Initial commit. Example from gattass without the IconLib
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcelo Politzer Couto committed Oct 18, 2011
0 parents commit 89236e9
Show file tree
Hide file tree
Showing 49 changed files with 6,916 additions and 0 deletions.
17 changes: 17 additions & 0 deletions 5balls.rt4
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
RT 3.0
CAMERA 0. 1. 5. 0. 0. 0. 0. 1. 1. 100. 1. 100. 400 400
SCENE 20. 20. 80. 40. 40. 40. null
MATERIAL 0. 255. 0. 255. 255. 255. 20. 1. 0. 1. null
MATERIAL 0. 0. 0. 255. 255. 255. 40. 1. 0. 1. formica.bmp
MATERIAL 255. 0. 0. 255. 255. 255. 20. 1. 0. 1. null
MATERIAL 0. 0. 255. 255. 255. 255. 20. 1. 0. 1. null
MATERIAL 0. 255. 255. 255. 255. 255. 20. 1. 0. 1. null
MATERIAL 255. 0. 255. 255. 255. 255. 20. 1. 0. 1. null
LIGHT 40. 20. 10. 255. 255. 255.
LIGHT -40. 40. 10. 255. 255. 255.
SPHERE 0 3. 0. 3. -12.
SPHERE 2 3. -3. -3. -10.
SPHERE 3 3. 3. -3. -10.
SPHERE 4 3. -3. 1. -16.
SPHERE 5 3. 3. 1. -16.
BOX 1 -30. -8. -40. 30. -7. 0.
868 changes: 868 additions & 0 deletions IconLib.c

Large diffs are not rendered by default.

43 changes: 43 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
OUT=tmp
SRC= \
algebra.c \
camera.c \
color.c \
image.c \
light.c \
mainIUP.c \
material.c \
object.c \
raytracing.c\
scene.c

# Configs
CC=gcc
RM=rm
MV=mv
CFLAGS=-O2 -Wall `pkg-config gl --cflags` -I /usr/include/iup -ggdb
LIBS=-liup -liupgl -liupimglib


MAKEFILE=Makefile
OBJ=$(SRC:.c=.o)

.c.o:
$(CC) -c $(CFLAGS) $<

$(OUT): $(OBJ)
$(CC) $(CFLAGS) $(LIBS) $^ -o $@

clean:
$(RM) $(OBJ) $(OUT)

depend:
if grep '^# DO NOT DELETE' $(MAKEFILE) >/dev/null; \
then \
sed -e '/^# DO NOT DELETE/,$$d' $(MAKEFILE) > \
$(MAKEFILE).$$$$ && \
$(MV) $(MAKEFILE).$$$$ $(MAKEFILE); \
fi
echo '# DO NOT DELETE THIS LINE -- make depend depends on it.' \
>> $(MAKEFILE); \
$(CC) -M $(SRC) >> $(MAKEFILE)
Binary file added RedBricks.bmp
Binary file not shown.
Loading

0 comments on commit 89236e9

Please sign in to comment.