1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

add example darkroom/two_spheres.hpp

This commit is contained in:
bolero-MURAKAMI 2013-09-20 02:40:19 +09:00
parent 67c643820e
commit 3713351e3e
4 changed files with 103 additions and 4 deletions

View file

@ -9,7 +9,7 @@
// DARKROOM_SOURCE
//
#ifndef DARKROOM_SOURCE
# error DARKROOM_SOURCE not defined. for example: "scene.hpp"
# error DARKROOM_SOURCE not defined. for example: "../../example/darkroom/two_spheres.hpp"
#else
# include DARKROOM_SOURCE
#endif

View file

@ -9,7 +9,7 @@
#
# requires: ImageMagick (http://www.imagemagick.org/script/index.php)
#
src=""
src="../../example/darkroom/two_spheres.hpp"
stagedir="darkroom"
width=16
height=16
@ -46,7 +46,7 @@ echo ": tile-width = ${tile_width}"
echo ": tile-height = ${tile_height}"
echo ": force = ${force}"
if [ ! -f "${src}" ]; then
if [ ! -f "${src}" -a ! -f "$(cd $(dirname $0); pwd)/${src}" ]; then
echo >&2 -e ": \e[31msource(${src}) is not exist.\e[m"
exit 1
fi
@ -96,4 +96,4 @@ popd
let elapsed=$SECONDS-$start
echo ": elapsed = ${elapsed}s"
echo ": finished"
echo ": finished."