-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit. Example from gattass without the IconLib
- Loading branch information
Marcelo Politzer Couto
committed
Oct 18, 2011
0 parents
commit 89236e9
Showing
49 changed files
with
6,916 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Oops, something went wrong.