material and texture classes moved to material.(cc,h)
2D texture mappings from textures.cc polished and moved to material.h
add ColourMap class and subclasses to make textures more flexible
two example textures: CheckersTexture and CloudTexture (using Perlin noise)
Import('env lib')
env.Append(CPPPATH = ['.','#include'], LIBPATH='#build/lib')
env.Prepend(LIBS=['pyrit','png'])
sdlenv = env.Clone()
sdlenv.ParseConfig('sh sdl-config --cflags --libs')
l = []
image_obj = env.Object('image.c', CC="$CXX")
l.append( image_obj )
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']+image_obj) )
l.append( sdlenv.Program(['textures.cc']+image_obj) )
env.Alias('cc-demos', l)