ccdemos/SConscript
author Radek Brich <radek.brich@devl.cz>
Tue, 29 Apr 2008 23:31:08 +0200
branchpyrit
changeset 90 f6a72eb99631
parent 88 f7edb3b90816
child 91 9d66d323c354
permissions -rw-r--r--
rename Python module from 'raytracer' to 'pyrit' improve Python binding: - new objects: Container, Octree, KdTree, Shape, Pixmap, Sampler, DefaultSampler - all shapes are now subclasses of Shape - clean, remove redundant Getattr's - Raytracer render method now just wraps C++ method without doing any additional work adjust all demos for changes in Python binding, remove PIL dependency add demo_PIL.py as a example of pyrit + PIL usage render_nff.py now either loads file given as a argument or reads input from stdin otherwise fix bug in pixmap float to char conversion

Import('env lib')
myenv = env.Clone()
myenv.Append(CPPPATH = ['.','#include'], LIBPATH='#build/lib')
myenv.Prepend(LIBS=['pyrit'])

sdlenv = myenv.Clone()
sdlenv.ParseConfig('sh sdl-config --cflags --libs')

l = []
l.append( sdlenv.Program(['realtime.cc']) )
l.append( sdlenv.Program(['realtime_bunny.cc']) )
l.append( sdlenv.Program(['realtime_dragon.cc']) )
l.append( sdlenv.Program(['spheres_shadow.cc']) )
l.append( sdlenv.Program(['textures.cc']) )

myenv.Alias('cc-demos', l)