From 79b5f738f2e38acb60cda7e09f54802933a17105 Mon Sep 17 00:00:00 2001 From: Charles McGarvey Date: Tue, 7 Jul 2009 13:28:47 -0600 Subject: [PATCH] new classes; yajl library --- COPYING | 546 +++++ Doxyfile | 1510 ++++++++++++ Makefile.am | 2 +- README | 7 + configure.ac | 34 +- cscope.make | 6 +- share/animations/AlienWarrior.xml | 73 + share/animations/BigExplosion.xml | 1 + share/animations/Bonuses.xml | 1 + share/animations/Bullets.xml | 1 + share/animations/Effects.xml | 1 + share/animations/Heroine.xml | 1 + share/animations/Jetbot.xml | 1 + share/animations/RobotTrooper.xml | 1 + share/scenes/Test.xml | 824 +++++++ share/textures/AlienWarrior.data | 7 + share/textures/AlienWarrior.plist | 16 + share/textures/AlienWarrior.png | Bin 0 -> 11985 bytes share/textures/BackgroundFar.data | 9 + share/textures/BackgroundFar.plist | 21 + share/textures/BackgroundFar.png | Bin 0 -> 12399 bytes share/textures/BackgroundNear.data | 9 + share/textures/BackgroundNear.plist | 21 + share/textures/BackgroundNear.png | Bin 0 -> 15736 bytes share/textures/BigExplosion.data | 9 + share/textures/BigExplosion.plist | 25 + share/textures/BigExplosion.png | Bin 0 -> 11305 bytes share/textures/Bonuses.data | 9 + share/textures/Bonuses.plist | 25 + share/textures/Bonuses.png | Bin 0 -> 9207 bytes share/textures/Building.data | 9 + share/textures/Building.plist | 21 + share/textures/Building.png | Bin 0 -> 8781 bytes share/textures/Default.plist | 16 + share/textures/Font.data | 7 + share/textures/Font.plist | 16 + share/textures/Font.png | Bin 0 -> 19065 bytes share/textures/Heroine.data | 7 + share/textures/Heroine.plist | 16 + share/textures/Heroine.png | Bin 0 -> 14129 bytes share/textures/Jetbot.data | 7 + share/textures/Jetbot.plist | 16 + share/textures/Jetbot.png | Bin 0 -> 9634 bytes share/textures/Particles.data | 9 + share/textures/Particles.plist | 25 + share/textures/Particles.png | Bin 0 -> 9884 bytes share/textures/RobotTrooper.data | 7 + share/textures/RobotTrooper.plist | 16 + share/textures/RobotTrooper.png | Bin 0 -> 12162 bytes share/textures/Scenery.data | 9 + share/textures/Scenery.plist | 25 + share/textures/Scenery.png | Bin 0 -> 6872 bytes share/textures/StatusBars.data | 7 + share/textures/StatusBars.plist | 16 + share/textures/StatusBars.png | Bin 0 -> 5267 bytes share/textures/TowerBlock1.data | 9 + share/textures/TowerBlock1.plist | 25 + share/textures/TowerBlock1.png | Bin 0 -> 7866 bytes share/textures/Trees.data | 9 + share/textures/Trees.plist | 25 + share/textures/Trees.png | Bin 0 -> 1128 bytes src/ConvertUTF.c | 539 +++++ src/ConvertUTF.h | 158 ++ src/Makefile.am | 58 +- src/YoinkApp.cc | 182 ++ src/YoinkApp.hh | 59 + src/deserializer.cc | 243 ++ src/deserializer.hh | 79 + src/dispatcher.cc | 135 ++ src/dispatcher.hh | 84 + src/engine.cc | 255 ++ src/engine.hh | 76 + src/event.hh | 152 ++ src/fastevents.c | 195 ++ src/fastevents.h | 48 + src/math.cc | 58 + src/math.hh | 66 + src/matrix.hh | 373 +++ src/opengl.hh | 43 + src/profiler.hh | 81 + src/quaternion.hh | 188 ++ src/random.cc | 115 + src/random.hh | 126 + src/rectangle.cc | 84 + src/rectangle.hh | 124 + src/serializable.cc | 82 + src/serializable.hh | 242 ++ src/serializer.cc | 193 ++ src/serializer.hh | 86 + src/settings.cc | 100 + src/settings.hh | 84 + src/singleton.hh | 78 + src/stringtools.cc | 153 ++ src/stringtools.hh | 44 + src/texture.cc | 308 +++ src/texture.hh | 63 + src/thread.hh | 215 ++ src/timer.cc | 101 + src/timer.hh | 67 + src/vector.hh | 372 +++ src/video.cc | 347 +++ src/video.hh | 120 + src/yoink.cc | 12 - src/yoinkrc | 14 + yajl/BUILDING | 19 + yajl/BUILDING.win32 | 13 + yajl/CMakeLists.txt | 82 + yajl/Makefile.am | 31 + yajl/TODO | 9 + yajl/YAJLDoc.cmake | 26 + yajl/reformatter/CMakeLists.txt | 55 + yajl/reformatter/json_reformat.c | 202 ++ yajl/rfc4627.txt | 563 +++++ yajl/src/CMakeLists.txt | 78 + yajl/src/YAJL.dxy | 1258 ++++++++++ yajl/src/yajl.c | 152 ++ yajl/src/yajl/yajl_common.h | 85 + yajl/src/yajl/yajl_gen.h | 123 + yajl/src/yajl/yajl_parse.h | 179 ++ yajl/src/yajl_alloc.c | 65 + yajl/src/yajl_alloc.h | 50 + yajl/src/yajl_buf.c | 119 + yajl/src/yajl_buf.h | 73 + yajl/src/yajl_bytestack.h | 85 + yajl/src/yajl_encode.c | 179 ++ yajl/src/yajl_encode.h | 44 + yajl/src/yajl_gen.c | 295 +++ yajl/src/yajl_lex.c | 737 ++++++ yajl/src/yajl_lex.h | 133 ++ yajl/src/yajl_parser.c | 445 ++++ yajl/src/yajl_parser.h | 79 + yajl/test/CMakeLists.txt | 39 + yajl/test/cases/array.json | 6 + yajl/test/cases/array.json.gold | 22 + yajl/test/cases/array_close.json | 1 + yajl/test/cases/array_close.json.gold | 2 + yajl/test/cases/array_open.json | 1 + yajl/test/cases/array_open.json.gold | 2 + yajl/test/cases/bogus_char.json | 4 + yajl/test/cases/bogus_char.json.gold | 10 + .../cases/codepoints_from_unicode_org.json | 1 + .../codepoints_from_unicode_org.json.gold | 2 + yajl/test/cases/dc_simple_with_comments.json | 11 + .../cases/dc_simple_with_comments.json.gold | 5 + yajl/test/cases/deep_arrays.json | 1 + yajl/test/cases/deep_arrays.json.gold | 2049 +++++++++++++++++ .../cases/difficult_json_c_test_case.json | 1 + .../difficult_json_c_test_case.json.gold | 36 + ...ficult_json_c_test_case_with_comments.json | 1 + ...t_json_c_test_case_with_comments.json.gold | 36 + yajl/test/cases/doubles.json | 1 + yajl/test/cases/doubles.json.gold | 7 + yajl/test/cases/empty_array.json | 1 + yajl/test/cases/empty_array.json.gold | 3 + yajl/test/cases/empty_string.json | 1 + yajl/test/cases/empty_string.json.gold | 2 + yajl/test/cases/escaped_bulgarian.json | 4 + yajl/test/cases/escaped_bulgarian.json.gold | 7 + yajl/test/cases/escaped_foobar.json | 1 + yajl/test/cases/escaped_foobar.json.gold | 2 + yajl/test/cases/false.json | 1 + yajl/test/cases/false.json.gold | 2 + yajl/test/cases/false_then_garbage.json | 1 + yajl/test/cases/false_then_garbage.json.gold | 2 + yajl/test/cases/four_byte_utf8.json | 2 + yajl/test/cases/four_byte_utf8.json.gold | 5 + yajl/test/cases/integers.json | 4 + yajl/test/cases/integers.json.gold | 14 + yajl/test/cases/invalid_utf8.json | 1 + yajl/test/cases/invalid_utf8.json.gold | 3 + .../test/cases/isolated_surrogate_marker.json | 1 + .../cases/isolated_surrogate_marker.json.gold | 2 + yajl/test/cases/leading_zero_in_number.json | 1 + .../cases/leading_zero_in_number.json.gold | 5 + yajl/test/cases/lonely_minus_sign.json | 7 + yajl/test/cases/lonely_minus_sign.json.gold | 9 + yajl/test/cases/lonely_number.json | 1 + yajl/test/cases/lonely_number.json.gold | 2 + yajl/test/cases/map_close.json | 1 + yajl/test/cases/map_close.json.gold | 2 + yajl/test/cases/map_open.json | 1 + yajl/test/cases/map_open.json.gold | 2 + .../missing_integer_after_decimal_point.json | 1 + ...sing_integer_after_decimal_point.json.gold | 2 + .../cases/missing_integer_after_exponent.json | 1 + .../missing_integer_after_exponent.json.gold | 2 + yajl/test/cases/non_utf8_char_in_string.json | 1 + .../cases/non_utf8_char_in_string.json.gold | 8 + yajl/test/cases/null.json | 1 + yajl/test/cases/null.json.gold | 2 + yajl/test/cases/null_then_garbage.json | 1 + yajl/test/cases/null_then_garbage.json.gold | 2 + yajl/test/cases/nulls_and_bools.json | 5 + yajl/test/cases/nulls_and_bools.json.gold | 9 + yajl/test/cases/simple.json | 5 + yajl/test/cases/simple.json.gold | 9 + yajl/test/cases/simple_with_comments.json | 11 + .../test/cases/simple_with_comments.json.gold | 9 + yajl/test/cases/string_invalid_escape.json | 1 + .../cases/string_invalid_escape.json.gold | 3 + yajl/test/cases/string_invalid_hex_char.json | 1 + .../cases/string_invalid_hex_char.json.gold | 2 + yajl/test/cases/string_with_escapes.json | 3 + yajl/test/cases/string_with_escapes.json.gold | 7 + .../cases/string_with_invalid_newline.json | 2 + .../string_with_invalid_newline.json.gold | 2 + yajl/test/cases/three_byte_utf8.json | 1 + yajl/test/cases/three_byte_utf8.json.gold | 7 + yajl/test/cases/true.json | 1 + yajl/test/cases/true.json.gold | 2 + yajl/test/cases/true_then_garbage.json | 1 + yajl/test/cases/true_then_garbage.json.gold | 2 + yajl/test/cases/unescaped_bulgarian.json | 1 + yajl/test/cases/unescaped_bulgarian.json.gold | 4 + yajl/test/run_tests.sh | 61 + yajl/test/yajl_test.c | 291 +++ yajl/verify/CMakeLists.txt | 55 + yajl/verify/json_verify.c | 129 ++ 218 files changed, 17790 insertions(+), 21 deletions(-) create mode 100644 Doxyfile create mode 100644 share/animations/AlienWarrior.xml create mode 100644 share/animations/BigExplosion.xml create mode 100644 share/animations/Bonuses.xml create mode 100644 share/animations/Bullets.xml create mode 100644 share/animations/Effects.xml create mode 100644 share/animations/Heroine.xml create mode 100644 share/animations/Jetbot.xml create mode 100644 share/animations/RobotTrooper.xml create mode 100644 share/scenes/Test.xml create mode 100644 share/textures/AlienWarrior.data create mode 100644 share/textures/AlienWarrior.plist create mode 100644 share/textures/AlienWarrior.png create mode 100644 share/textures/BackgroundFar.data create mode 100644 share/textures/BackgroundFar.plist create mode 100644 share/textures/BackgroundFar.png create mode 100644 share/textures/BackgroundNear.data create mode 100644 share/textures/BackgroundNear.plist create mode 100644 share/textures/BackgroundNear.png create mode 100644 share/textures/BigExplosion.data create mode 100644 share/textures/BigExplosion.plist create mode 100644 share/textures/BigExplosion.png create mode 100644 share/textures/Bonuses.data create mode 100644 share/textures/Bonuses.plist create mode 100644 share/textures/Bonuses.png create mode 100644 share/textures/Building.data create mode 100644 share/textures/Building.plist create mode 100644 share/textures/Building.png create mode 100644 share/textures/Default.plist create mode 100644 share/textures/Font.data create mode 100644 share/textures/Font.plist create mode 100644 share/textures/Font.png create mode 100644 share/textures/Heroine.data create mode 100644 share/textures/Heroine.plist create mode 100644 share/textures/Heroine.png create mode 100644 share/textures/Jetbot.data create mode 100644 share/textures/Jetbot.plist create mode 100644 share/textures/Jetbot.png create mode 100644 share/textures/Particles.data create mode 100644 share/textures/Particles.plist create mode 100644 share/textures/Particles.png create mode 100644 share/textures/RobotTrooper.data create mode 100644 share/textures/RobotTrooper.plist create mode 100644 share/textures/RobotTrooper.png create mode 100644 share/textures/Scenery.data create mode 100644 share/textures/Scenery.plist create mode 100644 share/textures/Scenery.png create mode 100644 share/textures/StatusBars.data create mode 100644 share/textures/StatusBars.plist create mode 100644 share/textures/StatusBars.png create mode 100644 share/textures/TowerBlock1.data create mode 100644 share/textures/TowerBlock1.plist create mode 100644 share/textures/TowerBlock1.png create mode 100644 share/textures/Trees.data create mode 100644 share/textures/Trees.plist create mode 100644 share/textures/Trees.png create mode 100644 src/ConvertUTF.c create mode 100644 src/ConvertUTF.h create mode 100644 src/YoinkApp.cc create mode 100644 src/YoinkApp.hh create mode 100644 src/deserializer.cc create mode 100644 src/deserializer.hh create mode 100644 src/dispatcher.cc create mode 100644 src/dispatcher.hh create mode 100644 src/engine.cc create mode 100644 src/engine.hh create mode 100644 src/event.hh create mode 100644 src/fastevents.c create mode 100644 src/fastevents.h create mode 100644 src/math.cc create mode 100644 src/math.hh create mode 100644 src/matrix.hh create mode 100644 src/opengl.hh create mode 100644 src/profiler.hh create mode 100644 src/quaternion.hh create mode 100644 src/random.cc create mode 100644 src/random.hh create mode 100644 src/rectangle.cc create mode 100644 src/rectangle.hh create mode 100644 src/serializable.cc create mode 100644 src/serializable.hh create mode 100644 src/serializer.cc create mode 100644 src/serializer.hh create mode 100644 src/settings.cc create mode 100644 src/settings.hh create mode 100644 src/singleton.hh create mode 100644 src/stringtools.cc create mode 100644 src/stringtools.hh create mode 100644 src/texture.cc create mode 100644 src/texture.hh create mode 100644 src/thread.hh create mode 100644 src/timer.cc create mode 100644 src/timer.hh create mode 100644 src/vector.hh create mode 100644 src/video.cc create mode 100644 src/video.hh delete mode 100644 src/yoink.cc create mode 100644 src/yoinkrc create mode 100644 yajl/BUILDING create mode 100644 yajl/BUILDING.win32 create mode 100644 yajl/CMakeLists.txt create mode 100644 yajl/Makefile.am create mode 100644 yajl/TODO create mode 100644 yajl/YAJLDoc.cmake create mode 100644 yajl/reformatter/CMakeLists.txt create mode 100644 yajl/reformatter/json_reformat.c create mode 100644 yajl/rfc4627.txt create mode 100644 yajl/src/CMakeLists.txt create mode 100644 yajl/src/YAJL.dxy create mode 100644 yajl/src/yajl.c create mode 100644 yajl/src/yajl/yajl_common.h create mode 100644 yajl/src/yajl/yajl_gen.h create mode 100644 yajl/src/yajl/yajl_parse.h create mode 100644 yajl/src/yajl_alloc.c create mode 100644 yajl/src/yajl_alloc.h create mode 100644 yajl/src/yajl_buf.c create mode 100644 yajl/src/yajl_buf.h create mode 100644 yajl/src/yajl_bytestack.h create mode 100644 yajl/src/yajl_encode.c create mode 100644 yajl/src/yajl_encode.h create mode 100644 yajl/src/yajl_gen.c create mode 100644 yajl/src/yajl_lex.c create mode 100644 yajl/src/yajl_lex.h create mode 100644 yajl/src/yajl_parser.c create mode 100644 yajl/src/yajl_parser.h create mode 100644 yajl/test/CMakeLists.txt create mode 100644 yajl/test/cases/array.json create mode 100644 yajl/test/cases/array.json.gold create mode 100644 yajl/test/cases/array_close.json create mode 100644 yajl/test/cases/array_close.json.gold create mode 100644 yajl/test/cases/array_open.json create mode 100644 yajl/test/cases/array_open.json.gold create mode 100644 yajl/test/cases/bogus_char.json create mode 100644 yajl/test/cases/bogus_char.json.gold create mode 100644 yajl/test/cases/codepoints_from_unicode_org.json create mode 100644 yajl/test/cases/codepoints_from_unicode_org.json.gold create mode 100644 yajl/test/cases/dc_simple_with_comments.json create mode 100644 yajl/test/cases/dc_simple_with_comments.json.gold create mode 100644 yajl/test/cases/deep_arrays.json create mode 100644 yajl/test/cases/deep_arrays.json.gold create mode 100644 yajl/test/cases/difficult_json_c_test_case.json create mode 100644 yajl/test/cases/difficult_json_c_test_case.json.gold create mode 100644 yajl/test/cases/difficult_json_c_test_case_with_comments.json create mode 100644 yajl/test/cases/difficult_json_c_test_case_with_comments.json.gold create mode 100644 yajl/test/cases/doubles.json create mode 100644 yajl/test/cases/doubles.json.gold create mode 100644 yajl/test/cases/empty_array.json create mode 100644 yajl/test/cases/empty_array.json.gold create mode 100644 yajl/test/cases/empty_string.json create mode 100644 yajl/test/cases/empty_string.json.gold create mode 100644 yajl/test/cases/escaped_bulgarian.json create mode 100644 yajl/test/cases/escaped_bulgarian.json.gold create mode 100644 yajl/test/cases/escaped_foobar.json create mode 100644 yajl/test/cases/escaped_foobar.json.gold create mode 100644 yajl/test/cases/false.json create mode 100644 yajl/test/cases/false.json.gold create mode 100644 yajl/test/cases/false_then_garbage.json create mode 100644 yajl/test/cases/false_then_garbage.json.gold create mode 100644 yajl/test/cases/four_byte_utf8.json create mode 100644 yajl/test/cases/four_byte_utf8.json.gold create mode 100644 yajl/test/cases/integers.json create mode 100644 yajl/test/cases/integers.json.gold create mode 100644 yajl/test/cases/invalid_utf8.json create mode 100644 yajl/test/cases/invalid_utf8.json.gold create mode 100644 yajl/test/cases/isolated_surrogate_marker.json create mode 100644 yajl/test/cases/isolated_surrogate_marker.json.gold create mode 100644 yajl/test/cases/leading_zero_in_number.json create mode 100644 yajl/test/cases/leading_zero_in_number.json.gold create mode 100644 yajl/test/cases/lonely_minus_sign.json create mode 100644 yajl/test/cases/lonely_minus_sign.json.gold create mode 100644 yajl/test/cases/lonely_number.json create mode 100644 yajl/test/cases/lonely_number.json.gold create mode 100644 yajl/test/cases/map_close.json create mode 100644 yajl/test/cases/map_close.json.gold create mode 100644 yajl/test/cases/map_open.json create mode 100644 yajl/test/cases/map_open.json.gold create mode 100644 yajl/test/cases/missing_integer_after_decimal_point.json create mode 100644 yajl/test/cases/missing_integer_after_decimal_point.json.gold create mode 100644 yajl/test/cases/missing_integer_after_exponent.json create mode 100644 yajl/test/cases/missing_integer_after_exponent.json.gold create mode 100644 yajl/test/cases/non_utf8_char_in_string.json create mode 100644 yajl/test/cases/non_utf8_char_in_string.json.gold create mode 100644 yajl/test/cases/null.json create mode 100644 yajl/test/cases/null.json.gold create mode 100644 yajl/test/cases/null_then_garbage.json create mode 100644 yajl/test/cases/null_then_garbage.json.gold create mode 100644 yajl/test/cases/nulls_and_bools.json create mode 100644 yajl/test/cases/nulls_and_bools.json.gold create mode 100644 yajl/test/cases/simple.json create mode 100644 yajl/test/cases/simple.json.gold create mode 100644 yajl/test/cases/simple_with_comments.json create mode 100644 yajl/test/cases/simple_with_comments.json.gold create mode 100644 yajl/test/cases/string_invalid_escape.json create mode 100644 yajl/test/cases/string_invalid_escape.json.gold create mode 100644 yajl/test/cases/string_invalid_hex_char.json create mode 100644 yajl/test/cases/string_invalid_hex_char.json.gold create mode 100644 yajl/test/cases/string_with_escapes.json create mode 100644 yajl/test/cases/string_with_escapes.json.gold create mode 100644 yajl/test/cases/string_with_invalid_newline.json create mode 100644 yajl/test/cases/string_with_invalid_newline.json.gold create mode 100644 yajl/test/cases/three_byte_utf8.json create mode 100644 yajl/test/cases/three_byte_utf8.json.gold create mode 100644 yajl/test/cases/true.json create mode 100644 yajl/test/cases/true.json.gold create mode 100644 yajl/test/cases/true_then_garbage.json create mode 100644 yajl/test/cases/true_then_garbage.json.gold create mode 100644 yajl/test/cases/unescaped_bulgarian.json create mode 100644 yajl/test/cases/unescaped_bulgarian.json.gold create mode 100755 yajl/test/run_tests.sh create mode 100644 yajl/test/yajl_test.c create mode 100644 yajl/verify/CMakeLists.txt create mode 100644 yajl/verify/json_verify.c diff --git a/COPYING b/COPYING index 0904dc0..4394081 100644 --- a/COPYING +++ b/COPYING @@ -1,4 +1,7 @@ +Unles otherwise stated, this package is licensed according to the following +terms and conditions: + The Simplified BSD License Copyright (c) 2009, Charles McGarvey @@ -24,3 +27,546 @@ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +------------------------------------------------------------------------------ + +The "yajl" library is statically linked under the following terms and +conditions: + +Copyright 2007-2009, Lloyd Hilaiel. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + + 3. Neither the name of Lloyd Hilaiel nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING +IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + +------------------------------------------------------------------------------ + +The "fastevents" code is statically linked, unmodified, under the following +terms and conditions: + + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + , 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! + diff --git a/Doxyfile b/Doxyfile new file mode 100644 index 0000000..c2c8319 --- /dev/null +++ b/Doxyfile @@ -0,0 +1,1510 @@ +# Doxyfile 1.5.8 + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project +# +# All text after a hash (#) is considered a comment and will be ignored +# The format is: +# TAG = value [value, ...] +# For lists items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (" ") + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- + +# This tag specifies the encoding used for all characters in the config file +# that follow. The default is UTF-8 which is also the encoding used for all +# text before the first occurrence of this tag. Doxygen uses libiconv (or the +# iconv built into libc) for the transcoding. See +# http://www.gnu.org/software/libiconv for the list of possible encodings. + +DOXYFILE_ENCODING = UTF-8 + +# The PROJECT_NAME tag is a single word (or a sequence of words surrounded +# by quotes) that should identify the project. + +PROJECT_NAME = Yoink + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. +# This could be handy for archiving the generated documentation or +# if some version control system is used. + +PROJECT_NUMBER = + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) +# base path where the generated documentation will be put. +# If a relative path is entered, it will be relative to the location +# where doxygen was started. If left blank the current directory will be used. + +OUTPUT_DIRECTORY = + +# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create +# 4096 sub-directories (in 2 levels) under the output directory of each output +# format and will distribute the generated files over these directories. +# Enabling this option can be useful when feeding doxygen a huge amount of +# source files, where putting all generated files in the same directory would +# otherwise cause performance problems for the file system. + +CREATE_SUBDIRS = NO + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# The default language is English, other supported languages are: +# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, +# Croatian, Czech, Danish, Dutch, Farsi, Finnish, French, German, Greek, +# Hungarian, Italian, Japanese, Japanese-en (Japanese with English messages), +# Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, Polish, +# Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak, Slovene, +# Spanish, Swedish, and Ukrainian. + +OUTPUT_LANGUAGE = English + +# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will +# include brief member descriptions after the members that are listed in +# the file and class documentation (similar to JavaDoc). +# Set to NO to disable this. + +BRIEF_MEMBER_DESC = YES + +# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend +# the brief description of a member or function before the detailed description. +# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. + +REPEAT_BRIEF = YES + +# This tag implements a quasi-intelligent brief description abbreviator +# that is used to form the text in various listings. Each string +# in this list, if found as the leading text of the brief description, will be +# stripped from the text and the result after processing the whole list, is +# used as the annotated text. Otherwise, the brief description is used as-is. +# If left blank, the following values are used ("$name" is automatically +# replaced with the name of the entity): "The $name class" "The $name widget" +# "The $name file" "is" "provides" "specifies" "contains" +# "represents" "a" "an" "the" + +ABBREVIATE_BRIEF = + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# Doxygen will generate a detailed section even if there is only a brief +# description. + +ALWAYS_DETAILED_SEC = NO + +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all +# inherited members of a class in the documentation of that class as if those +# members were ordinary class members. Constructors, destructors and assignment +# operators of the base classes will not be shown. + +INLINE_INHERITED_MEMB = NO + +# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full +# path before files name in the file list and in the header files. If set +# to NO the shortest path that makes the file name unique will be used. + +FULL_PATH_NAMES = YES + +# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag +# can be used to strip a user-defined part of the path. Stripping is +# only done if one of the specified strings matches the left-hand part of +# the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the +# path to strip. + +STRIP_FROM_PATH = + +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of +# the path mentioned in the documentation of a class, which tells +# the reader which header file to include in order to use a class. +# If left blank only the name of the header file containing the class +# definition is used. Otherwise one should specify the include paths that +# are normally passed to the compiler using the -I flag. + +STRIP_FROM_INC_PATH = + +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter +# (but less readable) file names. This can be useful is your file systems +# doesn't support long names like on DOS, Mac, or CD-ROM. + +SHORT_NAMES = NO + +# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen +# will interpret the first line (until the first dot) of a JavaDoc-style +# comment as the brief description. If set to NO, the JavaDoc +# comments will behave just like regular Qt-style comments +# (thus requiring an explicit @brief command for a brief description.) + +JAVADOC_AUTOBRIEF = YES + +# If the QT_AUTOBRIEF tag is set to YES then Doxygen will +# interpret the first line (until the first dot) of a Qt-style +# comment as the brief description. If set to NO, the comments +# will behave just like regular Qt-style comments (thus requiring +# an explicit \brief command for a brief description.) + +QT_AUTOBRIEF = NO + +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen +# treat a multi-line C++ special comment block (i.e. a block of //! or /// +# comments) as a brief description. This used to be the default behaviour. +# The new default is to treat a multi-line C++ comment block as a detailed +# description. Set this tag to YES if you prefer the old behaviour instead. + +MULTILINE_CPP_IS_BRIEF = NO + +# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented +# member inherits the documentation from any documented member that it +# re-implements. + +INHERIT_DOCS = YES + +# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce +# a new page for each member. If set to NO, the documentation of a member will +# be part of the file/class/namespace that contains it. + +SEPARATE_MEMBER_PAGES = NO + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. +# Doxygen uses this value to replace tabs by spaces in code fragments. + +TAB_SIZE = 8 + +# This tag can be used to specify a number of aliases that acts +# as commands in the documentation. An alias has the form "name=value". +# For example adding "sideeffect=\par Side Effects:\n" will allow you to +# put the command \sideeffect (or @sideeffect) in the documentation, which +# will result in a user-defined paragraph with heading "Side Effects:". +# You can put \n's in the value part of an alias to insert newlines. + +ALIASES = + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C +# sources only. Doxygen will then generate output that is more tailored for C. +# For instance, some of the names that are used will be different. The list +# of all members will be omitted, etc. + +OPTIMIZE_OUTPUT_FOR_C = NO + +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java +# sources only. Doxygen will then generate output that is more tailored for +# Java. For instance, namespaces will be presented as packages, qualified +# scopes will look different, etc. + +OPTIMIZE_OUTPUT_JAVA = NO + +# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran +# sources only. Doxygen will then generate output that is more tailored for +# Fortran. + +OPTIMIZE_FOR_FORTRAN = NO + +# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL +# sources. Doxygen will then generate output that is tailored for +# VHDL. + +OPTIMIZE_OUTPUT_VHDL = NO + +# Doxygen selects the parser to use depending on the extension of the files it parses. +# With this tag you can assign which parser to use for a given extension. +# Doxygen has a built-in mapping, but you can override or extend it using this tag. +# The format is ext=language, where ext is a file extension, and language is one of +# the parsers supported by doxygen: IDL, Java, Javascript, C#, C, C++, D, PHP, +# Objective-C, Python, Fortran, VHDL, C, C++. For instance to make doxygen treat +# .inc files as Fortran files (default is PHP), and .f files as C (default is Fortran), +# use: inc=Fortran f=C + +EXTENSION_MAPPING = + +# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want +# to include (a tag file for) the STL sources as input, then you should +# set this tag to YES in order to let doxygen match functions declarations and +# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. +# func(std::string) {}). This also make the inheritance and collaboration +# diagrams that involve STL classes more complete and accurate. + +BUILTIN_STL_SUPPORT = NO + +# If you use Microsoft's C++/CLI language, you should set this option to YES to +# enable parsing support. + +CPP_CLI_SUPPORT = NO + +# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. +# Doxygen will parse them like normal C++ but will assume all classes use public +# instead of private inheritance when no explicit protection keyword is present. + +SIP_SUPPORT = NO + +# For Microsoft's IDL there are propget and propput attributes to indicate getter +# and setter methods for a property. Setting this option to YES (the default) +# will make doxygen to replace the get and set methods by a property in the +# documentation. This will only work if the methods are indeed getting or +# setting a simple type. If this is not the case, or you want to show the +# methods anyway, you should set this option to NO. + +IDL_PROPERTY_SUPPORT = YES + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES, then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default +# all members of a group must be documented explicitly. + +DISTRIBUTE_GROUP_DOC = NO + +# Set the SUBGROUPING tag to YES (the default) to allow class member groups of +# the same type (for instance a group of public functions) to be put as a +# subgroup of that type (e.g. under the Public Functions section). Set it to +# NO to prevent subgrouping. Alternatively, this can be done per class using +# the \nosubgrouping command. + +SUBGROUPING = YES + +# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum +# is documented as struct, union, or enum with the name of the typedef. So +# typedef struct TypeS {} TypeT, will appear in the documentation as a struct +# with name TypeT. When disabled the typedef will appear as a member of a file, +# namespace, or class. And the struct will be named TypeS. This can typically +# be useful for C code in case the coding convention dictates that all compound +# types are typedef'ed and only the typedef is referenced, never the tag name. + +TYPEDEF_HIDES_STRUCT = NO + +# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to +# determine which symbols to keep in memory and which to flush to disk. +# When the cache is full, less often used symbols will be written to disk. +# For small to medium size projects (<1000 input files) the default value is +# probably good enough. For larger projects a too small cache size can cause +# doxygen to be busy swapping symbols to and from disk most of the time +# causing a significant performance penality. +# If the system has enough physical memory increasing the cache will improve the +# performance by keeping more symbols in memory. Note that the value works on +# a logarithmic scale so increasing the size by one will rougly double the +# memory usage. The cache size is given by this formula: +# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, +# corresponding to a cache size of 2^16 = 65536 symbols + +SYMBOL_CACHE_SIZE = 0 + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- + +# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in +# documentation are documented, even if no documentation was available. +# Private class members and static file members will be hidden unless +# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES + +EXTRACT_ALL = NO + +# If the EXTRACT_PRIVATE tag is set to YES all private members of a class +# will be included in the documentation. + +EXTRACT_PRIVATE = NO + +# If the EXTRACT_STATIC tag is set to YES all static members of a file +# will be included in the documentation. + +EXTRACT_STATIC = NO + +# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) +# defined locally in source files will be included in the documentation. +# If set to NO only classes defined in header files are included. + +EXTRACT_LOCAL_CLASSES = YES + +# This flag is only useful for Objective-C code. When set to YES local +# methods, which are defined in the implementation section but not in +# the interface are included in the documentation. +# If set to NO (the default) only methods in the interface are included. + +EXTRACT_LOCAL_METHODS = NO + +# If this flag is set to YES, the members of anonymous namespaces will be +# extracted and appear in the documentation as a namespace called +# 'anonymous_namespace{file}', where file will be replaced with the base +# name of the file that contains the anonymous namespace. By default +# anonymous namespace are hidden. + +EXTRACT_ANON_NSPACES = NO + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all +# undocumented members of documented classes, files or namespaces. +# If set to NO (the default) these members will be included in the +# various overviews, but no documentation section is generated. +# This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_MEMBERS = NO + +# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. +# If set to NO (the default) these classes will be included in the various +# overviews. This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_CLASSES = NO + +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all +# friend (class|struct|union) declarations. +# If set to NO (the default) these declarations will be included in the +# documentation. + +HIDE_FRIEND_COMPOUNDS = NO + +# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any +# documentation blocks found inside the body of a function. +# If set to NO (the default) these blocks will be appended to the +# function's detailed documentation block. + +HIDE_IN_BODY_DOCS = NO + +# The INTERNAL_DOCS tag determines if documentation +# that is typed after a \internal command is included. If the tag is set +# to NO (the default) then the documentation will be excluded. +# Set it to YES to include the internal documentation. + +INTERNAL_DOCS = NO + +# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate +# file names in lower-case letters. If set to YES upper-case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows +# and Mac users are advised to set this option to NO. + +CASE_SENSE_NAMES = YES + +# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen +# will show members with their full class and namespace scopes in the +# documentation. If set to YES the scope will be hidden. + +HIDE_SCOPE_NAMES = NO + +# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen +# will put a list of the files that are included by a file in the documentation +# of that file. + +SHOW_INCLUDE_FILES = YES + +# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] +# is inserted in the documentation for inline members. + +INLINE_INFO = YES + +# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen +# will sort the (detailed) documentation of file and class members +# alphabetically by member name. If set to NO the members will appear in +# declaration order. + +SORT_MEMBER_DOCS = YES + +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the +# brief documentation of file, namespace and class members alphabetically +# by member name. If set to NO (the default) the members will appear in +# declaration order. + +SORT_BRIEF_DOCS = NO + +# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the +# hierarchy of group names into alphabetical order. If set to NO (the default) +# the group names will appear in their defined order. + +SORT_GROUP_NAMES = NO + +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be +# sorted by fully-qualified names, including namespaces. If set to +# NO (the default), the class list will be sorted only by class name, +# not including the namespace part. +# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. +# Note: This option applies only to the class list, not to the +# alphabetical list. + +SORT_BY_SCOPE_NAME = NO + +# The GENERATE_TODOLIST tag can be used to enable (YES) or +# disable (NO) the todo list. This list is created by putting \todo +# commands in the documentation. + +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable (YES) or +# disable (NO) the test list. This list is created by putting \test +# commands in the documentation. + +GENERATE_TESTLIST = YES + +# The GENERATE_BUGLIST tag can be used to enable (YES) or +# disable (NO) the bug list. This list is created by putting \bug +# commands in the documentation. + +GENERATE_BUGLIST = YES + +# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or +# disable (NO) the deprecated list. This list is created by putting +# \deprecated commands in the documentation. + +GENERATE_DEPRECATEDLIST= YES + +# The ENABLED_SECTIONS tag can be used to enable conditional +# documentation sections, marked by \if sectionname ... \endif. + +ENABLED_SECTIONS = + +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines +# the initial value of a variable or define consists of for it to appear in +# the documentation. If the initializer consists of more lines than specified +# here it will be hidden. Use a value of 0 to hide initializers completely. +# The appearance of the initializer of individual variables and defines in the +# documentation can be controlled using \showinitializer or \hideinitializer +# command in the documentation regardless of this setting. + +MAX_INITIALIZER_LINES = 30 + +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated +# at the bottom of the documentation of classes and structs. If set to YES the +# list will mention the files that were used to generate the documentation. + +SHOW_USED_FILES = YES + +# If the sources in your project are distributed over multiple directories +# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy +# in the documentation. The default is NO. + +SHOW_DIRECTORIES = NO + +# Set the SHOW_FILES tag to NO to disable the generation of the Files page. +# This will remove the Files entry from the Quick Index and from the +# Folder Tree View (if specified). The default is YES. + +SHOW_FILES = YES + +# Set the SHOW_NAMESPACES tag to NO to disable the generation of the +# Namespaces page. +# This will remove the Namespaces entry from the Quick Index +# and from the Folder Tree View (if specified). The default is YES. + +SHOW_NAMESPACES = YES + +# The FILE_VERSION_FILTER tag can be used to specify a program or script that +# doxygen should invoke to get the current version for each file (typically from +# the version control system). Doxygen will invoke the program by executing (via +# popen()) the command , where is the value of +# the FILE_VERSION_FILTER tag, and is the name of an input file +# provided by doxygen. Whatever the program writes to standard output +# is used as the file version. See the manual for examples. + +FILE_VERSION_FILTER = + +# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed by +# doxygen. The layout file controls the global structure of the generated output files +# in an output format independent way. The create the layout file that represents +# doxygen's defaults, run doxygen with the -l option. You can optionally specify a +# file name after the option, if omitted DoxygenLayout.xml will be used as the name +# of the layout file. + +LAYOUT_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated +# by doxygen. Possible values are YES and NO. If left blank NO is used. + +QUIET = NO + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated by doxygen. Possible values are YES and NO. If left blank +# NO is used. + +WARNINGS = YES + +# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings +# for undocumented members. If EXTRACT_ALL is set to YES then this flag will +# automatically be disabled. + +WARN_IF_UNDOCUMENTED = YES + +# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as not documenting some +# parameters in a documented function, or documenting parameters that +# don't exist or using markup commands wrongly. + +WARN_IF_DOC_ERROR = YES + +# This WARN_NO_PARAMDOC option can be abled to get warnings for +# functions that are documented, but have no documentation for their parameters +# or return value. If set to NO (the default) doxygen will only warn about +# wrong or incomplete parameter documentation, but not about the absence of +# documentation. + +WARN_NO_PARAMDOC = NO + +# The WARN_FORMAT tag determines the format of the warning messages that +# doxygen can produce. The string should contain the $file, $line, and $text +# tags, which will be replaced by the file and line number from which the +# warning originated and the warning text. Optionally the format may contain +# $version, which will be replaced by the version of the file (if it could +# be obtained via FILE_VERSION_FILTER) + +WARN_FORMAT = "$file:$line: $text" + +# The WARN_LOGFILE tag can be used to specify a file to which warning +# and error messages should be written. If left blank the output is written +# to stderr. + +WARN_LOGFILE = + +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag can be used to specify the files and/or directories that contain +# documented source files. You may enter file names like "myfile.cpp" or +# directories like "/usr/src/myproject". Separate the files or directories +# with spaces. + +INPUT = src + +# This tag can be used to specify the character encoding of the source files +# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is +# also the default input encoding. Doxygen uses libiconv (or the iconv built +# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for +# the list of possible encodings. + +INPUT_ENCODING = UTF-8 + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank the following patterns are tested: +# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx +# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90 + +FILE_PATTERNS = + +# The RECURSIVE tag can be used to turn specify whether or not subdirectories +# should be searched for input files as well. Possible values are YES and NO. +# If left blank NO is used. + +RECURSIVE = YES + +# The EXCLUDE tag can be used to specify files and/or directories that should +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. + +EXCLUDE = + +# The EXCLUDE_SYMLINKS tag can be used select whether or not files or +# directories that are symbolic links (a Unix filesystem feature) are excluded +# from the input. + +EXCLUDE_SYMLINKS = NO + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. Note that the wildcards are matched +# against the file with absolute path, so to exclude all test directories +# for example use the pattern */test/* + +EXCLUDE_PATTERNS = + +# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names +# (namespaces, classes, functions, etc.) that should be excluded from the +# output. The symbol name can be a fully qualified name, a word, or if the +# wildcard * is used, a substring. Examples: ANamespace, AClass, +# AClass::ANamespace, ANamespace::*Test + +EXCLUDE_SYMBOLS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or +# directories that contain example code fragments that are included (see +# the \include command). + +EXAMPLE_PATH = + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank all files are included. + +EXAMPLE_PATTERNS = + +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude +# commands irrespective of the value of the RECURSIVE tag. +# Possible values are YES and NO. If left blank NO is used. + +EXAMPLE_RECURSIVE = NO + +# The IMAGE_PATH tag can be used to specify one or more files or +# directories that contain image that are included in the documentation (see +# the \image command). + +IMAGE_PATH = + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command , where +# is the value of the INPUT_FILTER tag, and is the name of an +# input file. Doxygen will then use the output that the filter program writes +# to standard output. +# If FILTER_PATTERNS is specified, this tag will be +# ignored. + +INPUT_FILTER = + +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern +# basis. +# Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. +# The filters are a list of the form: +# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further +# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER +# is applied to all files. + +FILTER_PATTERNS = + +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER) will be used to filter the input files when producing source +# files to browse (i.e. when SOURCE_BROWSER is set to YES). + +FILTER_SOURCE_FILES = NO + +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will +# be generated. Documented entities will be cross-referenced with these sources. +# Note: To get rid of all source code in the generated output, make sure also +# VERBATIM_HEADERS is set to NO. + +SOURCE_BROWSER = NO + +# Setting the INLINE_SOURCES tag to YES will include the body +# of functions and classes directly in the documentation. + +INLINE_SOURCES = NO + +# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct +# doxygen to hide any special comment blocks from generated source code +# fragments. Normal C and C++ comments will always remain visible. + +STRIP_CODE_COMMENTS = YES + +# If the REFERENCED_BY_RELATION tag is set to YES +# then for each documented function all documented +# functions referencing it will be listed. + +REFERENCED_BY_RELATION = YES + +# If the REFERENCES_RELATION tag is set to YES +# then for each documented function all documented entities +# called/used by that function will be listed. + +REFERENCES_RELATION = YES + +# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) +# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from +# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will +# link to the source code. +# Otherwise they will link to the documentation. + +REFERENCES_LINK_SOURCE = YES + +# If the USE_HTAGS tag is set to YES then the references to source code +# will point to the HTML generated by the htags(1) tool instead of doxygen +# built-in source browser. The htags tool is part of GNU's global source +# tagging system (see http://www.gnu.org/software/global/global.html). You +# will need version 4.8.6 or higher. + +USE_HTAGS = NO + +# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen +# will generate a verbatim copy of the header file for each class for +# which an include is specified. Set to NO to disable this. + +VERBATIM_HEADERS = YES + +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index +# of all compounds will be generated. Enable this if the project +# contains a lot of classes, structs, unions or interfaces. + +ALPHABETICAL_INDEX = NO + +# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then +# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns +# in which this list will be split (can be a number in the range [1..20]) + +COLS_IN_ALPHA_INDEX = 5 + +# In case all classes in a project start with a common prefix, all +# classes will be put under the same header in the alphabetical index. +# The IGNORE_PREFIX tag can be used to specify one or more prefixes that +# should be ignored while generating the index headers. + +IGNORE_PREFIX = + +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES (the default) Doxygen will +# generate HTML output. + +GENERATE_HTML = YES + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `html' will be used as the default path. + +HTML_OUTPUT = doc/doxygen + +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for +# each generated HTML page (for example: .htm,.php,.asp). If it is left blank +# doxygen will generate files with .html extension. + +HTML_FILE_EXTENSION = .html + +# The HTML_HEADER tag can be used to specify a personal HTML header for +# each generated HTML page. If it is left blank doxygen will generate a +# standard header. + +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a personal HTML footer for +# each generated HTML page. If it is left blank doxygen will generate a +# standard footer. + +HTML_FOOTER = + +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading +# style sheet that is used by each HTML page. It can be used to +# fine-tune the look of the HTML output. If the tag is left blank doxygen +# will generate a default style sheet. Note that doxygen will try to copy +# the style sheet file to the HTML output directory, so don't put your own +# stylesheet in the HTML output directory as well, or it will be erased! + +HTML_STYLESHEET = + +# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, +# files or namespaces will be aligned in HTML using tables. If set to +# NO a bullet list will be used. + +HTML_ALIGN_MEMBERS = YES + +# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML +# documentation will contain sections that can be hidden and shown after the +# page has loaded. For this to work a browser that supports +# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox +# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari). + +HTML_DYNAMIC_SECTIONS = NO + +# If the GENERATE_DOCSET tag is set to YES, additional index files +# will be generated that can be used as input for Apple's Xcode 3 +# integrated development environment, introduced with OSX 10.5 (Leopard). +# To create a documentation set, doxygen will generate a Makefile in the +# HTML output directory. Running make will produce the docset in that +# directory and running "make install" will install the docset in +# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find +# it at startup. +# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html for more information. + +GENERATE_DOCSET = NO + +# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the +# feed. A documentation feed provides an umbrella under which multiple +# documentation sets from a single provider (such as a company or product suite) +# can be grouped. + +DOCSET_FEEDNAME = "Doxygen generated docs" + +# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that +# should uniquely identify the documentation set bundle. This should be a +# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen +# will append .docset to the name. + +DOCSET_BUNDLE_ID = org.doxygen.Project + +# If the GENERATE_HTMLHELP tag is set to YES, additional index files +# will be generated that can be used as input for tools like the +# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) +# of the generated HTML documentation. + +GENERATE_HTMLHELP = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can +# be used to specify the file name of the resulting .chm file. You +# can add a path in front of the file if the result should not be +# written to the html output directory. + +CHM_FILE = + +# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can +# be used to specify the location (absolute path including file name) of +# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run +# the HTML help compiler on the generated index.hhp. + +HHC_LOCATION = + +# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag +# controls if a separate .chi index file is generated (YES) or that +# it should be included in the master .chm file (NO). + +GENERATE_CHI = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING +# is used to encode HtmlHelp index (hhk), content (hhc) and project file +# content. + +CHM_INDEX_ENCODING = + +# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag +# controls whether a binary table of contents is generated (YES) or a +# normal table of contents (NO) in the .chm file. + +BINARY_TOC = NO + +# The TOC_EXPAND flag can be set to YES to add extra items for group members +# to the contents of the HTML help documentation and to the tree view. + +TOC_EXPAND = NO + +# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and QHP_VIRTUAL_FOLDER +# are set, an additional index file will be generated that can be used as input for +# Qt's qhelpgenerator to generate a Qt Compressed Help (.qch) of the generated +# HTML documentation. + +GENERATE_QHP = NO + +# If the QHG_LOCATION tag is specified, the QCH_FILE tag can +# be used to specify the file name of the resulting .qch file. +# The path specified is relative to the HTML output folder. + +QCH_FILE = + +# The QHP_NAMESPACE tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#namespace + +QHP_NAMESPACE = + +# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#virtual-folders + +QHP_VIRTUAL_FOLDER = doc + +# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to add. +# For more information please see +# http://doc.trolltech.com/qthelpproject.html#custom-filters + +QHP_CUST_FILTER_NAME = + +# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the custom filter to add.For more information please see +# Qt Help Project / Custom Filters. + +QHP_CUST_FILTER_ATTRS = + +# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this project's +# filter section matches. +# Qt Help Project / Filter Attributes. + +QHP_SECT_FILTER_ATTRS = + +# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can +# be used to specify the location of Qt's qhelpgenerator. +# If non-empty doxygen will try to run qhelpgenerator on the generated +# .qhp file. + +QHG_LOCATION = + +# The DISABLE_INDEX tag can be used to turn on/off the condensed index at +# top of each HTML page. The value NO (the default) enables the index and +# the value YES disables it. + +DISABLE_INDEX = NO + +# This tag can be used to set the number of enum values (range [1..20]) +# that doxygen will group on one line in the generated HTML documentation. + +ENUM_VALUES_PER_LINE = 4 + +# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index +# structure should be generated to display hierarchical information. +# If the tag value is set to FRAME, a side panel will be generated +# containing a tree-like index structure (just like the one that +# is generated for HTML Help). For this to work a browser that supports +# JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+, +# Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are +# probably better off using the HTML help feature. Other possible values +# for this tag are: HIERARCHIES, which will generate the Groups, Directories, +# and Class Hierarchy pages using a tree view instead of an ordered list; +# ALL, which combines the behavior of FRAME and HIERARCHIES; and NONE, which +# disables this behavior completely. For backwards compatibility with previous +# releases of Doxygen, the values YES and NO are equivalent to FRAME and NONE +# respectively. + +GENERATE_TREEVIEW = NO + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be +# used to set the initial width (in pixels) of the frame in which the tree +# is shown. + +TREEVIEW_WIDTH = 250 + +# Use this tag to change the font size of Latex formulas included +# as images in the HTML documentation. The default is 10. Note that +# when you change the font size after a successful doxygen run you need +# to manually remove any form_*.png images from the HTML output directory +# to force them to be regenerated. + +FORMULA_FONTSIZE = 10 + +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- + +# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will +# generate Latex output. + +GENERATE_LATEX = NO + +# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `latex' will be used as the default path. + +LATEX_OUTPUT = latex + +# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be +# invoked. If left blank `latex' will be used as the default command name. + +LATEX_CMD_NAME = latex + +# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to +# generate index for LaTeX. If left blank `makeindex' will be used as the +# default command name. + +MAKEINDEX_CMD_NAME = makeindex + +# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact +# LaTeX documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_LATEX = NO + +# The PAPER_TYPE tag can be used to set the paper type that is used +# by the printer. Possible values are: a4, a4wide, letter, legal and +# executive. If left blank a4wide will be used. + +PAPER_TYPE = a4wide + +# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX +# packages that should be included in the LaTeX output. + +EXTRA_PACKAGES = + +# The LATEX_HEADER tag can be used to specify a personal LaTeX header for +# the generated latex document. The header should contain everything until +# the first chapter. If it is left blank doxygen will generate a +# standard header. Notice: only use this tag if you know what you are doing! + +LATEX_HEADER = + +# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated +# is prepared for conversion to pdf (using ps2pdf). The pdf file will +# contain links (just like the HTML output) instead of page references +# This makes the output suitable for online browsing using a pdf viewer. + +PDF_HYPERLINKS = NO + +# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of +# plain latex in the generated Makefile. Set this option to YES to get a +# higher quality PDF documentation. + +USE_PDFLATEX = NO + +# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. +# command to the generated LaTeX files. This will instruct LaTeX to keep +# running if errors occur, instead of asking the user for help. +# This option is also used when generating formulas in HTML. + +LATEX_BATCHMODE = NO + +# If LATEX_HIDE_INDICES is set to YES then doxygen will not +# include the index chapters (such as File Index, Compound Index, etc.) +# in the output. + +LATEX_HIDE_INDICES = NO + +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- + +# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output +# The RTF output is optimized for Word 97 and may not look very pretty with +# other RTF readers or editors. + +GENERATE_RTF = NO + +# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `rtf' will be used as the default path. + +RTF_OUTPUT = rtf + +# If the COMPACT_RTF tag is set to YES Doxygen generates more compact +# RTF documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_RTF = NO + +# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated +# will contain hyperlink fields. The RTF file will +# contain links (just like the HTML output) instead of page references. +# This makes the output suitable for online browsing using WORD or other +# programs which support those fields. +# Note: wordpad (write) and others do not support links. + +RTF_HYPERLINKS = NO + +# Load stylesheet definitions from file. Syntax is similar to doxygen's +# config file, i.e. a series of assignments. You only have to provide +# replacements, missing definitions are set to their default value. + +RTF_STYLESHEET_FILE = + +# Set optional variables used in the generation of an rtf document. +# Syntax is similar to doxygen's config file. + +RTF_EXTENSIONS_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- + +# If the GENERATE_MAN tag is set to YES (the default) Doxygen will +# generate man pages + +GENERATE_MAN = NO + +# The MAN_OUTPUT tag is used to specify where the man pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `man' will be used as the default path. + +MAN_OUTPUT = man + +# The MAN_EXTENSION tag determines the extension that is added to +# the generated man pages (default is the subroutine's section .3) + +MAN_EXTENSION = .3 + +# If the MAN_LINKS tag is set to YES and Doxygen generates man output, +# then it will generate one additional man file for each entity +# documented in the real man page(s). These additional files +# only source the real man page, but without them the man command +# would be unable to find the correct page. The default is NO. + +MAN_LINKS = NO + +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- + +# If the GENERATE_XML tag is set to YES Doxygen will +# generate an XML file that captures the structure of +# the code including all documentation. + +GENERATE_XML = NO + +# The XML_OUTPUT tag is used to specify where the XML pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `xml' will be used as the default path. + +XML_OUTPUT = xml + +# The XML_SCHEMA tag can be used to specify an XML schema, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_SCHEMA = + +# The XML_DTD tag can be used to specify an XML DTD, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_DTD = + +# If the XML_PROGRAMLISTING tag is set to YES Doxygen will +# dump the program listings (including syntax highlighting +# and cross-referencing information) to the XML output. Note that +# enabling this will significantly increase the size of the XML output. + +XML_PROGRAMLISTING = YES + +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- + +# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will +# generate an AutoGen Definitions (see autogen.sf.net) file +# that captures the structure of the code including all +# documentation. Note that this feature is still experimental +# and incomplete at the moment. + +GENERATE_AUTOGEN_DEF = NO + +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- + +# If the GENERATE_PERLMOD tag is set to YES Doxygen will +# generate a Perl module file that captures the structure of +# the code including all documentation. Note that this +# feature is still experimental and incomplete at the +# moment. + +GENERATE_PERLMOD = NO + +# If the PERLMOD_LATEX tag is set to YES Doxygen will generate +# the necessary Makefile rules, Perl scripts and LaTeX code to be able +# to generate PDF and DVI output from the Perl module output. + +PERLMOD_LATEX = NO + +# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be +# nicely formatted so it can be parsed by a human reader. +# This is useful +# if you want to understand what is going on. +# On the other hand, if this +# tag is set to NO the size of the Perl module output will be much smaller +# and Perl will parse it just the same. + +PERLMOD_PRETTY = YES + +# The names of the make variables in the generated doxyrules.make file +# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. +# This is useful so different doxyrules.make files included by the same +# Makefile don't overwrite each other's variables. + +PERLMOD_MAKEVAR_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- + +# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will +# evaluate all C-preprocessor directives found in the sources and include +# files. + +ENABLE_PREPROCESSING = YES + +# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro +# names in the source code. If set to NO (the default) only conditional +# compilation will be performed. Macro expansion can be done in a controlled +# way by setting EXPAND_ONLY_PREDEF to YES. + +MACRO_EXPANSION = NO + +# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES +# then the macro expansion is limited to the macros specified with the +# PREDEFINED and EXPAND_AS_DEFINED tags. + +EXPAND_ONLY_PREDEF = NO + +# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files +# in the INCLUDE_PATH (see below) will be search if a #include is found. + +SEARCH_INCLUDES = YES + +# The INCLUDE_PATH tag can be used to specify one or more directories that +# contain include files that are not input files but should be processed by +# the preprocessor. + +INCLUDE_PATH = + +# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard +# patterns (like *.h and *.hpp) to filter out the header-files in the +# directories. If left blank, the patterns specified with FILE_PATTERNS will +# be used. + +INCLUDE_FILE_PATTERNS = + +# The PREDEFINED tag can be used to specify one or more macro names that +# are defined before the preprocessor is started (similar to the -D option of +# gcc). The argument of the tag is a list of macros of the form: name +# or name=definition (no spaces). If the definition and the = are +# omitted =1 is assumed. To prevent a macro definition from being +# undefined via #undef or recursively expanded use the := operator +# instead of the = operator. + +PREDEFINED = + +# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then +# this tag can be used to specify a list of macro names that should be expanded. +# The macro definition that is found in the sources will be used. +# Use the PREDEFINED tag if you want to use a different macro definition. + +EXPAND_AS_DEFINED = + +# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then +# doxygen's preprocessor will remove all function-like macros that are alone +# on a line, have an all uppercase name, and do not end with a semicolon. Such +# function macros are typically used for boiler-plate code, and will confuse +# the parser if not removed. + +SKIP_FUNCTION_MACROS = YES + +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- + +# The TAGFILES option can be used to specify one or more tagfiles. +# Optionally an initial location of the external documentation +# can be added for each tagfile. The format of a tag file without +# this location is as follows: +# +# TAGFILES = file1 file2 ... +# Adding location for the tag files is done as follows: +# +# TAGFILES = file1=loc1 "file2 = loc2" ... +# where "loc1" and "loc2" can be relative or absolute paths or +# URLs. If a location is present for each tag, the installdox tool +# does not have to be run to correct the links. +# Note that each tag file must have a unique name +# (where the name does NOT include the path) +# If a tag file is not located in the directory in which doxygen +# is run, you must also specify the path to the tagfile here. + +TAGFILES = + +# When a file name is specified after GENERATE_TAGFILE, doxygen will create +# a tag file that is based on the input files it reads. + +GENERATE_TAGFILE = + +# If the ALLEXTERNALS tag is set to YES all external classes will be listed +# in the class index. If set to NO only the inherited external classes +# will be listed. + +ALLEXTERNALS = NO + +# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed +# in the modules index. If set to NO, only the current project's groups will +# be listed. + +EXTERNAL_GROUPS = YES + +# The PERL_PATH should be the absolute path and name of the perl script +# interpreter (i.e. the result of `which perl'). + +PERL_PATH = /usr/bin/perl + +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- + +# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will +# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base +# or super classes. Setting the tag to NO turns the diagrams off. Note that +# this option is superseded by the HAVE_DOT option below. This is only a +# fallback. It is recommended to install and use dot, since it yields more +# powerful graphs. + +CLASS_DIAGRAMS = YES + +# You can define message sequence charts within doxygen comments using the \msc +# command. Doxygen will then run the mscgen tool (see +# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the +# documentation. The MSCGEN_PATH tag allows you to specify the directory where +# the mscgen tool resides. If left empty the tool is assumed to be found in the +# default search path. + +MSCGEN_PATH = + +# If set to YES, the inheritance and collaboration graphs will hide +# inheritance and usage relations if the target is undocumented +# or is not a class. + +HIDE_UNDOC_RELATIONS = YES + +# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is +# available from the path. This tool is part of Graphviz, a graph visualization +# toolkit from AT&T and Lucent Bell Labs. The other options in this section +# have no effect if this option is set to NO (the default) + +HAVE_DOT = YES + +# By default doxygen will write a font called FreeSans.ttf to the output +# directory and reference it in all dot files that doxygen generates. This +# font does not include all possible unicode characters however, so when you need +# these (or just want a differently looking font) you can specify the font name +# using DOT_FONTNAME. You need need to make sure dot is able to find the font, +# which can be done by putting it in a standard location or by setting the +# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory +# containing the font. + +DOT_FONTNAME = FreeSans + +# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. +# The default size is 10pt. + +DOT_FONTSIZE = 10 + +# By default doxygen will tell dot to use the output directory to look for the +# FreeSans.ttf font (which doxygen will put there itself). If you specify a +# different font using DOT_FONTNAME you can set the path where dot +# can find it using this tag. + +DOT_FONTPATH = + +# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect inheritance relations. Setting this tag to YES will force the +# the CLASS_DIAGRAMS tag to NO. + +CLASS_GRAPH = YES + +# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect implementation dependencies (inheritance, containment, and +# class references variables) of the class with other documented classes. + +COLLABORATION_GRAPH = YES + +# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for groups, showing the direct groups dependencies + +GROUP_GRAPHS = YES + +# If the UML_LOOK tag is set to YES doxygen will generate inheritance and +# collaboration diagrams in a style similar to the OMG's Unified Modeling +# Language. + +UML_LOOK = YES + +# If set to YES, the inheritance and collaboration graphs will show the +# relations between templates and their instances. + +TEMPLATE_RELATIONS = NO + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT +# tags are set to YES then doxygen will generate a graph for each documented +# file showing the direct and indirect include dependencies of the file with +# other documented files. + +INCLUDE_GRAPH = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and +# HAVE_DOT tags are set to YES then doxygen will generate a graph for each +# documented header file showing the documented files that directly or +# indirectly include this file. + +INCLUDED_BY_GRAPH = YES + +# If the CALL_GRAPH and HAVE_DOT options are set to YES then +# doxygen will generate a call dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable call graphs +# for selected functions only using the \callgraph command. + +CALL_GRAPH = NO + +# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then +# doxygen will generate a caller dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable caller +# graphs for selected functions only using the \callergraph command. + +CALLER_GRAPH = NO + +# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen +# will graphical hierarchy of all classes instead of a textual one. + +GRAPHICAL_HIERARCHY = YES + +# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES +# then doxygen will show the dependencies a directory has on other directories +# in a graphical way. The dependency relations are determined by the #include +# relations between the files in the directories. + +DIRECTORY_GRAPH = YES + +# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images +# generated by dot. Possible values are png, jpg, or gif +# If left blank png will be used. + +DOT_IMAGE_FORMAT = png + +# The tag DOT_PATH can be used to specify the path where the dot tool can be +# found. If left blank, it is assumed the dot tool can be found in the path. + +DOT_PATH = + +# The DOTFILE_DIRS tag can be used to specify one or more directories that +# contain dot files that are included in the documentation (see the +# \dotfile command). + +DOTFILE_DIRS = + +# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of +# nodes that will be shown in the graph. If the number of nodes in a graph +# becomes larger than this value, doxygen will truncate the graph, which is +# visualized by representing a node as a red box. Note that doxygen if the +# number of direct children of the root node in a graph is already larger than +# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note +# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. + +DOT_GRAPH_MAX_NODES = 50 + +# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the +# graphs generated by dot. A depth value of 3 means that only nodes reachable +# from the root by following a path via at most 3 edges will be shown. Nodes +# that lay further from the root node will be omitted. Note that setting this +# option to 1 or 2 may greatly reduce the computation time needed for large +# code bases. Also note that the size of a graph can be further restricted by +# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. + +MAX_DOT_GRAPH_DEPTH = 0 + +# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent +# background. This is disabled by default, because dot on Windows does not +# seem to support this out of the box. Warning: Depending on the platform used, +# enabling this option may lead to badly anti-aliased labels on the edges of +# a graph (i.e. they become hard to read). + +DOT_TRANSPARENT = YES + +# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output +# files in one run (i.e. multiple -o and -T options on the command line). This +# makes dot run faster, but since only newer versions of dot (>1.8.10) +# support this, this feature is disabled by default. + +DOT_MULTI_TARGETS = NO + +# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will +# generate a legend page explaining the meaning of the various boxes and +# arrows in the dot generated graphs. + +GENERATE_LEGEND = YES + +# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will +# remove the intermediate dot files that are used to generate +# the various graphs. + +DOT_CLEANUP = YES + +#--------------------------------------------------------------------------- +# Options related to the search engine +#--------------------------------------------------------------------------- + +# The SEARCHENGINE tag specifies whether or not a search engine should be +# used. If set to NO the values of all tags below this one will be ignored. + +SEARCHENGINE = NO diff --git a/Makefile.am b/Makefile.am index af437a6..d5f6037 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1 +1 @@ -SUBDIRS = src +SUBDIRS = yajl src diff --git a/README b/README index 1b66b52..8eb36d8 100644 --- a/README +++ b/README @@ -10,3 +10,10 @@ The new code is released under the Simplified BSD License. The old code and original resources are provided under the zlib/libpng License. See COPYING for complete details. +External Dependencies: + +GL +SDL +SDL_image +boost + diff --git a/configure.ac b/configure.ac index eac5ab0..15cba2c 100644 --- a/configure.ac +++ b/configure.ac @@ -1,15 +1,43 @@ AC_PREREQ(2.60) AC_INIT([yoink],[0.1],[chaz@dogcows.com]) AM_INIT_AUTOMAKE -AC_CONFIG_SRCDIR([src/yoink.cc]) +AC_CONFIG_SRCDIR([src/YoinkApp.cc]) +AC_PROG_CC AC_PROG_CXX -AC_PROG_LIBTOOL +AC_PROG_RANLIB AC_PROG_INSTALL - AM_PROG_CC_C_O + +AC_HEADER_STDC + +AC_SEARCH_LIBS([glClear], [GL], [have_opengl=yes]) +if test ! "x${have_opengl}" = xyes +then + AC_MSG_ERROR([libGL is required]) +fi + +AC_SEARCH_LIBS([SDL_Init], [SDL], [have_sdl=yes]) +if test ! "x${have_sdl}" = xyes +then + AC_MSG_ERROR([libSDL is required]) +fi + +AC_SEARCH_LIBS([IMG_Load], [SDL_image], [have_sdlimage=yes]) +if test ! "x${have_sdlimage}" = xyes +then + AC_MSG_ERROR([libSDL_image is required]) +fi + +AC_SEARCH_LIBS([clock_gettime], [rt], [have_librt=yes]) +if test "x${have_librt}" = xyes +then + AC_DEFINE([HAVE_LIBRT], 1, [high-resolution timer enabled]) +fi + AC_CONFIG_FILES([Makefile + yajl/Makefile src/Makefile]) AC_OUTPUT diff --git a/cscope.make b/cscope.make index 983992d..258acca 100755 --- a/cscope.make +++ b/cscope.make @@ -3,8 +3,10 @@ current=`pwd` cd / find "$current" \ --iname "*.cc" -o \ --iname "*.h" |sed '/ / s/^\(.*\)/"\1"/' >"$current/cscope.files" +-iname "*.c" -o \ +-iname "*.h" -o \ +-iname "*.cc" -o \ +-iname "*.hh" |sed '/ / s/^\(.*\)/"\1"/' >"$current/cscope.files" cd "$current" diff --git a/share/animations/AlienWarrior.xml b/share/animations/AlienWarrior.xml new file mode 100644 index 0000000..e8b402b --- /dev/null +++ b/share/animations/AlienWarrior.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/share/animations/BigExplosion.xml b/share/animations/BigExplosion.xml new file mode 100644 index 0000000..c206ebc --- /dev/null +++ b/share/animations/BigExplosion.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/share/animations/Bonuses.xml b/share/animations/Bonuses.xml new file mode 100644 index 0000000..2d8c5da --- /dev/null +++ b/share/animations/Bonuses.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/share/animations/Bullets.xml b/share/animations/Bullets.xml new file mode 100644 index 0000000..e7b9ca7 --- /dev/null +++ b/share/animations/Bullets.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/share/animations/Effects.xml b/share/animations/Effects.xml new file mode 100644 index 0000000..5c278b2 --- /dev/null +++ b/share/animations/Effects.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/share/animations/Heroine.xml b/share/animations/Heroine.xml new file mode 100644 index 0000000..a07b909 --- /dev/null +++ b/share/animations/Heroine.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/share/animations/Jetbot.xml b/share/animations/Jetbot.xml new file mode 100644 index 0000000..d6d6944 --- /dev/null +++ b/share/animations/Jetbot.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/share/animations/RobotTrooper.xml b/share/animations/RobotTrooper.xml new file mode 100644 index 0000000..342592b --- /dev/null +++ b/share/animations/RobotTrooper.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/share/scenes/Test.xml b/share/scenes/Test.xml new file mode 100644 index 0000000..fa92959 --- /dev/null +++ b/share/scenes/Test.xml @@ -0,0 +1,824 @@ + + + + + + + + + -5 0 5 + 32 + + TowerBlock1 + + 2 2 2 2 2 + 1 0 0 1 0 + 1 0 0 1 0 + 1 0 0 1 0 + 1 0 0 1 0 + 1 0 0 1 0 + 1 0 0 1 0 + 1 0 0 1 0 + 1 0 0 1 0 + 1 0 0 1 0 + 1 0 0 1 0 + 1 0 0 1 0 + 1 0 0 1 0 + 1 0 0 1 0 + 4 4 4 4 4 + + + + + + 90 + 0 0 5 + 32 + + TowerBlock1 + + 2 2 2 2 2 + 0 0 0 0 0 + 0 0 0 0 0 + 0 0 0 0 0 + 0 0 0 0 0 + 0 0 0 0 0 + 0 0 0 0 0 + 0 0 0 0 0 + 0 0 0 0 0 + 0 0 0 0 0 + 0 0 0 0 0 + 0 0 0 0 0 + 0 0 0 0 0 + 0 0 0 0 6 + 4 5 5 5 4 + + + + + + 90 + -5 15 0 + 32 + + TowerBlock1 + + 3 3 3 3 3 + 3 3 3 3 3 + 3 3 3 3 3 + 3 3 3 3 3 + 3 3 3 3 3 + + + + + + + + 32 + + TowerBlock1 + + 2 2 2 2 2 2 2 + 0 1 0 0 0 1 0 + 0 1 0 0 0 1 0 + 0 1 0 0 6 1 0 + 0 1 0 0 0 1 0 + 0 1 0 0 0 1 0 + 0 1 0 0 0 1 0 + 4 4 5 5 5 4 4 + + + + + + 90 + 7 0 0 + 32 + + TowerBlock1 + + 2 2 2 2 2 2 + 0 1 0 0 1 0 + 0 1 0 0 1 0 + 0 1 0 0 1 0 + 0 1 0 0 1 0 + 0 1 0 0 1 0 + 0 1 0 0 1 0 + 4 4 4 4 4 4 + + + + + + 90 + -2 8 -6 + 32 + + TowerBlock1 + + 3 3 3 3 3 3 3 3 3 + 3 3 3 3 3 3 3 3 3 + 3 3 3 3 3 3 3 3 3 + 3 3 3 3 3 3 3 3 3 + 3 3 3 3 3 3 3 3 3 + 3 3 3 3 3 3 3 3 3 + + + + + + + + -90 + 10 0 1 + 32 + + Building + + -1 9 11 -1 + 9 10 12 11 + 15 7 7 16 + 3 5 6 4 + 3 6 5 4 + + + + + + -90 + 13 0 1 + 32 + + Building + + -1 9 11 -1 + 9 10 12 11 + 15 7 7 16 + 3 5 6 4 + 3 8 5 4 + + + + + + 10 0 5 + 32 + + Building + + 15 7 16 + 3 5 4 + 3 6 4 + + + + + + 135 + 1 1.5 1.5 + 10 5 3 + 32 + + Building + + 13 13 13 + 13 13 13 + + + + + + 10 5 3 + 32 + + Building + + 18 18 18 + + + + + + 10 4 3 + 32 + + Building + + -1 -1 -1 + + + + + + + + 90 + -3 0 0 + 32 + Scenery + + 1 1 1 1 1 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 + -1 -1 -1 1 0 0 0 0 0 0 0 0 1 + -1 -1 -1 1 0 0 0 0 0 0 0 0 1 + -1 -1 -1 1 0 0 0 0 0 0 0 0 1 + -1 -1 -1 1 0 0 0 0 0 0 0 0 1 + -1 -1 -1 1 1 1 1 1 1 1 1 1 1 + + + + + + 8 1 1 + 1 -0.5 5 + 32 + Scenery + + + + + + 8 1 1 + 1 -0.5 1 + 32 + Scenery + + + + + + 4 1 1 + -90 + 1 -0.5 1 + 32 + Scenery + + + + + + 4 1 1 + -90 + 9 -0.5 1 + 32 + Scenery + + + + + + 11 1 1 + 7 0 0 + 32 + + Scenery + + + + + + + + 19 0 0 + 32 + + Building + + -1 9 11 -1 + 9 10 12 11 + 15 7 7 16 + 3 6 5 4 + 3 5 6 4 + 3 8 5 4 + + + + + + -90 + 19 0 -3 + 32 + + Building + + 15 1 16 + 3 7 4 + 3 5 4 + 3 0 4 + + + + + + -90 + 23 0 -3 + 32 + + Building + + 15 0 16 + 3 7 4 + 3 6 4 + 3 2 4 + + + + + + 135 + 1 1.5 1.5 + -90 + 21 6 -3 + 32 + + Building + + 13 13 13 + 13 13 13 + + + + + + -135 + 1 1.5 1.5 + -90 + 21 6 -3 + 32 + + Building + + 13 13 13 + 13 13 13 + + + + + + -90 + 21 6 -3 + 32 + + Building + + 18 18 18 + + + + + + + + 90 + 10 0 0 + 32 + Scenery + + 1 1 1 + 1 1 1 + -1 -1 -1 + -1 -1 -1 + -1 -1 -1 + -1 -1 -1 + 1 1 1 + + + + + + 90 + 13 0 0 + 32 + Scenery + + 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 + 1 0 0 0 0 0 0 0 + 1 0 0 0 0 0 1 1 + 0 0 0 0 0 0 1 1 + 1 0 0 0 0 0 0 0 + 1 1 1 1 1 0 0 0 + + + + + + 12 1 1 + 14 -0.5 5 + 32 + Scenery + + + + + + 4 1 1 + 14 -0.5 1 + 32 + Scenery + + + + + + 1 1 1 + 13 -0.5 3 + 32 + Scenery + + + + + + 1 1 1 + 13 -0.5 2 + 32 + Scenery + + + + + + -90 + 14 -0.5 1 + 32 + Scenery + + 2 -1 2 2 + + + + + + -90 + 1 1 1 + 18 -0.5 0 + 32 + Scenery + + + + + + -90 + 1 1 1 + 24 -0.5 0 + 32 + Scenery + + + + + + 4 1 1 + 19 -0.5 4 + 32 + Scenery + + + + + + 4 1 1 + 19 -0.5 2 + 32 + Scenery + + + + + + 2 1 1 + -90 + 19 -0.5 2 + 32 + Scenery + + + + + + 2 1 1 + -90 + 23 -0.5 2 + 32 + Scenery + + + + + + + + 90 + 21 0 0 + 32 + Scenery + + 1 1 1 1 1 0 0 + 1 1 1 1 1 0 0 + 0 0 0 0 0 0 0 + 1 1 0 0 0 0 0 + 1 1 0 0 0 0 0 + 0 0 0 0 0 0 0 + 0 0 0 1 1 1 1 + + + + + + 4 1 1 + 24 0 0 + 32 + + Scenery + + + + + + 4 1 1 + 24 -0.5 1 + 32 + Scenery + + + + + + 2 1 1 + -90 + 26 -0.5 5 + 32 + Scenery + + + + + + 2 1 1 + -90 + 35 -0.5 5 + 32 + Scenery + + + + + + 5 1 1 + 35 -0.5 5 + 32 + Scenery + + + + + + 6 1 1 + 34 -0.5 1 + 32 + Scenery + + + + + + 1 1 1 + -90 + 34 -0.5 0 + 32 + Scenery + + + + + + 90 + 28 0 4 + 32 + Scenery + + 0 0 0 0 0 + 0 0 0 0 0 + 0 0 0 0 0 + + + + + + 90 + 33 0 0 + 32 + Scenery + + 0 0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 0 0 + 0 0 0 0 0 + 0 0 0 0 0 + 4 5 5 5 4 + + + + + + 90 + 40 15 0 + 32 + + TowerBlock1 + + 3 3 3 3 3 + 3 3 3 3 3 + 3 3 3 3 3 + 3 3 3 3 3 + 3 3 3 3 3 + + + + + + -0.3 -0.17 -900 + 3200 1600 1 + BackgroundFar + + + 0 0 300 + BackgroundNear + + + + + Trees + + + + + 96 + 250 -2.5 16 + + + + + + + 96 + 610 -2.5 85 + + + + + 96 + 650 -2.5 115 + + + + + + + 96 + 1080 -2.5 10 + + + + + 96 + 1120 -2.5 -15 + + + + + 96 + 1220 -2.5 -30 + + + diff --git a/share/textures/AlienWarrior.data b/share/textures/AlienWarrior.data new file mode 100644 index 0000000..564934b --- /dev/null +++ b/share/textures/AlienWarrior.data @@ -0,0 +1,7 @@ +{ + "TilesU": 8, + "TilesV": 4, + "InvertAlpha": 0, + "MinFilter": Nearest, + "MagFilter": Nearest +} diff --git a/share/textures/AlienWarrior.plist b/share/textures/AlienWarrior.plist new file mode 100644 index 0000000..d3adf1b --- /dev/null +++ b/share/textures/AlienWarrior.plist @@ -0,0 +1,16 @@ + + + + + TilesU + 8 + TilesV + 4 + InvertAlpha + 0 + MinFilter + Nearest + MagFilter + Nearest + + diff --git a/share/textures/AlienWarrior.png b/share/textures/AlienWarrior.png new file mode 100644 index 0000000000000000000000000000000000000000..ece94d08932ef3ffadec3113e823a074e7df9d12 GIT binary patch literal 11985 zcmcI}WmFwOknY7@gS$&`cX#&?Ah`R*-2w!6x8M*UxVyUtcXtgg7w(dMXLoDK)d2vAk1ik(9`=LpH#YwhAh-j?EdNUY z2&Z9w_!xvWQIL@Yfd3tNoux_tU_ek!0}u6gNNv7Y9%?BnUt#x z$lbhz>HGE|@sto;k!Fb<_?h%}S_J&{Dv6^D8rQ~3Vf*!!Va?C!mevFGOmejQ$l4y# zaNeI{^KDgL(S9Sfjm5ojt?saGALLeWb+%+}Z}0y|nKu9DGBsO$g85Z*jnS�Fm{%`P1Z4eOde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Jmodi%5 zH;@=CJr(*%e5cvA%zE0o0(l1l;Dgs?j5UQEx}ezd=h;?eEhz*JUk{LYR z6}_YS({2YM(4Wr0T+i$I9nuB((6sUsUUjCjLuf~g3Sfs3$d6oo+uz)}%fb%Vybf4X zDkP>Boaz7=5r*1A&`}1wb>3PD5+MqNZaYGfZG@GY&thX*DI-k78UT)wMDZgs;DQM{P`_O>5nw_8xXIP$``6X_?nI`16${8pZ9RZjkQ8rDhh&$YO>fF z;t5-l0P`zfTdp&+Ol=L%x+zOFb>^uIk&QE8P_3MlK9I(mpH0ZM=twTHh8b-Yr_ z^d$|d*^pBZcg}-ONXcrp9N~b#IRpU0(QYUP-vB=DB0(SJfDX}@qjr*q)Jz1ZedO40HBQu?#3Af^hXfRNaxJxpN`B}} zs&*Lu{2+lG*owNy4>;OahZjtry;qz9tK*7$U;YlsDnV|DRD}qvbde+eO?<(_Bpunqy)@w#&C1@K2*rwyn{q}Ep{C_1QhyZ{b z8;v{aK;+VgBkF&N3{z)wV^?z~vkwONNKx=Hv2ru9^J=oO^KD)r;9~9Q0AT0ho-wMH{J$|e|AS#;=RKNHsQ53(_Ks%O z7GD1k$0@WBf*%UF{~WtoTUhWL+X1bN0d5Y)E-sFy)*q8Li>8CB|A1isH^kY|!-WZG z?#$%k>TC@J@IqhO<9`6i{~O@qXyNK%>}(DYGjlXCCsVa@baiyGas-m`FtfUz5G8+r zDgGPm`f-mguErm^nUCmj@UyY|@fSi=FWR + + + + TilesU + 1 + TilesV + 1 + InvertAlpha + 0 + + WrapU + ClampToEdge + WrapV + ClampToEdge + MinFilter + Linear + MagFilter + Linear + + diff --git a/share/textures/BackgroundFar.png b/share/textures/BackgroundFar.png new file mode 100644 index 0000000000000000000000000000000000000000..39c9c21b3c5f3b3db2767b61c45b4f814fe688a4 GIT binary patch literal 12399 zcmd6NWl&r}uQL{d;mciWC3AoaJ@g000cUe;H|dHQ@ev%s5|7 zZFhAOFKTC3CrcZ93u<>CXA5dUQyT{WzT^yHgj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Ag zYrpKG0JA?-q7Jk%_}q9&Y(EOlT}zDxZyj9aj^2LCtQ%MP{>|MFCN=l6YAxu%~OTQnyxA-)5RQCaFB--36BauB!%?Jp`?pR_bvPUO@b_jiPaUBqpBNk*#(lC-*)o^RaP$4Nap|Y9LqrWFP6c~)xyNxg3bJy0G^{1 zgxEOw*|-HYxwwUSg@n2Io~y!~oWsdpFP}RQ|Lb7kZDT3?*~Z(#UR&D6!NSqa#>o-D z{cM96S4;n&7@hx(;o=tDn^Y|SFToB@<~Ei-{};i(7?4DtI}rU7>~3ReDQsfzY;6MY za5Qmqb277ep0s%kBTC&fgzu1;QVY|a+0Y;NwZHqHP+)KdqNX8_HA1KgY}-Mvg) zEdY|{PNo*rpRJwTo!qRQoT&xaIo%J)lb*rv{u}K6{Elw!CePs+&)VS;=6qHPFEux} z@Uw!rh30p@eRxJI{zH44I4dg)OFNl)JS)ZhlQh8O-{`{T&(ky)cK$CJ&ngu%Z5VUe*oIVjPn2h literal 0 HcmV?d00001 diff --git a/share/textures/BackgroundNear.data b/share/textures/BackgroundNear.data new file mode 100644 index 0000000..3272855 --- /dev/null +++ b/share/textures/BackgroundNear.data @@ -0,0 +1,9 @@ +{ + "TilesU": 1, + "TilesV": 1, + "InvertAlpha": 0, + "MinFilter": "Linear", + "MagFilter": "Linear", + "WrapU": "Wrap", + "WrapV": "Wrap" +} diff --git a/share/textures/BackgroundNear.plist b/share/textures/BackgroundNear.plist new file mode 100644 index 0000000..46fe92a --- /dev/null +++ b/share/textures/BackgroundNear.plist @@ -0,0 +1,21 @@ + + + + + TilesU + 1 + TilesV + 1 + InvertAlpha + 0 + + WrapU + Wrap + WrapV + Wrap + MinFilter + Linear + MagFilter + Linear + + diff --git a/share/textures/BackgroundNear.png b/share/textures/BackgroundNear.png new file mode 100644 index 0000000000000000000000000000000000000000..762f97d4c8bbe16a61a5ecadf10d91db2fe136f1 GIT binary patch literal 15736 zcmd72RZv__6fQbIkl^kaELgDM4DJ@3;O_1aTmr!z65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uJJK zgH;jwJqvg$;_h9*N*_SV2JA#hLhawiQ?HD6^)S>}i$39?$1Ex3PH;hV7){O!xV9h%b{X`7EieZZXFaCf6X4O;eqTU$mR8 z5zV|Nc$+ba?WXIeqr)kn80njlG{yYwYI2;*O4%}& zvp>Mu?|OmQdEomU%r8q^K)QBh@6shp+;eF>im4`^202dMwPCtpTV%3tOue+z#r$4C zY2=kp=Cpoqi=lttC9HbvTMlr4!Xaldj&qNGN&z^fv%t01X%({x+wIrhjOZ`=pl8k6 z9_y4mQJ5;T&sXY5cy1k*bv@*D0s&=ERae5|_9Ff<&~#VwQ%o)GS1y4@RU5br@U9p6 za$LgV)Lhd__hd*sKpE^g%(~7uuC(14&Sa_DbKVRJ*Lcj zN4h3=&;O!B9o>)&S(aWZ+;yFwj^J3Z`$K--ie>%uH%@FitkU*kA|y#=$*e&JdD*y3 zn!3@_#3M8ABa_?~3Re$!}usY;6MYa5Qmqb277e zo3wch146?agy4TeT%A1KSez|fS=`)RZJYso@6H@Z-T+kp8{p<->F#ObY5@>4cQUo0 zRIzq)cXG3Ka;D^E{p@~7{__n?{lCHPZ|~^lZt@oK`o<0?|K~SSxF|U|`MG)dxjAf& zQsv&zU;aaTnK&yd@=H3IdAyP0E++{v`EPW7^S5c5^E>}98*h|?%y`&2Em_Rjc}-c^ p+0A)b_$>H%SWLOh`OMha`8dtEILVwGW8a1a$Vn+lR*M@4|6f_f%ZdO1 literal 0 HcmV?d00001 diff --git a/share/textures/BigExplosion.data b/share/textures/BigExplosion.data new file mode 100644 index 0000000..104ebf0 --- /dev/null +++ b/share/textures/BigExplosion.data @@ -0,0 +1,9 @@ +{ + "TilesU": 8, + "TilesV": 1, + "InvertAlpha": 0, + "MinFilter": "Linear", + "MagFilter": "Linear", + "WrapU": "ClampToEdge", + "WrapV": "ClampToEdge" +} diff --git a/share/textures/BigExplosion.plist b/share/textures/BigExplosion.plist new file mode 100644 index 0000000..f9c42cb --- /dev/null +++ b/share/textures/BigExplosion.plist @@ -0,0 +1,25 @@ + + + + + TilesU + 8 + TilesV + 1 + InvertAlpha + 0 + + MinFilter + Linear + MagFilter + Linear + WrapU + ClampToEdge + WrapV + ClampToEdge + MinFilter + Nearest + MagFilter + Nearest + + diff --git a/share/textures/BigExplosion.png b/share/textures/BigExplosion.png new file mode 100644 index 0000000000000000000000000000000000000000..6bfc83792b0bf5d78c030219551b28bfa5b1a8e3 GIT binary patch literal 11305 zcmaiY1yo!y)aIMP1}O|KMTVhBi+gb|(Bj42-HJN{#fuk*;@0BDDT5R#R=j9&FHqcV z>HqKl@9sIfXY-Q#Zf?Gto8-KAl6;XWO0rL|D6jwkcp@(+tp)(#M->oJoxz{9^M7g_T0AIw=!#}xpu3H}w(_(H%f01$QgsB62a znRvpSU7Rd!>@8q!-p&@Vm!>uj0N^#ZZy+DLE{MBuLi7NcVxf|Kk9L}W(7rG0oeg)8 zB^jkD?Hh=O=oK^JDi=zB>nnMTH1)kGBXP90FfVET7<|xcvsv9Wr&JSoIJMfv@% zPu<&>q&9;Ui;YgsJ=am(Dy*>XD41s3j-2Q67}JB+Q@ppA%IcL8&aEG9;Cf2I?;S)I zxC?G$ti!X7w;=Z_h!psdCEg1AojHuPTRuk8DsL@^BkMlaMuo}dlDe!gWB;u0MeyzJ zWY^46@dGpNInLo|8W)?xPhM=?5**h~y5(id(;ri2@j>#w3IJYIes@8EOls2(v&=VPn;Ma#J<_lrGc^f$i4hj+#XU?gle$B*DgIzGQghmS4J zFTn{!>TL_0Yph8ol{th2_Z#JS57@v%-}aq90D(tY5WU!dV}N}b$+tVta5kfY+aa#UCw z{ywK@fOmuSaa%FWV^f`{(gQLYGt5K#w5+69c)oEZ+xz|%(W%ho49AT^O(2xEU1z*0 zC;|KRIG?L2Svc7}d+I1Bz1>KYU60J$8>Ubcy4<+b&23%rXen5Yq4vZm~K70tRK2QR> zh{TmsHij94R+y+NHvM{=M5;twXWs=kdCYM`ugo&jx5O2e7`2xiC-)I)qI5_8uwp06 z>3Yo_#`?w3)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z~o==g65CIG#7OKuNZ>noTmJy zynH6C7B6{CSUEY(`B??{1k71YxH!0YIQaN2O?k|uYh`C2y9MNBl%y*qjf4LO(k#@a literal 0 HcmV?d00001 diff --git a/share/textures/Bonuses.data b/share/textures/Bonuses.data new file mode 100644 index 0000000..a8e3d9d --- /dev/null +++ b/share/textures/Bonuses.data @@ -0,0 +1,9 @@ +{ + "TilesU": 8, + "TilesV": 4, + "InvertAlpha": 0, + "MinFilter": "Linear", + "MagFilter": "Linear", + "WrapU": "ClampToEdge", + "WrapV": "ClampToEdge" +} diff --git a/share/textures/Bonuses.plist b/share/textures/Bonuses.plist new file mode 100644 index 0000000..486e2f8 --- /dev/null +++ b/share/textures/Bonuses.plist @@ -0,0 +1,25 @@ + + + + + TilesU + 8 + TilesV + 4 + InvertAlpha + 0 + + MinFilter + Linear + MagFilter + Linear + WrapU + ClampToEdge + WrapV + ClampToEdge + MinFilter + Nearest + MagFilter + Nearest + + diff --git a/share/textures/Bonuses.png b/share/textures/Bonuses.png new file mode 100644 index 0000000000000000000000000000000000000000..1e9a21f8c0fa29fda34d6cd7bf85a675673b3a0a GIT binary patch literal 9207 zcmaia1yCJ9koLpf-95Pb!(D>A26u;tyCi6EC%C&ya0%`n2pZh=;d11z?yml-tNLfR zWqQAvp6#95>aE^L6(t!IL_$OW0DvMVE2;J&gFZ+U9`=LJEd>UC2m}vjF{=+5^g*J4 zXQKUu4+Ylrvy3F*{oj$-Rhsl+L2#DUbprs9F#i$6+^O@Q>003UAXW6>0H*JYuH|wMHAlaeD`|xMcy55(cY3N2XtNYxkfCXm^ z`nY1qw4BO0&~mQ~i|>y{;AxR}>m+d%9{!z%ldPTR1IFW)4Di_L`+F1TTWQ9I!S7Wr zdPXeU>-@C#y_Tbb6D`vXQ^9O&8UF00&vlbi>EdXU_UzDPicJ*Z<^6T*_?44&S?rcb z!ZF4J$gu-dlKjVAo-FB(Sj?p)`t_662Wy}uf!x>q&Vo(mruf3|Q}zKn#5;s;_0qs| z%giIt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?Rm7Mtk`ZS;sp15WQ>X z)BsdPCTfVwy~tu}fKraT8i39GeiP~bdUNxN+kAC6i0;Q#8f*4&-S$UMo1L<)xF>M% zwUGo0{_<_RdVY~HAsb_BYG8299$JST!1m%BM*<0OIAep|mJk8}92|tg(7*sdQza0! zA4Z~WA!jow|J9!Y@ZhX`*38S<)KiNFz!y&cnjL=OfJQoe65fNvBEBxzuG)$nGav%U z3nxd*l?Kp2dp~eN(ou{Ilwybi`g$Q$EHMD{H?g<7xp>wnfR860hvkO8i*Ec|@C6^> z^}r6eyle)jTy_`#V>E!745fKMAlex|U~NK1{@-2@g@Z%^{4Y2hKB#|icNgxYc^VrX zfGk7+Kn#F}uy#fqp?g>f%|iUyc|%52r3EF0a(i) zE*}Z5eYkELhX9D>K>$K%YY(N!(XuyDWTAHRZ#p1sg#LAIPe3}Sv%let{rn8}D#-oe zp||fv(TM_>8EsZBh2lKrmko^$TpgJ|_kH@eQMjqI2DIdy*~Qw`)f>;>{&I3Pp@dLC zZau%69S&qgpZ#Lgod^8rD)>W>=y%d?s*lur#%MJQ+l%%T=xT@(l$K2>fqJYUH$xp z4-tDmkOqMN@E7g*TKl*31rC}9au7V=x)BYs^b!G3cgsSF10V%*H>?0qvwg4w-gA6@fFLyNoa- zF$n+AR9|dpozV+wF$u8 z(ZtQo$;{?s&E_$5P>mlD+<$KW6XNRR>Bj7A;mYg=a=u=AARgkOFjDEf_+4X6UfdEWaB4i z=l&NRZZ6S0KE)68=YMD~6K6$5prn(T`$tefa*_a(f3pM4Kh|jubpCH2KpsmIP75<$ wE@pN%6Fz2kc5^;vQ#RfY#>vIaWo~B5&BM)K8UO0~F)ct&N=dRt+&JVv0ItDi6#xJL literal 0 HcmV?d00001 diff --git a/share/textures/Building.data b/share/textures/Building.data new file mode 100644 index 0000000..f041b09 --- /dev/null +++ b/share/textures/Building.data @@ -0,0 +1,9 @@ +{ + "TilesU": 8, + "TilesV": 4, + "InvertAlpha": 0, + "MinFilter": "Nearest", + "MagFilter": "Nearest", + "WrapU": "ClampToEdge", + "WrapV": "ClampToEdge" +} diff --git a/share/textures/Building.plist b/share/textures/Building.plist new file mode 100644 index 0000000..79084ea --- /dev/null +++ b/share/textures/Building.plist @@ -0,0 +1,21 @@ + + + + + TilesU + 8 + TilesV + 4 + InvertAlpha + 0 + + WrapU + ClampToEdge + WrapV + ClampToEdge + MinFilter + Nearest + MagFilter + Nearest + + diff --git a/share/textures/Building.png b/share/textures/Building.png new file mode 100644 index 0000000000000000000000000000000000000000..43a458653a99f05ddd2f5d9c08480d6fdcdde8fd GIT binary patch literal 8781 zcmbt(WmFtZw{9aza0%{&5FiQe47|7`c+ddBEkN*La2OzXg1fs1cQQZ-Fc91c?mD;( z1iO>(-0!nIMrRx+Ew*b?dsjTyQ_AGtE(#D<51%O0D%AYjjRR$prJ$niuD+U z8x2i=8?YfxQr7=&0K!-}FHx0`&6E^mfrr0G4y-u-FU{$Vo+|+0KK+}~#uxo=0f3ax zOY1#Y!_=M8$;Hvi=948O*we|9QP|AJ9soS%4t$gx>}o14jq{sjR{@0 zq`bl(`4Gm(#Ws~v71Nb%nC`|Xv8lB8gh(F z5+rBm#(zxpOopfF%UXsJvGv6kR!BP~ek+wL48sch)Y>e3TvP;ccQ39Ly0jFl;NTLI z%P1wwsGw8M{NU3cS?_6|r~E-VjMLC(cf`rFsvZeyBTAp;g{%hRM@9#ia<%X9a@BsN zSf$PQq}QVUk}@qlLQhnW+DP$*rM~FzQ+xYOvyTe>lb*-9em1LfOKq17Z;#(WSEV=2 z24=e^gMZETPmcD??V8I}UkSH;C`<3CW3r!i(4+x*J3A=up#j8~3qu6gEu5iw1jeMb|l0y6cY-6>XMNHDU_5cY*Zfac)82CxsR<( z)`vPv(g`mN8b;!xtP>FkU5FV3Z-{F=N_5RAp+px(hQY8GUFcY;Xm4isond>D;qFiH zvGMvlQJ6<`?f@B%#Gf(8n!aG$TU_=$UfKurNI%Pa@Av2Zw;ersT)CHe^Is!R4x{p; zqr#0vwmf>f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*#W5NH1y2EeH)upqx{1JD0wCsZx12=$Xx}m<1|!hALr3Z2 z+WmDY;MwL48t*#{Za1Bk_%%%tuRIlUD{DlgrNcP^p8Yr7VlN3OXF?_Zdu+RF=V12^8j;!p)#361Ju4dV62e;_Yxz928Sd7@T|BUH4YwJ(_)trKQ{KsYlwQs(a zpk_4M8NL2|;Sp+b|Esj}>%oz*_Y29gARB6&7k@Va<}Q||U`q}Q6ac8@y$A=lAP29o z77s6oUj)P>fGUExxql_OqihCH{_SAtVPgeSxACz2^j_A+-qOL<#?b-b6%ZUXsgnKw zIePz(!^11QJ*rgxZ^ibG7B*I%|AXR0Rx~kG2a3On!8TS_Ak$AyA58%_2UAy9M{^t0 zq%FR%Vbq~0WdEVKIJ&!XI9a-IxPo15oB(0WLwhO|;n{x(u8vkxJP z%l0sJQc(fPI-0woi~@d(dQ$$54zfT^(*or5Zyg{ZZZjcEb8|BeOFj`{4jvv0Ar4di hzaT7NDrC;XW6C37>Yq4oi5eDoE2k=3DQyz?e*lqJ(rW+! literal 0 HcmV?d00001 diff --git a/share/textures/Default.plist b/share/textures/Default.plist new file mode 100644 index 0000000..18a47ff --- /dev/null +++ b/share/textures/Default.plist @@ -0,0 +1,16 @@ + + + + + MinFilter + Linear + MagFilter + Linear + WrapU + Repeat + WrapV + Repeat + InvertAlpha + 0 + + diff --git a/share/textures/Font.data b/share/textures/Font.data new file mode 100644 index 0000000..2056f7d --- /dev/null +++ b/share/textures/Font.data @@ -0,0 +1,7 @@ +{ + "TilesU": 8, + "TilesV": 8, + "InvertAlpha": 0, + "MinFilter": "Nearest", + "MagFilter": "Nearest" +} diff --git a/share/textures/Font.plist b/share/textures/Font.plist new file mode 100644 index 0000000..7688344 --- /dev/null +++ b/share/textures/Font.plist @@ -0,0 +1,16 @@ + + + + + TilesU + 8 + TilesV + 8 + InvertAlpha + 0 + MinFilter + Nearest + MagFilter + Nearest + + diff --git a/share/textures/Font.png b/share/textures/Font.png new file mode 100644 index 0000000000000000000000000000000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?fK)QzfWV4g>T$^$Cp+%%@M{SNd0xZuRM8x)s&VNf0+ z{f8X00x*5KVSVqBDHj-(9T3O8LwWu>Epo=I)g5qgMnUO_N|^9Bx_j4fO=uG<8Fckw zA5wbsP3acff+*CXE7kezVMP_Opp79s*WT~d%>x^6hgSufu@9bqgFG_*V59j<@i=!5 zWaa(l-VlZy&%b>wNXMP>L=BF5MjuaYY^WA%CDu()cG?9p+f@(NPYQE?x_OTn(A(kh zyhx^}ou018wz}$BosGyCx9g(I4fLCPMqFr9{F#8a5=1we;I!O2>hb4jAH`Td_?{q zghHlK4Wn@sLuxFA5DkEsmmf}F;VJ7%c3%mu? VQvNyXIX^AH#nIj2sa;6ge*jv#|Azno literal 0 HcmV?d00001 diff --git a/share/textures/Heroine.data b/share/textures/Heroine.data new file mode 100644 index 0000000..fba6165 --- /dev/null +++ b/share/textures/Heroine.data @@ -0,0 +1,7 @@ +{ + "TilesU": 8, + "TilesV": 4, + "InvertAlpha": 0, + "MinFilter": "Nearest", + "MagFilter": "Nearest" +} diff --git a/share/textures/Heroine.plist b/share/textures/Heroine.plist new file mode 100644 index 0000000..d3adf1b --- /dev/null +++ b/share/textures/Heroine.plist @@ -0,0 +1,16 @@ + + + + + TilesU + 8 + TilesV + 4 + InvertAlpha + 0 + MinFilter + Nearest + MagFilter + Nearest + + diff --git a/share/textures/Heroine.png b/share/textures/Heroine.png new file mode 100644 index 0000000000000000000000000000000000000000..aff328252d9a81d75ef84b2d774e994caa9c7a46 GIT binary patch literal 14129 zcmajGbx>bH(=K>^xVt5|ySux)ySuv++=CO`o!}DOArRc%0|a+>miN7Nzum39RXeBV zsXo(BPtVLBQ(b-fL@6mqBEo%z0{{R~T1rd>06?E25C{YHiF-{g|53ntI0;++Zv_xZ z!EpaM2xTHGDF%G}=gIFXOa2edNlM!l0N~O7(?PQv{;vQ)D(s`C<)&inN#x|>Xkl$< zPUPn8WKP6oVr>rqUaMz0+Ab$t$zfad(E+f(<>;Uxh9mtC-+Jyng%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njV>}F1H_6fje(uSL!iG!YnOO2U@hmD(u znf>#Xhly!4)f48^0Ovmj=3dqoJWAGH=5|_Q*7oKOuGWqY01G?Ev{9|t|Cgive{+~w zxDKXeEC07+dq*>C3-A9Q$0?K`zE1<}|2THDwy@wawsW#F2HYKtU0oebtv?rS7DENz z_({S1ABu~krz^daxeL9kn~Sv*zy)z`|K*cF{67R&M+-MkV;6Hk*v!$yoJh&a(aq7- z%F&64lYzm33C#a + + + + TilesU + 4 + TilesV + 2 + InvertAlpha + 0 + MinFilter + Nearest + MagFilter + Nearest + + diff --git a/share/textures/Jetbot.png b/share/textures/Jetbot.png new file mode 100644 index 0000000000000000000000000000000000000000..1f02c6dbc16ea7e7c3dd324f8be6d8304838febf GIT binary patch literal 9634 zcmaiZ1yCJ9v+ltqI0W}|aCZ&v?!nz%4(<}%-95Mmm*DOmAV~1w?()ce_1{~s>Q=qk z>aTZuzv-Tx>e}j>j!;sNL`K9%1ONcY(o$k7A3ESegy3O6aBj)p|3e|TISN~R=ztFq z0z4D!FMQm<8p}$G0p9;z`CX++9~J~hDJ>TO;1k9_ftXwOdjS9lbiC9w!74`Xq>j!G z=2o_5q+m}+Gg5A2D?0$dWA!vg%lWuHQT&}Hk`KBNE;N{P+jrr`--d!(t3hnV+6P!c zp6e6K5Jj3fk;CU6lw76qI{jYe|Mn=UgOk%RikGIhNobHJxnRe3oU!t5u!`qzRl~xf_#inOTH)_9KKb2sFl1tt;fU!?(;p z-F6FPnWxQXFrzlxE4F+(d;DTY`nqTHEBgRE7@sgoSC+q4ax|zW=5F2Gd&i84H)*qZ z;ymSU<*fPS`S*gSv$A=R=UoJFlZovu~^I2b+ zl=RppkG!+5w~=e6k>4}puru9ns$kC4Jfe!++oVF3{d>jdx}H8UdX2wI>Vgm6+}jQ% zD|{E-t=%__2-hK1-=XDhBcuF{LAL>)4a`Be*-8FzrB6mjOe`4OPXrPwwFHmp2@9&R z{y_-~c8%TRQb+1)-s7WQWR}@hcUX;ith4sQw>+4q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QTPWFsA_`io$7jT=eKIsCT51d|;-gyVrP1lZLK* z$h!Da`lm>vj}06Eig)Xu-m)ClU?A?gOTFP&{w!%=n7tEe4Eel%f}8*f`Az53ho!Kb zzWBtL2sqbmW}U&GK?u5@y-~UMQZQL~;9O}wUXhFKW$Wn(Tp(Z+-#g{#0HxgzT-@JV zEmR~JV`2S*kw5Ep&u%)duUX&yHNpsbk8G|0sl@CmG=RjawH3-7 z!%-=^@D_fnTG1gVNOFiOz=eh-rrRd z2?Tj{d5c6Bx*`BDx1kz;LBguoS?}Ya6k*QdQ_O^ciZ>kZ?eg zRxh>KBq0WUp<+uoYTa!!)W;de-or94lp}O{wPLp;Eb@n0COne@o>?c4@eUDx2u_LU z0hh_&1)(lnpi8DIJHTq;6Mset$?yWwZkfuReAMAQ%UA1a<74D~nPV!U-1>fG>5N>nvhA<6ksuoXuI6iDY#ac{ zv{ME{h(ah36QXBJt@`;g539pHwqG1 z?<;^Z*@pD!1kOQ*ob$>C#8-=JbG*Why>-^QY8j}%y^QDE|A}koU}|OV`TvQVLIuJ9AD>_=b8}uJTSrSHfUCWc zi;IJa)yJAmqp6{Od{D6eh5avzvxB<}gQJ-X;)6l<-wYQAbFjOS zvl&3x)WO({RLRl-?BHVQ;7H2F$PE5VnEXK||8Fw*;~QPTMju7c$L_H4vM}?qa+9*M z^0IOBvas$0XNf=9vj5l~Mvn6GykZU}t{ + + + + TilesU + 8 + TilesV + 4 + InvertAlpha + 0 + + MinFilter + Linear + MagFilter + Linear + WrapU + ClampToEdge + WrapV + ClampToEdge + MinFilter + Nearest + MagFilter + Nearest + + diff --git a/share/textures/Particles.png b/share/textures/Particles.png new file mode 100644 index 0000000000000000000000000000000000000000..3d8695f66733f9003a6d3d96560e30e208f516c9 GIT binary patch literal 9884 zcmai(1yCG8x9=BNU?F&LcZV$Q?hqUT1YMlq?(XjH65QQg0|b{qfIx7U1c$xkzWVN~ zS9PmiPo01F^!&O{%T)DDok$fW8B}CKWB>qwDkm$c_Lc{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v!;vwR(Ks z%?l?e=$;l7aqo~TH%#Xcg4Gg`jJGZJovn}@od!vHl5hG#;R?%Ur4zRX6M#@n_azke} z^Wh3;h2a9JOPa4tePiK*kp)Qs6Tzv5F0RhS*9Ozu!9Jwt7vM8%W_!oUVZ;V7U_LA* z=^hLQez}_2;qtMne6d2l(!>C54{>>e^UHobO*VtO+Jpu?7sDC#Y~J&@ zWWF*1j2bF%1k-b2N+8#-RlxrCu2w3*fn*&phz1eE9HB?w4Akzu0sGMcp!D_*%_u+$ zfWZtvJu|Fw*~cgvBVDZa*%-1gTI^r^ebjy_f$|P47Yhw2Q%*1#*}`>uFnYhsW~rm3 z6H0%W9K*J91+|;2xaxM2U-nC@GzWz@2Q}P#tmR8QYoi>uV3g>Pf!5(et|kX=UdRyb z4SPPGfKo;i=b!gPydS9t>Z7203*ieOkQ+7`R+wwI_e=K?B7D{1iI9;Ih?l;877&1t zl3=TQ)zmh$-V>v_jDOQv<;5804vemmdyZ+OhvM`xc}8wET8= z3sW!idmsG_W>z|}%_~BBHjFKQ`HA|+dx1a=y?}sh_>u$&5+cPb0tWd&`bY;@<1^x{ zmz&2OImj#3bu(2ofP8ps#tvrLJt&4E0{My=^TA6$PfBdG>!3h4RPZuk5bAE`8gCzvuY6o$4wl}eQ z8?$K)JzUcpg8R?ye2bs056CO@BGd4aJb1ptG r3mcm$4-16X)Rcvf*BruYY|L#8F=Y=U{u%SuEkI66NwQYlDCoZcR}QZI literal 0 HcmV?d00001 diff --git a/share/textures/RobotTrooper.data b/share/textures/RobotTrooper.data new file mode 100644 index 0000000..fba6165 --- /dev/null +++ b/share/textures/RobotTrooper.data @@ -0,0 +1,7 @@ +{ + "TilesU": 8, + "TilesV": 4, + "InvertAlpha": 0, + "MinFilter": "Nearest", + "MagFilter": "Nearest" +} diff --git a/share/textures/RobotTrooper.plist b/share/textures/RobotTrooper.plist new file mode 100644 index 0000000..d3adf1b --- /dev/null +++ b/share/textures/RobotTrooper.plist @@ -0,0 +1,16 @@ + + + + + TilesU + 8 + TilesV + 4 + InvertAlpha + 0 + MinFilter + Nearest + MagFilter + Nearest + + diff --git a/share/textures/RobotTrooper.png b/share/textures/RobotTrooper.png new file mode 100644 index 0000000000000000000000000000000000000000..ee76d850b9919826b19a43cc95334f3f2714f443 GIT binary patch literal 12162 zcmb_?Wl&u~l;*?TEd+OWcXxsWcYVMkz{B0$-7N$N4nc#v2AAL-+%-77B{MZMwY6Kd zf3|P+SKWQS^PRq3*ZS6pQd5ybL;i>i007Vw4_f{{;XbPx98(b^UDSLGI`b zwgTA!$z8o1f#m$=AbSA7bLA{g!TGi&IrN@?PzahMWEcu*x{AOLVjqCMU!0p7GFtUj zPvLJyDm5ZBho>hj)M)Bnz}w=>ff%ID>-yINwqd4J4)o^154*)*ahq#z7i*J)E?h!k z+|@Zu4Nf2ij;1!{8^LAUjPiZ2(MQ*B7k^##DkpyUkI^(WwlS3AHjIf*fVj$^_j8+T zo_`7Oeb4m11}O#2i2(EBIKmSRZ^F`ZE;RmDHc*7JJbd^=T#AYIssj4tawpKjpklbw zH>%sAF+5@KfFf_!80~=Erm*8OF0n&+AcaaBJLU!|_TVEKDw*SOjhkuJbl&p0)*8Nf za2CmHw?>zJz3>Z9>|FhmYP4cgupA*Av17BkjW03-LRNNGzTzhWZk}`HJ zQJot<2)k?81TNpzW$kR$%LaQMwG1;Xr)r=^)d_H0-WPofh2Y|kuGweP-l{pxZ#T9beV`Ir#SbFsih+ak5yMB*1M(-!xL!uhETMA<^G} zXc^UScSh@3MqVDThb!!7T>ab^Weq9?C`q+N-4fI{U5OV| z$zBRqY~;zUcXz5-zdF9m&$!f);Qvlw_i!&OcOPKLzzHUn5JZsecwc;e;qq;%HZ4BUa)wbrTTT z_kt#hKHgQj6o5(5%>e2MOtMbp7IPVruut0BI5U3 zcyapT(o5Ef(aj^)6yKKu<3hmJX9-g=TZig>{{c^dn$Cmz2*A}6=ptxD?2i3L6f@@nrwUB= z+X$-8D}LYyOx+`Go3ZWuOUZ)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VoO8^urSGoCMp~{d0)5O}G;F3w?Q93Hqrc)0| zyJG->d%yU4S)AcM3y)1*Pd;tu@j*e!B8qR4NB&VgR|~>L`)KWzfD^&Auv^*3F-l?R9W=~bw3JVIT-Pyu;XX^!(>89M*ln_mjk=oG%Cf|0kCIgp0#0RM8 zhIp{-;m(keszJ3p7s-{0Yr_`Il|&%}Lh%AsA>i!<(k;{_5hOlJ0Lcy31~h75rI=SS z)FtPGQXQHhbTKJbRpWd;fC~wc8&=W{$)+Ez=K9Hqe&&UGIQ&=vKC>*)ZXD*LiH-8;lMH43k^<^K|EpN~bhus8p#76@hY)r<16 z$OAoaHTtqRp71I6LF9n|w!q7vk*4P}>6PhRFWEX-Cyzz z?Qrkpa)?|%E6-%Ys1mK`90;j-I|MJ>>Da(v9$}N)pC`Oo*$0I2{^ynS{}~;JAS6h| zf0?BD3*VJ#{_SlnoPlPpKo-k)0KD&71X$R4SvdJMIXDHm1q3;G-n)YA?4#)(i0=*` z{y6|WK~{olAWxv3t~AIV=->hZI{-L&c&AN&NdKQ4z5n5GaPl8aD^>niV0*A7$ja;g z5jc$wO8DJ@;9p=@kd>97nVqAJ8NkiK%*6$40eYXbWh^~R!#f4*vi$z%ozxfumqa}$<=JYu3#4%up>DiE4%9vaq2sn^1sQh z@8{^^YWBWedtV(cLH74W;UMQ^7v$s? + + + + TilesU + 4 + TilesV + 4 + InvertAlpha + 0 + + MinFilter + Linear + MagFilter + Linear + WrapU + Wrap + WrapV + Wrap + MinFilter + Nearest + MagFilter + Nearest + + diff --git a/share/textures/Scenery.png b/share/textures/Scenery.png new file mode 100644 index 0000000000000000000000000000000000000000..99ede6e1197d8752015db39b14a048e38a24d9cd GIT binary patch literal 6872 zcmbtZcQl+|w|=$Jf)FG`MAYarx*=LbCwi9&W<)m_U66(#L4+WBLK31gqeL&!dmk;L zGbF+YgSq^^^?hsIb?;jDk9*#CKWFc~o_+Rt&p+p!{k}9b(4?bbrvU(fPFqXe_`Hv} z5Gv3)wkg^7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O}_DFqwsJfS<-}$PbwABIo zi_xL*^LfId$baX6O3BGOoS!%lq6kR|Nl^#{E-Py9ASEU007f7nG7{3VGH?m5lbPD{ PVFB%X2I?hh51;-QTq_KV literal 0 HcmV?d00001 diff --git a/share/textures/StatusBars.data b/share/textures/StatusBars.data new file mode 100644 index 0000000..9b94ec7 --- /dev/null +++ b/share/textures/StatusBars.data @@ -0,0 +1,7 @@ +{ + "TilesU": 4, + "TilesV": 1, + "InvertAlpha": 0, + "MinFilter": "Nearest", + "MagFilter": "Nearest" +} diff --git a/share/textures/StatusBars.plist b/share/textures/StatusBars.plist new file mode 100644 index 0000000..148307a --- /dev/null +++ b/share/textures/StatusBars.plist @@ -0,0 +1,16 @@ + + + + + TilesU + 4 + TilesV + 1 + InvertAlpha + 0 + MinFilter + Nearest + MagFilter + Nearest + + diff --git a/share/textures/StatusBars.png b/share/textures/StatusBars.png new file mode 100644 index 0000000000000000000000000000000000000000..49abbc882fec837323d6422d2f6b9ae15358f6e3 GIT binary patch literal 5267 zcmai22QZvp*I&K&o*+^FM6_LHvC*RkK@cU{V%4?E>S3d^TJ#b%q9jUmg6O@(vRbf8 zB0)q#_#;vFUH@<1_nZ0Vo%!zboZq?UJimMHea_6iGv_848EVr}-=GEn0Cc)K8YTp- zN)Sd$aspOt2a6CCRe-me3qh+Agb`q*Q!Yd3kV7A6YXI=qPs#hr41$NsTgTE50H9&M z7NS{P_yqt!9~NS2fi!UlyzT9afVp`(-$n*|JKvUvy1@Yei-CPh%euXel*{cqKNxFl zZ=_glgw0)`Jd9f%g{XQrsh@+vEnkGWUS4S$x(<=CQwTXz#MH31e^5kh> zg*1wfsIfytX$FjsgyG(nP}ps^47t`pnP|oMJF|>7oCToGZje1Y?i!ClOg zavNp!ofK>bDnF9V)h*e6D_rG_zgV(-UjhHCyjlx3uN^>{Fsa2=Ue4pAEs#Iv^(@2i z&mod(Uc#;9G%O|VmX8w4l`QYyuDoTHqVnpSF5I{we%sh9;>28~OEPwxFP@hjzK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Tdoz zqnbIvGmSUEZxj!9ND#aR&QR*-Ub2zGH-BxpX7dSh+vC>WymTDDh5K#wta$OM*qw+s zWDn#wiXvETKyhf6+o|^a*60JJ4m1%}wB|1ee>8mqPN2xGHlKx)rvplw)F)sXggE9?W}GevwiFvYUL{iJsKT^{vvLj?K%sIfn@qtN z!iE{r)lf4fT+w8K=!y9lH5FKS4gt3PQJ4_62ObEh!;~8A@~&9D;AFjEzPw5>?&1@^ z&>`9QwdtESol#GG;6SHzTF+@8ca=ILjyoo9KT^TyoFebj!%YSE%;)`nb9W*FSlj>L z()z~&`nX3QaNh0Z?e8X*2)Bv=DNgi=_jUE_7y^zoiKc-sCF6g0J!3-IKI<6=Z%EsD zs?rXXwh)0>6WvKnsEF}jNg2@({E1(aN?4wKVsdJV#V2SRp`z|)eM7VWzC9YJ9Hl0d z006*W*C&9Zud@TvS=@;L0K(o@5C?+ArQ}UPQVW>_AGw0FLVc&OvT4 zh>=^6v!{iI8{FB;&kf-P0LyTiay#puJzo&&GoZMi+|If5p!bFPy zj)`=G!5|Kv-mVS+e=i3=KZK(jVaZNOcSxED6!zoCFZL%biIe^Z$p8B>bWu(t&WM z5t1Vf0RbUW;M*W+h%6y3;L`Ja5P|*RnjPfeZD0V=Ksfpna)Q*=061Jnhd2?|=>+lq z_Z$#uFbpIMg2{_JJ4wUDK_DkNad}x8Cvit7s5}q`m4nGiDg5~;Buxkl(A6~5s8hF( F{1==huz>&o literal 0 HcmV?d00001 diff --git a/share/textures/TowerBlock1.data b/share/textures/TowerBlock1.data new file mode 100644 index 0000000..1d5cade --- /dev/null +++ b/share/textures/TowerBlock1.data @@ -0,0 +1,9 @@ +{ + "TilesU": 4, + "TilesV": 4, + "InvertAlpha": 0, + "MinFilter": "Linear", + "MagFilter": "Linear", + "WrapU": "ClampToEdge", + "WrapV": "ClampToEdge" +} diff --git a/share/textures/TowerBlock1.plist b/share/textures/TowerBlock1.plist new file mode 100644 index 0000000..f969901 --- /dev/null +++ b/share/textures/TowerBlock1.plist @@ -0,0 +1,25 @@ + + + + + TilesU + 4 + TilesV + 4 + InvertAlpha + 0 + + MinFilter + Linear + MagFilter + Linear + WrapU + ClampToEdge + WrapV + ClampToEdge + MinFilter + Nearest + MagFilter + Nearest + + diff --git a/share/textures/TowerBlock1.png b/share/textures/TowerBlock1.png new file mode 100644 index 0000000000000000000000000000000000000000..67ec31b637cd1c6ae9bcc73865fa6dd2402bb2e6 GIT binary patch literal 7866 zcmc&(Wl)??lYek`f(5r=8{BQN;DH49#UTL}cftk&1h?QJEbbCCK#+t#PH-nU1b5fH z&3kok)zw|qeY~0Jo}QjxPxmv=hneb$)PAWyWI zaJ*gR?EfnNMSQFLnMeWCN?lnIK>V%nw&G-@2FF#!$O8cINdFSb_~N^J0C+;?uWRV} z+R}&7)g5Z*=w!?2>E~+8C}!p83;@3K2cK14&{~s}woJQC8V&7Q3yjyr#_g>!#l#W}b^`LnblBXa^j{UH&+YbJRN9xf!7FmHbGN4L&`p#;4W| z)ZT(UPCp_@oYH@M4fwzj&~`P9G2xuIS#QnVNPX}*YuJCQZuzspd21Mjd;M6(FDR|G zsRG5@f_0aojF-J_DWX})auUlyp3EcjN8fc^=$=RT`-?8fiOd}=5>v{m8NoSAt+!dNv{Qk;_g-RigA+yJi*gzqtP2F20ayny1g z?EAioca*nrLq>rdp7(>JFD4XpnnEIS79*UmgnTNcFHDnW4vOF5`<73KzDe6vsOwt$ zs;*TGl0BGw+tX%ma^isFR;0eQTZQj4beH8d#r-F!8#JXb)(RozV~yKk*x{wUA_}_| zF;CrIs(__6f=Lm{APViZj;}pwQ&T%NCaP1dYN@41i>suXpK8_14?nhYk1?EMey%7o zFbOvGQq7#Q{akl4P#sTzpovcvJzA<`|E93ozz`IrBoK3p$CGq8WdRve{?iemB>D$I z9{olBptVt__2jT;tigKMKCX0$|3pynHIep-v*PP&>KmUeT`k36yu{=D4ms9~_M{`0 zB>(-lwcxIj>FdLYg$_ zlM?;hKI<3(*?7F~D9hV2AHPwS(N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G^N4b(@F0mK0DJ8XdQ|EIp)6)nZCyMZp)LTwfSCVs+2a4i82vZQ)~I^rxB+Bn+z{U44~ zo}ow~4JiLQ_H?wfldyDhb+81yTr532pw^DaplxC}(CUy7iho1gp*|iUS6g?Gho`%v zE5I*O@+9IIiD3FS!UJmO>0{|`3&`0(t!x>!9iX024+p3#qv&%!&mG!NNHFui!Jf#E z^zgJqUNVr|BPhWqj%VMI`madwb5{gi3FXXOxswx7Oe^-~V zLB?q#;rd@bBt)&P#RUW{`9ZdVwpJj1ej8Dcm7Sm^$WBbePQcPqNSNPFjH@kZ1Gy}q Ms`OH^N*)sOA7JH(;Q#;t literal 0 HcmV?d00001 diff --git a/share/textures/Trees.data b/share/textures/Trees.data new file mode 100644 index 0000000..665f66a --- /dev/null +++ b/share/textures/Trees.data @@ -0,0 +1,9 @@ +{ + "TilesU": 2, + "TilesV": 1, + "InvertAlpha": 0, + "MinFilter": "Linear", + "MagFilter": "Linear", + "WrapU": "ClampToEdge", + "WrapV": "ClampToEdge" +} diff --git a/share/textures/Trees.plist b/share/textures/Trees.plist new file mode 100644 index 0000000..3c9b875 --- /dev/null +++ b/share/textures/Trees.plist @@ -0,0 +1,25 @@ + + + + + TilesU + 2 + TilesV + 1 + InvertAlpha + 0 + + MinFilter + Linear + MagFilter + Linear + WrapU + ClampToEdge + WrapV + ClampToEdge + MinFilter + Nearest + MagFilter + Nearest + + diff --git a/share/textures/Trees.png b/share/textures/Trees.png new file mode 100644 index 0000000000000000000000000000000000000000..f665ff6c444135ee45c422b2b522be5d27f1824f GIT binary patch literal 1128 zcmV-u1eg1XP)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2iXS# z6b%x*^!IfD00ZbrL_t(|+U=Y@ZZshbhB-z~@s%l3r2VQrLAodh$o-p%rkIE&82pDZ zgONsxHmjYn-v`?mc2kNGBSwrEF=E7s5yNO4z!hT$;Xl9Ms#kz;bMYbJ0T5!`D8vT< zdTG+Vf2x9F#SaJ)%3oeVAPda|VAD~9IB^J=s-V;s0CZqjNqmb4w?!SmSw>D?4R8g!1pq@KSi~ukRHv0P zkAT1q0+EQLd^H*Z3~4(6U?!+1yRkRf5&&EF)>x*{xaETti#frg26o3RiUzdt+9064F^l38{0Isj3zECr` zbx}TJA_(G{ncK_-fC>TE2dV{L4}g|YT*LF3HZua&CXo~X#zdH#?_0t{baNxcz#OQS z=P47cCjL?Y^kzO}pcVj%Q9!lGOSH3pPtgPGizUP_4QsuZdw+%_pp}JbpC76_Fc5IT zH_iL!{riFE^b%izpx}bfg6rCg0b@F8}}|0u}tM{r!(jk09H+a?dX-OfHDGT z^u`%ZQAu}{&yl8DL@}7A)dK`kNaAB!!~%zy0iaQ9xdMQ*JS%$vBbT0705H!X?OIB@ zoY*d^S{*6`5Cq$%^#lOWQDhatBLv6PFNmVn1c0tH zBpte1J9xxC!-yp@bt6lfA}Hc(0{|WlsXdGofF1+`LOv@3aw7ybT1q$0td7T_=|*k{ zvBGcdy_)9$TANfO0l;)ZXNsSsIkL74Z1w($IsX_O{mAxH8fyT^LpOqk0MHAex!}Fc zA517Vb^`f1sZFffnS_ST=3fqF9r$Rqfm`PTdK*l$j)r5OlN#9?K)d=@Fy_HgyMeVW z;YNP<^jkov11-=dm#2`f0zu=!LE$Un_f{V+{m?p2Rz|qNOW3K#gYO}Vf49**{ggKN z@$3Mguz5FMJQ@1^^|6!q0YGl>DgK54bnBoy`{R%J0lwy!D#(wq^zPN0{2wz?)>kPW|0|kc5piAuQ uwezBUj#nTke#oIO1z*+v7%^h3Hhut=W#sI{TlI|q0000 +#endif + +static const int halfShift = 10; /* used for shifting by 10 bits */ + +static const UTF32 halfBase = 0x0010000UL; +static const UTF32 halfMask = 0x3FFUL; + +#define UNI_SUR_HIGH_START (UTF32)0xD800 +#define UNI_SUR_HIGH_END (UTF32)0xDBFF +#define UNI_SUR_LOW_START (UTF32)0xDC00 +#define UNI_SUR_LOW_END (UTF32)0xDFFF +#define false 0 +#define true 1 + +/* --------------------------------------------------------------------- */ + +ConversionResult ConvertUTF32toUTF16 ( + const UTF32** sourceStart, const UTF32* sourceEnd, + UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags) { + ConversionResult result = conversionOK; + const UTF32* source = *sourceStart; + UTF16* target = *targetStart; + while (source < sourceEnd) { + UTF32 ch; + if (target >= targetEnd) { + result = targetExhausted; break; + } + ch = *source++; + if (ch <= UNI_MAX_BMP) { /* Target is a character <= 0xFFFF */ + /* UTF-16 surrogate values are illegal in UTF-32; 0xffff or 0xfffe are both reserved values */ + if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_LOW_END) { + if (flags == strictConversion) { + --source; /* return to the illegal value itself */ + result = sourceIllegal; + break; + } else { + *target++ = UNI_REPLACEMENT_CHAR; + } + } else { + *target++ = (UTF16)ch; /* normal case */ + } + } else if (ch > UNI_MAX_LEGAL_UTF32) { + if (flags == strictConversion) { + result = sourceIllegal; + } else { + *target++ = UNI_REPLACEMENT_CHAR; + } + } else { + /* target is a character in range 0xFFFF - 0x10FFFF. */ + if (target + 1 >= targetEnd) { + --source; /* Back up source pointer! */ + result = targetExhausted; break; + } + ch -= halfBase; + *target++ = (UTF16)((ch >> halfShift) + UNI_SUR_HIGH_START); + *target++ = (UTF16)((ch & halfMask) + UNI_SUR_LOW_START); + } + } + *sourceStart = source; + *targetStart = target; + return result; +} + +/* --------------------------------------------------------------------- */ + +ConversionResult ConvertUTF16toUTF32 ( + const UTF16** sourceStart, const UTF16* sourceEnd, + UTF32** targetStart, UTF32* targetEnd, ConversionFlags flags) { + ConversionResult result = conversionOK; + const UTF16* source = *sourceStart; + UTF32* target = *targetStart; + UTF32 ch, ch2; + while (source < sourceEnd) { + const UTF16* oldSource = source; /* In case we have to back up because of target overflow. */ + ch = *source++; + /* If we have a surrogate pair, convert to UTF32 first. */ + if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_HIGH_END) { + /* If the 16 bits following the high surrogate are in the source buffer... */ + if (source < sourceEnd) { + ch2 = *source; + /* If it's a low surrogate, convert to UTF32. */ + if (ch2 >= UNI_SUR_LOW_START && ch2 <= UNI_SUR_LOW_END) { + ch = ((ch - UNI_SUR_HIGH_START) << halfShift) + + (ch2 - UNI_SUR_LOW_START) + halfBase; + ++source; + } else if (flags == strictConversion) { /* it's an unpaired high surrogate */ + --source; /* return to the illegal value itself */ + result = sourceIllegal; + break; + } + } else { /* We don't have the 16 bits following the high surrogate. */ + --source; /* return to the high surrogate */ + result = sourceExhausted; + break; + } + } else if (flags == strictConversion) { + /* UTF-16 surrogate values are illegal in UTF-32 */ + if (ch >= UNI_SUR_LOW_START && ch <= UNI_SUR_LOW_END) { + --source; /* return to the illegal value itself */ + result = sourceIllegal; + break; + } + } + if (target >= targetEnd) { + source = oldSource; /* Back up source pointer! */ + result = targetExhausted; break; + } + *target++ = ch; + } + *sourceStart = source; + *targetStart = target; +#ifdef CVTUTF_DEBUG +if (result == sourceIllegal) { + fprintf(stderr, "ConvertUTF16toUTF32 illegal seq 0x%04x,%04x\n", ch, ch2); + fflush(stderr); +} +#endif + return result; +} + +/* --------------------------------------------------------------------- */ + +/* + * Index into the table below with the first byte of a UTF-8 sequence to + * get the number of trailing bytes that are supposed to follow it. + * Note that *legal* UTF-8 values can't have 4 or 5-bytes. The table is + * left as-is for anyone who may want to do such conversion, which was + * allowed in earlier algorithms. + */ +static const char trailingBytesForUTF8[256] = { + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, + 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, 3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5 +}; + +/* + * Magic values subtracted from a buffer value during UTF8 conversion. + * This table contains as many values as there might be trailing bytes + * in a UTF-8 sequence. + */ +static const UTF32 offsetsFromUTF8[6] = { 0x00000000UL, 0x00003080UL, 0x000E2080UL, + 0x03C82080UL, 0xFA082080UL, 0x82082080UL }; + +/* + * Once the bits are split out into bytes of UTF-8, this is a mask OR-ed + * into the first byte, depending on how many bytes follow. There are + * as many entries in this table as there are UTF-8 sequence types. + * (I.e., one byte sequence, two byte... etc.). Remember that sequencs + * for *legal* UTF-8 will be 4 or fewer bytes total. + */ +static const UTF8 firstByteMark[7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC }; + +/* --------------------------------------------------------------------- */ + +/* The interface converts a whole buffer to avoid function-call overhead. + * Constants have been gathered. Loops & conditionals have been removed as + * much as possible for efficiency, in favor of drop-through switches. + * (See "Note A" at the bottom of the file for equivalent code.) + * If your compiler supports it, the "isLegalUTF8" call can be turned + * into an inline function. + */ + +/* --------------------------------------------------------------------- */ + +ConversionResult ConvertUTF16toUTF8 ( + const UTF16** sourceStart, const UTF16* sourceEnd, + UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags) { + ConversionResult result = conversionOK; + const UTF16* source = *sourceStart; + UTF8* target = *targetStart; + while (source < sourceEnd) { + UTF32 ch; + unsigned short bytesToWrite = 0; + const UTF32 byteMask = 0xBF; + const UTF32 byteMark = 0x80; + const UTF16* oldSource = source; /* In case we have to back up because of target overflow. */ + ch = *source++; + /* If we have a surrogate pair, convert to UTF32 first. */ + if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_HIGH_END) { + /* If the 16 bits following the high surrogate are in the source buffer... */ + if (source < sourceEnd) { + UTF32 ch2 = *source; + /* If it's a low surrogate, convert to UTF32. */ + if (ch2 >= UNI_SUR_LOW_START && ch2 <= UNI_SUR_LOW_END) { + ch = ((ch - UNI_SUR_HIGH_START) << halfShift) + + (ch2 - UNI_SUR_LOW_START) + halfBase; + ++source; + } else if (flags == strictConversion) { /* it's an unpaired high surrogate */ + --source; /* return to the illegal value itself */ + result = sourceIllegal; + break; + } + } else { /* We don't have the 16 bits following the high surrogate. */ + --source; /* return to the high surrogate */ + result = sourceExhausted; + break; + } + } else if (flags == strictConversion) { + /* UTF-16 surrogate values are illegal in UTF-32 */ + if (ch >= UNI_SUR_LOW_START && ch <= UNI_SUR_LOW_END) { + --source; /* return to the illegal value itself */ + result = sourceIllegal; + break; + } + } + /* Figure out how many bytes the result will require */ + if (ch < (UTF32)0x80) { bytesToWrite = 1; + } else if (ch < (UTF32)0x800) { bytesToWrite = 2; + } else if (ch < (UTF32)0x10000) { bytesToWrite = 3; + } else if (ch < (UTF32)0x110000) { bytesToWrite = 4; + } else { bytesToWrite = 3; + ch = UNI_REPLACEMENT_CHAR; + } + + target += bytesToWrite; + if (target > targetEnd) { + source = oldSource; /* Back up source pointer! */ + target -= bytesToWrite; result = targetExhausted; break; + } + switch (bytesToWrite) { /* note: everything falls through. */ + case 4: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; + case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; + case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; + case 1: *--target = (UTF8)(ch | firstByteMark[bytesToWrite]); + } + target += bytesToWrite; + } + *sourceStart = source; + *targetStart = target; + return result; +} + +/* --------------------------------------------------------------------- */ + +/* + * Utility routine to tell whether a sequence of bytes is legal UTF-8. + * This must be called with the length pre-determined by the first byte. + * If not calling this from ConvertUTF8to*, then the length can be set by: + * length = trailingBytesForUTF8[*source]+1; + * and the sequence is illegal right away if there aren't that many bytes + * available. + * If presented with a length > 4, this returns false. The Unicode + * definition of UTF-8 goes up to 4-byte sequences. + */ + +static bool isLegalUTF8(const UTF8 *source, int length) { + UTF8 a; + const UTF8 *srcptr = source+length; + switch (length) { + default: return false; + /* Everything else falls through when "true"... */ + case 4: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return false; + case 3: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return false; + case 2: if ((a = (*--srcptr)) > 0xBF) return false; + + switch (*source) { + /* no fall-through in this inner switch */ + case 0xE0: if (a < 0xA0) return false; break; + case 0xED: if (a > 0x9F) return false; break; + case 0xF0: if (a < 0x90) return false; break; + case 0xF4: if (a > 0x8F) return false; break; + default: if (a < 0x80) return false; + } + + case 1: if (*source >= 0x80 && *source < 0xC2) return false; + } + if (*source > 0xF4) return false; + return true; +} + +/* --------------------------------------------------------------------- */ + +/* + * Exported function to return whether a UTF-8 sequence is legal or not. + * This is not used here; it's just exported. + */ +bool isLegalUTF8Sequence(const UTF8 *source, const UTF8 *sourceEnd) { + int length = trailingBytesForUTF8[*source]+1; + if (source+length > sourceEnd) { + return false; + } + return isLegalUTF8(source, length); +} + +/* --------------------------------------------------------------------- */ + +ConversionResult ConvertUTF8toUTF16 ( + const UTF8** sourceStart, const UTF8* sourceEnd, + UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags) { + ConversionResult result = conversionOK; + const UTF8* source = *sourceStart; + UTF16* target = *targetStart; + while (source < sourceEnd) { + UTF32 ch = 0; + unsigned short extraBytesToRead = trailingBytesForUTF8[*source]; + if (source + extraBytesToRead >= sourceEnd) { + result = sourceExhausted; break; + } + /* Do this check whether lenient or strict */ + if (! isLegalUTF8(source, extraBytesToRead+1)) { + result = sourceIllegal; + break; + } + /* + * The cases all fall through. See "Note A" below. + */ + switch (extraBytesToRead) { + case 5: ch += *source++; ch <<= 6; /* remember, illegal UTF-8 */ + case 4: ch += *source++; ch <<= 6; /* remember, illegal UTF-8 */ + case 3: ch += *source++; ch <<= 6; + case 2: ch += *source++; ch <<= 6; + case 1: ch += *source++; ch <<= 6; + case 0: ch += *source++; + } + ch -= offsetsFromUTF8[extraBytesToRead]; + + if (target >= targetEnd) { + source -= (extraBytesToRead+1); /* Back up source pointer! */ + result = targetExhausted; break; + } + if (ch <= UNI_MAX_BMP) { /* Target is a character <= 0xFFFF */ + /* UTF-16 surrogate values are illegal in UTF-32 */ + if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_LOW_END) { + if (flags == strictConversion) { + source -= (extraBytesToRead+1); /* return to the illegal value itself */ + result = sourceIllegal; + break; + } else { + *target++ = UNI_REPLACEMENT_CHAR; + } + } else { + *target++ = (UTF16)ch; /* normal case */ + } + } else if (ch > UNI_MAX_UTF16) { + if (flags == strictConversion) { + result = sourceIllegal; + source -= (extraBytesToRead+1); /* return to the start */ + break; /* Bail out; shouldn't continue */ + } else { + *target++ = UNI_REPLACEMENT_CHAR; + } + } else { + /* target is a character in range 0xFFFF - 0x10FFFF. */ + if (target + 1 >= targetEnd) { + source -= (extraBytesToRead+1); /* Back up source pointer! */ + result = targetExhausted; break; + } + ch -= halfBase; + *target++ = (UTF16)((ch >> halfShift) + UNI_SUR_HIGH_START); + *target++ = (UTF16)((ch & halfMask) + UNI_SUR_LOW_START); + } + } + *sourceStart = source; + *targetStart = target; + return result; +} + +/* --------------------------------------------------------------------- */ + +ConversionResult ConvertUTF32toUTF8 ( + const UTF32** sourceStart, const UTF32* sourceEnd, + UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags) { + ConversionResult result = conversionOK; + const UTF32* source = *sourceStart; + UTF8* target = *targetStart; + while (source < sourceEnd) { + UTF32 ch; + unsigned short bytesToWrite = 0; + const UTF32 byteMask = 0xBF; + const UTF32 byteMark = 0x80; + ch = *source++; + if (flags == strictConversion ) { + /* UTF-16 surrogate values are illegal in UTF-32 */ + if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_LOW_END) { + --source; /* return to the illegal value itself */ + result = sourceIllegal; + break; + } + } + /* + * Figure out how many bytes the result will require. Turn any + * illegally large UTF32 things (> Plane 17) into replacement chars. + */ + if (ch < (UTF32)0x80) { bytesToWrite = 1; + } else if (ch < (UTF32)0x800) { bytesToWrite = 2; + } else if (ch < (UTF32)0x10000) { bytesToWrite = 3; + } else if (ch <= UNI_MAX_LEGAL_UTF32) { bytesToWrite = 4; + } else { bytesToWrite = 3; + ch = UNI_REPLACEMENT_CHAR; + result = sourceIllegal; + } + + target += bytesToWrite; + if (target > targetEnd) { + --source; /* Back up source pointer! */ + target -= bytesToWrite; result = targetExhausted; break; + } + switch (bytesToWrite) { /* note: everything falls through. */ + case 4: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; + case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; + case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; + case 1: *--target = (UTF8) (ch | firstByteMark[bytesToWrite]); + } + target += bytesToWrite; + } + *sourceStart = source; + *targetStart = target; + return result; +} + +/* --------------------------------------------------------------------- */ + +ConversionResult ConvertUTF8toUTF32 ( + const UTF8** sourceStart, const UTF8* sourceEnd, + UTF32** targetStart, UTF32* targetEnd, ConversionFlags flags) { + ConversionResult result = conversionOK; + const UTF8* source = *sourceStart; + UTF32* target = *targetStart; + while (source < sourceEnd) { + UTF32 ch = 0; + unsigned short extraBytesToRead = trailingBytesForUTF8[*source]; + if (source + extraBytesToRead >= sourceEnd) { + result = sourceExhausted; break; + } + /* Do this check whether lenient or strict */ + if (! isLegalUTF8(source, extraBytesToRead+1)) { + result = sourceIllegal; + break; + } + /* + * The cases all fall through. See "Note A" below. + */ + switch (extraBytesToRead) { + case 5: ch += *source++; ch <<= 6; + case 4: ch += *source++; ch <<= 6; + case 3: ch += *source++; ch <<= 6; + case 2: ch += *source++; ch <<= 6; + case 1: ch += *source++; ch <<= 6; + case 0: ch += *source++; + } + ch -= offsetsFromUTF8[extraBytesToRead]; + + if (target >= targetEnd) { + source -= (extraBytesToRead+1); /* Back up the source pointer! */ + result = targetExhausted; break; + } + if (ch <= UNI_MAX_LEGAL_UTF32) { + /* + * UTF-16 surrogate values are illegal in UTF-32, and anything + * over Plane 17 (> 0x10FFFF) is illegal. + */ + if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_LOW_END) { + if (flags == strictConversion) { + source -= (extraBytesToRead+1); /* return to the illegal value itself */ + result = sourceIllegal; + break; + } else { + *target++ = UNI_REPLACEMENT_CHAR; + } + } else { + *target++ = ch; + } + } else { /* i.e., ch > UNI_MAX_LEGAL_UTF32 */ + result = sourceIllegal; + *target++ = UNI_REPLACEMENT_CHAR; + } + } + *sourceStart = source; + *targetStart = target; + return result; +} + +/* --------------------------------------------------------------------- + + Note A. + The fall-through switches in UTF-8 reading code save a + temp variable, some decrements & conditionals. The switches + are equivalent to the following loop: + { + int tmpBytesToRead = extraBytesToRead+1; + do { + ch += *source++; + --tmpBytesToRead; + if (tmpBytesToRead) ch <<= 6; + } while (tmpBytesToRead > 0); + } + In UTF-8 writing code, the switches on "bytesToWrite" are + similarly unrolled loops. + + --------------------------------------------------------------------- */ diff --git a/src/ConvertUTF.h b/src/ConvertUTF.h new file mode 100644 index 0000000..f3a0710 --- /dev/null +++ b/src/ConvertUTF.h @@ -0,0 +1,158 @@ + +#ifndef _CONVERTUTF_H_ +#define _CONVERTUTF_H_ + +/* + * Copyright 2001-2004 Unicode, Inc. + * + * Disclaimer + * + * This source code is provided as is by Unicode, Inc. No claims are + * made as to fitness for any particular purpose. No warranties of any + * kind are expressed or implied. The recipient agrees to determine + * applicability of information provided. If this file has been + * purchased on magnetic or optical media from Unicode, Inc., the + * sole remedy for any claim will be exchange of defective media + * within 90 days of receipt. + * + * Limitations on Rights to Redistribute This Code + * + * Unicode, Inc. hereby grants the right to freely use the information + * supplied in this file in the creation of products supporting the + * Unicode Standard, and to make copies of this file in any form + * for internal or external distribution as long as this notice + * remains attached. + */ + +/* --------------------------------------------------------------------- + + Conversions between UTF32, UTF-16, and UTF-8. Header file. + + Several funtions are included here, forming a complete set of + conversions between the three formats. UTF-7 is not included + here, but is handled in a separate source file. + + Each of these routines takes pointers to input buffers and output + buffers. The input buffers are const. + + Each routine converts the text between *sourceStart and sourceEnd, + putting the result into the buffer between *targetStart and + targetEnd. Note: the end pointers are *after* the last item: e.g. + *(sourceEnd - 1) is the last item. + + The return result indicates whether the conversion was successful, + and if not, whether the problem was in the source or target buffers. + (Only the first encountered problem is indicated.) + + After the conversion, *sourceStart and *targetStart are both + updated to point to the end of last text successfully converted in + the respective buffers. + + Input parameters: + sourceStart - pointer to a pointer to the source buffer. + The contents of this are modified on return so that + it points at the next thing to be converted. + targetStart - similarly, pointer to pointer to the target buffer. + sourceEnd, targetEnd - respectively pointers to the ends of the + two buffers, for overflow checking only. + + These conversion functions take a ConversionFlags argument. When this + flag is set to strict, both irregular sequences and isolated surrogates + will cause an error. When the flag is set to lenient, both irregular + sequences and isolated surrogates are converted. + + Whether the flag is strict or lenient, all illegal sequences will cause + an error return. This includes sequences such as: , , + or in UTF-8, and values above 0x10FFFF in UTF-32. Conformant code + must check for illegal sequences. + + When the flag is set to lenient, characters over 0x10FFFF are converted + to the replacement character; otherwise (when the flag is set to strict) + they constitute an error. + + Output parameters: + The value "sourceIllegal" is returned from some routines if the input + sequence is malformed. When "sourceIllegal" is returned, the source + value will point to the illegal value that caused the problem. E.g., + in UTF-8 when a sequence is malformed, it points to the start of the + malformed sequence. + + Author: Mark E. Davis, 1994. + Rev History: Rick McGowan, fixes & updates May 2001. + Fixes & updates, Sept 2001. + +------------------------------------------------------------------------ */ + +/* --------------------------------------------------------------------- + The following 4 definitions are compiler-specific. + The C standard does not guarantee that wchar_t has at least + 16 bits, so wchar_t is no less portable than unsigned short! + All should be unsigned values to avoid sign extension during + bit mask & shift operations. +------------------------------------------------------------------------ */ + +#include +#include + +typedef uint32_t UTF32; /* exactly 32 bits */ +typedef uint16_t UTF16; /* exactly 16 bits */ +typedef uint8_t UTF8; /* exactly 8 bits */ + +/* Some fundamental constants */ +#define UNI_REPLACEMENT_CHAR (UTF32)0x0000FFFD +#define UNI_MAX_BMP (UTF32)0x0000FFFF +#define UNI_MAX_UTF16 (UTF32)0x0010FFFF +#define UNI_MAX_UTF32 (UTF32)0x7FFFFFFF +#define UNI_MAX_LEGAL_UTF32 (UTF32)0x0010FFFF + +typedef enum { + conversionOK, /* conversion successful */ + sourceExhausted, /* partial character in source, but hit end */ + targetExhausted, /* insuff. room in target for conversion */ + sourceIllegal /* source sequence is illegal/malformed */ +} ConversionResult; + +typedef enum { + strictConversion = 0, + lenientConversion +} ConversionFlags; + +/* This is for C++ and does no harm in C */ +#ifdef __cplusplus +extern "C" { +#endif + +ConversionResult ConvertUTF8toUTF16 ( + const UTF8** sourceStart, const UTF8* sourceEnd, + UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags); + +ConversionResult ConvertUTF16toUTF8 ( + const UTF16** sourceStart, const UTF16* sourceEnd, + UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags); + +ConversionResult ConvertUTF8toUTF32 ( + const UTF8** sourceStart, const UTF8* sourceEnd, + UTF32** targetStart, UTF32* targetEnd, ConversionFlags flags); + +ConversionResult ConvertUTF32toUTF8 ( + const UTF32** sourceStart, const UTF32* sourceEnd, + UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags); + +ConversionResult ConvertUTF16toUTF32 ( + const UTF16** sourceStart, const UTF16* sourceEnd, + UTF32** targetStart, UTF32* targetEnd, ConversionFlags flags); + +ConversionResult ConvertUTF32toUTF16 ( + const UTF32** sourceStart, const UTF32* sourceEnd, + UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags); + +bool isLegalUTF8Sequence(const UTF8 *source, const UTF8 *sourceEnd); + +#ifdef __cplusplus +} +#endif + +/* --------------------------------------------------------------------- */ + +#endif // _CONVERTUTF_H_ + diff --git a/src/Makefile.am b/src/Makefile.am index a43fe6c..a026f96 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,6 +1,58 @@ -bin_PROGRAMS = yoink +noinst_LIBRARIES = libdc.a -yoink_SOURCES = yoink.cc -yoink_LDFLAGS = -lstdc++ +libdc_a_SOURCES = \ + ConvertUTF.c \ + ConvertUTF.h \ + deserializer.cc \ + deserializer.hh \ + dispatcher.cc \ + dispatcher.hh \ + engine.cc \ + engine.hh \ + fastevents.c \ + fastevents.h \ + math.cc \ + math.hh \ + matrix.hh \ + opengl.hh \ + quaternion.hh \ + random.cc \ + random.hh \ + rectangle.cc \ + rectangle.hh \ + serializable.cc \ + serializable.hh \ + serializer.cc \ + serializer.hh \ + settings.cc \ + settings.hh \ + singleton.hh \ + stringtools.cc \ + stringtools.hh \ + texture.cc \ + texture.hh \ + thread.hh \ + timer.cc \ + timer.hh \ + vector.hh \ + video.cc \ + video.hh \ + $(ENDLIST) + +libdc_a_CPPFLAGS = -I/usr/include/SDL -I$(top_srcdir)/yajl/src -O3 +#libdc_a_LDFLAGS = -lstdc++ -lSDL_image -lSDL_sound +libdc_a_LIBADD = $(top_srcdir)/yajl/libyajl.a + + +bin_PROGRAMS = yoink + +yoink_SOURCES = \ + YoinkApp.cc \ + YoinkApp.hh \ + $(ENDLIST) + +yoink_CPPFLAGS = -I/usr/include/SDL -O3 +#yoink_LDFLAGS = -lstdc++ -lSDL_image -lSDL_sound +yoink_LDADD = libdc.a ../yajl/libyajl.a diff --git a/src/YoinkApp.cc b/src/YoinkApp.cc new file mode 100644 index 0000000..64decfb --- /dev/null +++ b/src/YoinkApp.cc @@ -0,0 +1,182 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#include +#include + +#include + +#include "opengl.hh" +#include "video.hh" + +#include "vector.hh" + +#include "YoinkApp.hh" + + +YoinkApp::YoinkApp(int argc, char* argv[]) + : dc::engine("Yoink "VERSION, argc, argv, "yoinkrc") +{ + std::cout << "Yoink "VERSION << std::endl + << "Compiled " << __TIME__ " " __DATE__ << std::endl + << "Send requests, patches, and bug reports to <" PACKAGE_BUGREPORT + << ">." << std::endl << std::endl; + + state = 0.0; + + glEnable(GL_TEXTURE_2D); + + heroineTexture = new dc::texture("Heroine.png"); + + glShadeModel(GL_SMOOTH); + //glEnable(GL_DEPTH_TEST); + + // Enable transparency: + glEnable(GL_BLEND); + glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + + glLoadIdentity(); + +} + +YoinkApp::~YoinkApp() +{ + delete heroineTexture; + std::cout << "Goodbye..." << std::endl; +} + + +void YoinkApp::update(double t, double dt) +{ + //dt *= 0.1; + + prevstate = state; + state += dt; +} + +void drawrect(dc::scalar a, dc::scalar b, dc::scalar c, dc::scalar d) +{ + glBegin(GL_QUADS); + glTexCoord2f(1.0, 1.0); + glVertex3d(a, d, 0.0); + glTexCoord2f(1.0, 0.0); + glVertex3d(a, b, 0.0); + glTexCoord2f(0.0, 0.0); + glVertex3d(c, b, 0.0); + glTexCoord2f(0.0, 1.0); + glVertex3d(c, d, 0.0); + glEnd(); +} + +void YoinkApp::draw(double alpha) +{ + static dc::vector3 c1 = dc::vector3::random(0.0, 1.0); + static dc::vector3 c2 = dc::vector3::random(0.0, 1.0); + + glClearColor(1.0, 0.0, 0.0, 1.0); + glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT); + + double drawstate = state * alpha + prevstate * (1.0 - alpha); + double sinstate = std::sin(drawstate); + double cosstate = std::cos(drawstate); + + glBindTexture(GL_TEXTURE_2D, 0); + + glColor3dv(c1.array); + drawrect(-cosstate, -sinstate, sinstate, cosstate); + glColor3dv(c2.array); + drawrect(0.0, 0.0, sinstate, cosstate); + + glColor4f(1.0, 1.0, 1.0, 1.0); + + heroineTexture->bind(); + + glBegin(GL_QUADS); + glTexCoord2f(0.0, 0.0); + glVertex3f(0.0, 0.0, 0.0); + glTexCoord2f(1.0/8.0, 0.0); + glVertex3f(1.0, 0.0, 0.0); + glTexCoord2f(1.0/8.0, 1.0/4.0); + glVertex3f(1.0, 1.0, 0.0); + glTexCoord2f(0.0, 1.0/4.0); + glVertex3f(0.0, 1.0, 0.0); + glEnd(); + + glFlush(); +} + +void YoinkApp::dispatchEvent(const SDL_Event& event) +{ + switch (event.type) + { + case SDL_KEYDOWN: + if (event.key.keysym.sym == SDLK_ESCAPE) + { + stop(); + } + else if (event.key.keysym.sym == SDLK_f) + { + getVideo().toggleFull(); + } + break; + + case SDL_QUIT: + stop(); + break; + } +} + + +#include "dispatcher.hh" + +class Foo : public dc::notification +{ +public: + static void func(const dc::notification& meh) + { + std::cout << "func: " << std::endl; + } + + void snap(int zzz, const dc::notification& nice, float lean) + { + std::cout << "snap: " << zzz << "," << lean << std::endl; + } +}; + +void MyHandler(const dc::notification& cool) +{ + std::cout << "MyHandler with a notification" << std::endl; +} + + +int main(int argc, char* argv[]) +{ + YoinkApp app(argc, argv); + return app.run(); +} + diff --git a/src/YoinkApp.hh b/src/YoinkApp.hh new file mode 100644 index 0000000..69b53d9 --- /dev/null +++ b/src/YoinkApp.hh @@ -0,0 +1,59 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#ifndef _YOINKAPP_HH_ +#define _YOINKAPP_HH_ + +#include +#include + +#include "engine.hh" + +#include "texture.hh" + + +class YoinkApp : public dc::engine +{ +public: + YoinkApp(int argc, char* argv[]); + ~YoinkApp(); + +private: + void update(double t, double dt); + void draw(double alpha); + void dispatchEvent(const SDL_Event& event); + + dc::texture* heroineTexture; + + double state; + double prevstate; +}; + + +#endif // _YOINKAPP_HH_ + diff --git a/src/deserializer.cc b/src/deserializer.cc new file mode 100644 index 0000000..abb6d01 --- /dev/null +++ b/src/deserializer.cc @@ -0,0 +1,243 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#include +#include + +#include + +#include "serializable.hh" +#include "deserializer.hh" + + +namespace dc { + + +class deserializer_impl +{ +public: + deserializer_impl(const std::string& filePath, bool comments = false, + bool check = false) + { + std::ifstream* input = new std::ifstream(filePath.c_str()); + init(*input, true, comments, check); + } + + deserializer_impl(std::istream& input, bool comments = false, + bool check = false) + { + init(input, false, comments, check); + } + + ~deserializer_impl() + { + while (!parsed.empty()) + { + delete parsed.front(); + parsed.pop(); + } + + if (deleteWhenDone) + { + delete in; + } + yajl_free(hand); + } + + void throwError() + { + unsigned char* errorMsg = yajl_get_error(hand, 0, 0, 0); + deserializer::parser_error error((char*)errorMsg); + yajl_free_error(hand, errorMsg); + throw error; + } + + + static int parsedNull(void* ctx) + { + ((deserializer_impl*)ctx)->parsed.push(new null); + return 1; + } + + static int parsedBoolean(void* ctx, int value) + { + ((deserializer_impl*)ctx)->parsed.push(new wrapped_boolean(value)); + return 1; + } + + static int parsedInteger(void* ctx, long value) + { + ((deserializer_impl*)ctx)->parsed.push(new wrapped_integer(value)); + return 1; + } + + static int parsedFloat(void* ctx, double value) + { + ((deserializer_impl*)ctx)->parsed.push(new wrapped_real(value)); + return 1; + } + + static int parsedString(void* ctx, const unsigned char* value, + unsigned length) + { + wrapped_string* parsed = new wrapped_string(std::string((char*)value, + length)); + ((deserializer_impl*)ctx)->parsed.push(parsed); + return 1; + } + + static int parsedBeginMap(void* ctx) + { + ((deserializer_impl*)ctx)->parsed.push(new wrapped_dictionary); + } + + static int parsedMapKey(void* ctx, const unsigned char* value, + unsigned length) + { + return parsedString(ctx, value, length); + } + + static int parsedEndMap(void* ctx) + { + ((deserializer_impl*)ctx)->parsed.push(0); + return 1; + } + + static int parsedBeginArray(void* ctx) + { + ((deserializer_impl*)ctx)->parsed.push(new wrapped_array); + return 1; + } + + static int parsedEndArray(void* ctx) + { + ((deserializer_impl*)ctx)->parsed.push(0); + return 1; + } + + + void parse() + { + unsigned char buffer[4096]; + + yajl_status stat; + + while (parsed.empty() && in->good()) + { + in->read((char*)buffer, sizeof(buffer)); + unsigned readIn = in->gcount(); + + if (readIn > 0) + { + stat = yajl_parse(hand, buffer, readIn); + } + else + { + stat = yajl_parse_complete(hand); + } + + if (stat != yajl_status_ok && + stat != yajl_status_insufficient_data) + { + throwError(); + } + } + } + + + yajl_handle hand; + + std::istream* in; + bool deleteWhenDone; + + std::queue parsed; + +private: + void init(std::istream& input, bool deleteIn, bool comments, bool check) + { + const yajl_callbacks callbacks = + { + deserializer_impl::parsedNull, + deserializer_impl::parsedBoolean, + deserializer_impl::parsedInteger, + deserializer_impl::parsedFloat, + 0, + deserializer_impl::parsedString, + deserializer_impl::parsedBeginMap, + deserializer_impl::parsedMapKey, + deserializer_impl::parsedEndMap, + deserializer_impl::parsedBeginArray, + deserializer_impl::parsedEndArray + }; + + in = &input; + deleteWhenDone = deleteIn; + + yajl_parser_config config = {comments, check}; + hand = yajl_alloc(&callbacks, &config, NULL, this); + } +}; + + +deserializer::deserializer(const std::string& filePath, bool comments, + bool check) : impl(new deserializer_impl(filePath, comments, check)) {} + +deserializer::deserializer(std::istream& input, bool comments, bool check) : + impl(new deserializer_impl(input, comments, check)) {} + + +serializable_ptr deserializer::deserialize() +{ + serializable* ptr = pullNext(); + if (ptr) + { + ptr->deserialize(*this); + } + return serializable_ptr(ptr); +} + + +serializable* deserializer::pullNext() +{ + impl->parse(); + if (!impl->parsed.empty()) + { + serializable* ptr = impl->parsed.front(); + return ptr; + } + return 0; +} + +void deserializer::pop() +{ + impl->parsed.pop(); +} + + +} // namespace dc + diff --git a/src/deserializer.hh b/src/deserializer.hh new file mode 100644 index 0000000..e424849 --- /dev/null +++ b/src/deserializer.hh @@ -0,0 +1,79 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#ifndef _DESERIALIZER_HH_ +#define _DESERIALIZER_HH_ + +/** + * @file deserializer.hh + * Deserialize structures and types from input on a stream. + */ + +#include +#include +#include + +#include + + +namespace dc { + + +class serializable; +typedef boost::shared_ptr serializable_ptr; + +class deserializer_impl; + +class deserializer +{ +public: + deserializer(const std::string& filePath, bool comments = false, + bool check = false); + deserializer(std::istream& input, bool comments = false, bool check = false); + + serializable_ptr deserialize(); + + serializable* pullNext(); + void pop(); + + struct parser_error : std::runtime_error + { + explicit parser_error(const std::string& what_arg) : + std::runtime_error(what_arg) {} + }; + +private: + boost::shared_ptr impl; +}; + + +} // namespace dc + + +#endif // _DESERIALIZER_HH_ + diff --git a/src/dispatcher.cc b/src/dispatcher.cc new file mode 100644 index 0000000..509b69d --- /dev/null +++ b/src/dispatcher.cc @@ -0,0 +1,135 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#include + +#include "dispatcher.hh" + + +namespace dc { + + +notification::~notification() {} + + +class dispatcher_impl +{ +public: + dispatcher_impl() : id(1) {} + + dispatcher::handler getNewHandlerID() + { + id += 4; + return (dispatcher::handler)id; + } + + typedef std::pair callback_t; + typedef std::multimap callback_lookup_t; + typedef callback_lookup_t::iterator callback_it_t; + + typedef std::multimap handler_lookup_t; + typedef handler_lookup_t::iterator handler_it_t; + + unsigned long long id; + + callback_lookup_t callbacks; + handler_lookup_t handlers; +}; + + +dispatcher::dispatcher() : impl(new dispatcher_impl) {} + + +dispatcher::handler dispatcher::addHandler(const std::string& message, + const function& callback) +{ + return addHandler(message, callback, impl->getNewHandlerID()); +} + +dispatcher::handler dispatcher::addHandler(const std::string& message, + const function& callback, handler id) +{ + std::pair + callbackPair(message, dispatcher_impl::callback_t(id, callback)); + + std::pair handlerPair(id, message); + + impl->callbacks.insert(callbackPair); + impl->handlers.insert(handlerPair); + + return id; +} + + +void dispatcher::removeHandler(handler id) +{ + std::pair + handlers(impl->handlers.equal_range(id)); + + dispatcher_impl::handler_it_t i; + for (i = handlers.first; i != handlers.second; i++) + { + dispatcher_impl::callback_it_t it = impl->callbacks.find((*i).second); + dispatcher_impl::callback_it_t last = impl->callbacks.end(); + + dispatcher_impl::callback_it_t j; + for (j = it; j != last; j++) + { + if (((*j).second).first == id) + { + impl->callbacks.erase(j); + break; + } + } + } + + impl->handlers.erase(id); +} + + +void dispatcher::dispatch(const std::string& message) +{ + dispatch(message, notification()); +} + +void dispatcher::dispatch(const std::string& message, const notification& param) +{ + std::pair + callbacks(impl->callbacks.equal_range(message)); + + dispatcher_impl::callback_it_t i; + for (i = callbacks.first; i != callbacks.second; i++) + { + function callback = ((*i).second).second; + callback(param); + } +} + + +} // namespace dc + diff --git a/src/dispatcher.hh b/src/dispatcher.hh new file mode 100644 index 0000000..e45e88e --- /dev/null +++ b/src/dispatcher.hh @@ -0,0 +1,84 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#ifndef _DISPATCHER_HH_ +#define _DISPATCHER_HH_ + +/** + * @file dispatcher.hh + * Dispatching of information. + */ + +#include + +#include +#include + +#include "singleton.hh" + + +namespace dc { + + +// Subclass this to create more specific notes to dispatch. +class notification +{ +public: + virtual ~notification(); +}; + + +class dispatcher_impl; + +class dispatcher : public singleton +{ +public: + typedef void* handler; + + dispatcher(); + + typedef boost::function function; + + handler addHandler(const std::string& message, const function& callback); + handler addHandler(const std::string& message, const function& callback, + handler id); + + void removeHandler(handler id); + + void dispatch(const std::string& message); + void dispatch(const std::string& message, const notification& param); + +private: + boost::shared_ptr impl; +}; + + +} // namespace dc + +#endif // _DISPATCHER_HH_ + diff --git a/src/engine.cc b/src/engine.cc new file mode 100644 index 0000000..3e40361 --- /dev/null +++ b/src/engine.cc @@ -0,0 +1,255 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#include +#include // exit +#include +#include + +#include +#include "fastevents.h" + +#include "random.hh" +#include "timer.hh" +#include "video.hh" +#include "settings.hh" +#include "dispatcher.hh" + +#include "engine.hh" + + +namespace dc { + + +class engine_impl +{ +public: + engine_impl(const std::string& name, int argc, char* argv[], + const std::string& configFile, engine* outer) : config(argc, argv), + interface(outer) + { + if (SDL_Init(SDL_INIT_EVERYTHING | SDL_INIT_EVENTTHREAD) != 0) + { + throw std::runtime_error(SDL_GetError()); + } + if (FE_Init() != 0) + { + throw std::runtime_error(FE_GetError()); + } + + rng::seed(); + + config.loadFromFile(configFile); + + screen = video_ptr(new video(name)); + screen->makeActive(); + + timestep = 0.01; + config.get("engine.timestep", timestep); + + long maxfps = 40; + config.get("engine.maxfps", maxfps); + drawrate = 1.0 / scalar(maxfps); + + printfps = false; + config.get("engine.printfps", printfps); + } + + ~engine_impl() + { + // The video object must be destroyed before we can shutdown SDL. + screen.reset(); + + FE_Quit(); + SDL_Quit(); + } + + + int run() + { + scalar ticksNow = ticks(); + + scalar nextStep = ticksNow; + scalar nextDraw = ticksNow; + scalar nextFPSUpdate = ticksNow + 1.0; + + scalar totalTime = 0.0; + scalar accumulator = 0.0; + + fps = 0.0; + int frameAccum = 0.0; + + running = true; + do + { + dispatchEvents(); + + scalar newTicks = ticks(); + accumulator += newTicks - ticksNow; + ticksNow = newTicks; + + if (ticksNow >= nextStep) + { + interface->update(totalTime, timestep); + + totalTime += timestep; + accumulator -= timestep; + + nextStep += timestep; + if (ticksNow >= nextStep) nextStep = ticksNow + timestep; + } + + if (ticksNow >= nextDraw) + { + frameAccum++; + + if (ticksNow >= nextFPSUpdate) + { + fps = frameAccum;// + (ticksNow - nextFPSUpdate) / 1.0; + frameAccum = 0; + + nextFPSUpdate += 1.0; + if (ticksNow >= nextFPSUpdate) nextFPSUpdate = ticksNow + 1.0; + + if (printfps) + { + std::cout << "FPS: " << fps << std::endl; + } + } + + interface->draw(accumulator / timestep); + screen->swap(); + + nextDraw += drawrate; + if (ticksNow >= nextDraw) nextDraw = ticksNow + drawrate; + } + + sleep(std::min(nextStep, nextDraw), true); + } + while (running); + } + + + void dispatchEvents() + { + SDL_Event event; + + while (FE_PollEvent(&event) == 1) + { + switch (event.type) + { + case SDL_KEYDOWN: + if (event.key.keysym.sym == SDLK_ESCAPE && + (SDL_GetModState() & KMOD_CTRL) ) + { + exit(0); + } + break; + + case SDL_VIDEORESIZE: + screen->resize(event.resize.w, event.resize.h); + break; + } + + interface->dispatchEvent(event); + } + } + + + settings config; + dispatcher relay; + video_ptr screen; + + bool running; + + scalar timestep; + scalar drawrate; + + long fps; + bool printfps; + + engine* interface; +}; + +engine::engine(const std::string& name, int argc, char* argv[], + const std::string& configFile) + : impl(new engine_impl(name, argc, argv, configFile, this)) {} + +engine::~engine() {} + + +int engine::run() +{ + impl->run(); +} + +void engine::stop() +{ + impl->running = false; +} + + +void engine::setTimestep(scalar ts) +{ + impl->timestep = ts; +} + +scalar engine::getTimestep() +{ + return impl->timestep; +} + +void engine::setMaxFPS(long maxfps) +{ + impl->drawrate = 1.0 / scalar(maxfps); +} + +long engine::getMaxFPS() +{ + return long(1.0 / impl->drawrate); +} + + +video& engine::getVideo() +{ + return *impl->screen; +} + +long engine::getFPS() +{ + return impl->fps; +} + + +void engine::update(scalar t, scalar dt) {} +void engine::draw(scalar alpha) {} +void engine::dispatchEvent(const SDL_Event& event) {} + + +} // namespace dc + diff --git a/src/engine.hh b/src/engine.hh new file mode 100644 index 0000000..bc3bdaf --- /dev/null +++ b/src/engine.hh @@ -0,0 +1,76 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#ifndef _ENGINE_HH_ +#define _ENGINE_HH_ + +#include +#include + +#include "singleton.hh" +#include "dispatcher.hh" + + +namespace dc { + + +class engine_impl; +class video; + +class engine : public singleton +{ +public: + engine(const std::string& name, int argc, char* argv[], + const std::string& configFile); + virtual ~engine(); + + int run(); + void stop(); + + void setTimestep(scalar ts); + scalar getTimestep(); + void setMaxFPS(long maxfps); + long getMaxFPS(); + + video& getVideo(); + long getFPS(); + + // Override these if you want. + virtual void update(scalar t, scalar dt); + virtual void draw(scalar alpha); + virtual void dispatchEvent(const SDL_Event& event); + +private: + boost::shared_ptr impl; +}; + + +} // namespace dc + +#endif // _ENGINE_HH_ + diff --git a/src/event.hh b/src/event.hh new file mode 100644 index 0000000..84a073e --- /dev/null +++ b/src/event.hh @@ -0,0 +1,152 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#ifndef _EVENT_HH_ +#define _EVENT_HH_ + +#include "bz/date.h" +#include "bz/object.h" + + +namespace bz { + + +class event +{ +public: + typedef enum + { + left_click_down = 1<<1, + left_click_up = 1<<2, + right_click_down = 1<<3, + right_click_up = 1<<4, + other_click_down = 1<<5, + other_click_up = 1<<6, + mouse_moved = 1<<7, + mouse_entered = 1<<8, + mouse_exited = 1<<9, + key_down = 1<<10, + key_up = 1<<11, + activated = 1<<12, + iconified = 1<<13, + deactivated = 1<<14, + + file_new = 1<<20, + file_open = 1<<21, + file_revert = 1<<22, + file_save = 1<<23, + file_save_as = 1<<24, + edit_undo = 1<<25, + edit_redo = 1<<26, + edit_copy = 1<<27, + edit_cut = 1<<28, + edit_paste = 1<<29, + edit_select_all = 1<<30, + app_quit = 1<<31, + any = 0xffffffffU + } type; + + // This constructor is for keyboard events: + event( type theType, // What happened? + unsigned char keycode, // The ASCII value. + int modifiers, // Ctrl, Shift, Opt, etc... + bool isRepeat ) : // Is the key held down? + type_(theType), keycode_(keycode), modifiers_(modifiers), + isRepeat_(isRepeat) + { + timestamp_ = date(); + id_ = getIdentifier(); + } + + // This constructor is for mouse events: + event( type theType, // What happened? + vec2d location, // Where? (window coordinates) + vec2d delta, // How far has it moved? + int nClick, // How many consecutive clicks? + float pressure ) : // How hard was it pushed? + type_(theType), location_(location), delta_(delta), nClick_(nClick), + pressure_(pressure) + { + timestamp_ = date(); + id_ = getIdentifier(); + } + + // This constructor is for other event types: + event( type theType ) : type_(theType) // What happened? + { + timestamp_ = date(); + id_ = getIdentifier(); + } + + // Accessors for all event types: + type kind() const { return type_; } + const date& timestamp() const { return timestamp_; } + unsigned int identifier() const { return id_; } + + void *userInfo() const { return userInfo_; } + void setUserInfo( void* userInfo ) { userInfo_ = userInfo; } + unsigned int tag() const { return tag_; } + void setTag( unsigned int tag ) { tag_ = tag; } + + // Accessors for keyboard events: + unsigned char keycode() const { return keycode_; } + int modifiers() const { return modifiers_; } + bool isRepeat() const { return isRepeat_; } + + // Accessors for mouse events: + const vec2d& location() const { return location_; } + const vec2d& delta() const { return delta_; } + int clicks() const { return nClick_; } + float pressure() const { return pressure_; } + +private: + unsigned int getIdentifier() { + static unsigned int identifier = 1; + return identifier++; + } + + type type_; + date timestamp_; + unsigned int id_; + void *userInfo_; + unsigned int tag_; + + unsigned char keycode_; + unsigned char modifiers_; + bool isRepeat_; + + vec2d location_; + vec2d delta_; + int nClick_; + float pressure_; +}; + +} // namespace dc + +#endif // _EVENT_HH_ + diff --git a/src/fastevents.c b/src/fastevents.c new file mode 100644 index 0000000..a400cc8 --- /dev/null +++ b/src/fastevents.c @@ -0,0 +1,195 @@ +/* + NET2 is a threaded, event based, network IO library for SDL. + Copyright (C) 2002 Bob Pendleton + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public License + as published by the Free Software Foundation; either version 2.1 + of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + 02111-1307 USA + + If you do not wish to comply with the terms of the LGPL please + contact the author as other terms are available for a fee. + + Bob Pendleton + Bob@Pendleton.com +*/ +#include +#include +#include + +#include "SDL.h" +#include "SDL_thread.h" + +#include "fastevents.h" + +//---------------------------------------- +// +// error handling code +// + +static char* error = NULL; + +static __inline__ void setError(char *err) +{ + error = err; +} + +char *FE_GetError() +{ + return error; +} + +//---------------------------------------- +// +// Threads, mutexs, thread utils, and +// thread safe wrappers +// + +static SDL_mutex *eventLock = NULL; +static SDL_cond *eventWait = NULL; +static SDL_TimerID eventTimer = 0; + +//---------------------------------------- +// +// +// + +int FE_PushEvent(SDL_Event *ev) +{ + SDL_LockMutex(eventLock); + while (-1 == SDL_PushEvent(ev)) + { + SDL_CondWait(eventWait, eventLock); + } + SDL_UnlockMutex(eventLock); + SDL_CondSignal(eventWait); + + return 1; +} + +//---------------------------------------- +// +// +// + +void FE_PumpEvents() +{ + SDL_LockMutex(eventLock); + SDL_PumpEvents(); + SDL_UnlockMutex(eventLock); +} + +//---------------------------------------- +// +// +// + +int FE_PollEvent(SDL_Event *event) +{ + int val = 0; + + SDL_LockMutex(eventLock); + val = SDL_PollEvent(event); + SDL_UnlockMutex(eventLock); + + if (0 < val) + { + SDL_CondSignal(eventWait); + } + + return val; +} + +//---------------------------------------- +// +// Replacement for SDL_WaitEvent(); +// + +int FE_WaitEvent(SDL_Event *event) +{ + int val = 0; + + SDL_LockMutex(eventLock); + while (0 >= (val = SDL_PollEvent(event))) + { + SDL_CondWait(eventWait, eventLock); + } + SDL_UnlockMutex(eventLock); + SDL_CondSignal(eventWait); + + return val; +} + +//---------------------------------------- +// +// +// + +static Uint32 timerCallback(Uint32 interval, void *param) +{ + SDL_CondBroadcast(eventWait); + + return interval; +} + +//---------------------------------------- +// +// +// + +int FE_Init() +{ + if (0 == (SDL_INIT_TIMER & SDL_WasInit(SDL_INIT_TIMER))) + { + SDL_InitSubSystem(SDL_INIT_TIMER); + } + + eventLock = SDL_CreateMutex(); + if (NULL == eventLock) + { + setError("FE: can't create a mutex"); + return -1; + } + + eventWait = SDL_CreateCond(); + if (NULL == eventWait) + { + setError("FE: can't create a condition variable"); + return -1; + } + + eventTimer = SDL_AddTimer(10, timerCallback, NULL); + if (NULL == eventTimer) + { + setError("FE: can't add a timer"); + return -1; + } + + return 0; +} + +//---------------------------------------- +// +// +// + +void FE_Quit() +{ + SDL_DestroyMutex(eventLock); + eventLock = NULL; + + SDL_DestroyCond(eventWait); + eventWait = NULL; + + SDL_RemoveTimer(eventTimer); +} diff --git a/src/fastevents.h b/src/fastevents.h new file mode 100644 index 0000000..6140944 --- /dev/null +++ b/src/fastevents.h @@ -0,0 +1,48 @@ +#ifndef _FASTEVENTS_H_ +#define _FASTEVENTS_H_ +/* + NET2 is a threaded, event based, network IO library for SDL. + Copyright (C) 2002 Bob Pendleton + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public License + as published by the Free Software Foundation; either version 2.1 + of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + 02111-1307 USA + + If you do not wish to comply with the terms of the LGPL please + contact the author as other terms are available for a fee. + + Bob Pendleton + Bob@Pendleton.com +*/ + +#include "SDL.h" + +#ifdef __cplusplus +extern "C" { +#endif + + int FE_Init(); // Initialize FE + void FE_Quit(); // shutdown FE + + void FE_PumpEvents(); // replacement for SDL_PumpEvents + int FE_PollEvent(SDL_Event *event); // replacement for SDL_PollEvent + int FE_WaitEvent(SDL_Event *event); // replacement for SDL_WaitEvent + int FE_PushEvent(SDL_Event *event); // replacement for SDL_PushEvent + + char *FE_GetError(); // get the last error +#ifdef __cplusplus +} +#endif + +#endif diff --git a/src/math.cc b/src/math.cc new file mode 100644 index 0000000..c81c874 --- /dev/null +++ b/src/math.cc @@ -0,0 +1,58 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#include "math.hh" +#include "vector.hh" +#include "matrix.hh" + + +namespace dc { + + +vector2 vector2::zero(0.0, 0.0); +vector3 vector3::zero(0.0, 0.0, 0.0); + +matrix3 matrix3::zero(0.0, 0.0, 0.0, + 0.0, 0.0, 0.0, + 0.0, 0.0, 0.0); +matrix3 matrix3::identity(1.0, 0.0, 0.0, + 0.0, 1.0, 0.0, + 0.0, 0.0, 1.0); + +matrix4 matrix4::zero(0.0, 0.0, 0.0, 0.0, + 0.0, 0.0, 0.0, 0.0, + 0.0, 0.0, 0.0, 0.0, + 0.0, 0.0, 0.0, 0.0); +matrix4 matrix4::identity(1.0, 0.0, 0.0, 0.0, + 0.0, 1.0, 0.0, 0.0, + 0.0, 0.0, 1.0, 0.0, + 0.0, 0.0, 0.0, 1.0); + + +} // namespace dc + diff --git a/src/math.hh b/src/math.hh new file mode 100644 index 0000000..78f4efd --- /dev/null +++ b/src/math.hh @@ -0,0 +1,66 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +/** + * @file math.hh + * General math-related types and functions. + */ + +#ifndef _MATH_HH_ +#define _MATH_HH_ + +#include + + +namespace dc { + + +typedef double scalar; ///< Scalar variable. + + +// Here's a simple way to check the equality of floating-point variables more +// reliably using approximation. + +const scalar default_epsilon = 0.00001; ///< @see equals() + + +/** + * Check the equality of scalars with a certain degree of error allowed. + */ + +inline bool equals(scalar a, scalar b, scalar epsilon = default_epsilon) +{ + return std::abs(a - b) < epsilon; +} + + +} // namespace dc + + +#endif // _MATH_HH_ + diff --git a/src/matrix.hh b/src/matrix.hh new file mode 100644 index 0000000..49bdd4c --- /dev/null +++ b/src/matrix.hh @@ -0,0 +1,373 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#ifndef _MATRIX_HH_ +#define _MATRIX_HH_ + +/** + * @file matrix.hh + * Matrix classes. + */ + +#include + +#include "math.hh" + + +namespace dc { + +/** + * 3x3 matrix. + */ + +struct matrix3 +{ + matrix3() {} + matrix3(scalar M11, scalar M12, scalar M13, + scalar M21, scalar M22, scalar M23, + scalar M31, scalar M32, scalar M33) + { + m11 = M11; m12 = M12; m13 = M13; + m21 = M21; m22 = M22; m23 = M23; + m31 = M31; m32 = M32; m33 = M33; + } + matrix3(scalar m[9]) + { + array[0] = m[0]; array[1] = m[1]; array[2] = m[2]; + array[3] = m[3]; array[4] = m[4]; array[5] = m[5]; + array[6] = m[6]; array[7] = m[7]; array[8] = m[8]; + } + + const scalar& operator[](int i) const + { + assert(i >= 0 && i <= 8 && "Index into matrix3 out of bounds."); + return array[i]; + } + scalar& operator[](int i) + { + assert(i >= 0 && i <= 8 && "Index into matrix3 out of bounds."); + return array[i]; + } + + matrix3 operator+(const matrix3& m) const + { + return matrix3(m11 + m.m11, m12 + m.m12, m13 + m.m13, + m21 + m.m21, m22 + m.m22, m23 + m.m23, + m31 + m.m31, m32 + m.m32, m33 + m.m33); + } + matrix3 operator-(const matrix3& m) const + { + return matrix3(m11 - m.m11, m12 - m.m12, m13 - m.m13, + m21 - m.m21, m22 - m.m22, m23 - m.m23, + m31 - m.m31, m32 - m.m32, m33 - m.m33); + } + matrix3 operator*(const matrix3& m) const + { + return matrix3(m11 * m.m11 + m12 * m.m21 + m13 * m.m31, + m11 * m.m12 + m12 * m.m22 + m13 * m.m32, + m11 * m.m13 + m12 * m.m23 + m13 * m.m33, + m21 * m.m11 + m22 * m.m21 + m23 * m.m31, + m21 * m.m12 + m22 * m.m22 + m23 * m.m32, + m21 * m.m13 + m22 * m.m23 + m23 * m.m33, + m31 * m.m11 + m32 * m.m21 + m33 * m.m31, + m31 * m.m12 + m32 * m.m22 + m33 * m.m32, + m32 * m.m13 + m32 * m.m23 + m33 * m.m33); + } + matrix3 operator*(scalar s) const + { + return matrix3(m11 * s, m12 * s, m13 * s, + m21 * s, m22 * s, m23 * s, + m31 * s, m32 * s, m33 * s); + } + matrix3 operator/(scalar s) const + { + return matrix3(m11 / s, m12 / s, m13 / s, + m21 / s, m22 / s, m23 / s, + m31 / s, m32 / s, m33 / s); + } + + matrix3& operator+=(const matrix3& m) + { + m11 += m.m11; m12 += m.m12; m13 += m.m13; + m21 += m.m21; m22 += m.m22; m23 += m.m23; + m31 += m.m31; m32 += m.m32; m33 += m.m33; + return *this; + } + matrix3& operator-=(const matrix3& m) + { + m11 -= m.m11; m12 -= m.m12; m13 -= m.m13; + m21 -= m.m21; m22 -= m.m22; m23 -= m.m23; + m31 -= m.m31; m32 -= m.m32; m33 -= m.m33; + return *this; + } + matrix3& operator*=(const matrix3& m) + { + return *this = *this * m; + } + matrix3& operator*=(scalar s) + { + m11 *= s; m12 *= s; m13 *= s; + m21 *= s; m22 *= s; m23 *= s; + m31 *= s; m32 *= s; m33 *= s; + return *this; + } + matrix3& operator/=(scalar s) + { + m11 /= s; m12 /= s; m13 /= s; + m21 /= s; m22 /= s; m23 /= s; + m31 /= s; m32 /= s; m33 /= s; + return *this; + } + + matrix3 operator-() const + { + return matrix3(-m11, -m12, -m13, + -m21, -m22, -m23, + -m31, -m32, -m33); + } + + bool operator==(const matrix3& m) const + { + return equals(m11,m.m11) && equals(m12,m.m12) && equals(m13,m.m13) && + equals(m21,m.m21) && equals(m22,m.m22) && equals(m23,m.m23) && + equals(m31,m.m31) && equals(m32,m.m32) && equals(m33,m.m33); + } + bool operator!=(const matrix3& m) const + { + return !(*this == m); + } + + + union + { + struct + { + scalar m11, m21, m31; + scalar m12, m22, m32; + scalar m13, m23, m33; ///< scalars + }; + scalar array[9]; ///< array + }; + + static matrix3 zero; ///< zero matrix + static matrix3 identity; ///< identity matrix +}; + +inline matrix3 operator*(scalar s, const matrix3& m) +{ + return m * s; +} +inline matrix3 operator/(scalar s, const matrix3& m) +{ + return matrix3(s / m.m11, s / m.m12, s / m.m13, + s / m.m21, s / m.m22, s / m.m23, + s / m.m31, s / m.m32, s / m.m33); +} + + +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +/** + * 4x4 matrix. + */ + +struct matrix4 +{ + matrix4() {} + matrix4(scalar M11, scalar M12, scalar M13, scalar M14, + scalar M21, scalar M22, scalar M23, scalar M24, + scalar M31, scalar M32, scalar M33, scalar M34, + scalar M41, scalar M42, scalar M43, scalar M44) + { + m11 = M11; m12 = M12; m13 = M13; m14 = M14; + m21 = M21; m22 = M22; m23 = M23; m24 = M24; + m31 = M31; m32 = M32; m33 = M33; m34 = M34; + m41 = M41; m42 = M42; m43 = M43; m44 = M44; + } + matrix4(scalar m[15]) + { + array[0] = m[0]; array[1] = m[1]; array[2] = m[2]; array[3] = m[3]; + array[4] = m[4]; array[5] = m[5]; array[6] = m[6]; array[7] = m[7]; + array[8] = m[8]; array[9] = m[9]; array[10] = m[10]; array[11] = m[11]; + array[12] = m[12]; array[13] = m[13]; array[14] = m[14]; array[15] = m[15]; + } + + const scalar& operator[](int i) const + { + assert(i >= 0 && i <= 15 && "Index into matrix4 out of bounds."); + return array[i]; + } + scalar& operator[](int i) + { + assert(i >= 0 && i <= 15 && "Index into matrix4 out of bounds."); + return array[i]; + } + + matrix4 operator+(const matrix4& m) const + { + return matrix4(m11 + m.m11, m12 + m.m12, m13 + m.m13, m14 + m.m14, + m21 + m.m21, m22 + m.m22, m23 + m.m23, m24 + m.m24, + m31 + m.m31, m32 + m.m32, m33 + m.m33, m34 + m.m34, + m41 + m.m41, m42 + m.m42, m43 + m.m43, m44 + m.m44); + } + matrix4 operator-(const matrix4& m) const + { + return matrix4(m11 - m.m11, m12 - m.m12, m13 - m.m13, m14 - m.m14, + m21 - m.m21, m22 - m.m22, m23 - m.m23, m24 - m.m24, + m31 - m.m31, m32 - m.m32, m33 - m.m33, m34 - m.m34, + m41 - m.m41, m42 - m.m42, m43 - m.m43, m44 - m.m44); + } + matrix4 operator*(const matrix4& m) const // TODO ?? + { + return matrix4(m11 * m.m11 + m12 * m.m21 + m13 * m.m31 + m14 * m.m41, + m11 * m.m12 + m12 * m.m22 + m13 * m.m32 + m14 * m.m42, + m11 * m.m13 + m12 * m.m23 + m13 * m.m33 + m14 * m.m43, + m11 * m.m14 + m12 * m.m24 + m13 * m.m34 + m14 * m.m44, + m21 * m.m11 + m22 * m.m21 + m23 * m.m31 + m24 * m.m41, + m21 * m.m12 + m22 * m.m22 + m23 * m.m32 + m24 * m.m42, + m21 * m.m13 + m22 * m.m23 + m23 * m.m33 + m24 * m.m43, + m21 * m.m14 + m22 * m.m24 + m23 * m.m34 + m24 * m.m44, + m31 * m.m11 + m32 * m.m21 + m33 * m.m31 + m34 * m.m41, + m31 * m.m12 + m32 * m.m22 + m33 * m.m32 + m34 * m.m42, + m31 * m.m13 + m32 * m.m23 + m33 * m.m33 + m34 * m.m43, + m31 * m.m14 + m32 * m.m24 + m33 * m.m34 + m34 * m.m44, + m41 * m.m11 + m42 * m.m21 + m43 * m.m31 + m44 * m.m41, + m41 * m.m12 + m42 * m.m22 + m43 * m.m32 + m44 * m.m42, + m41 * m.m13 + m42 * m.m23 + m43 * m.m33 + m44 * m.m43, + m41 * m.m14 + m42 * m.m24 + m43 * m.m34 + m44 * m.m44); + } + matrix4 operator*(scalar s) const + { + return matrix4(m11 * s, m12 * s, m13 * s, m14 * s, + m21 * s, m22 * s, m23 * s, m24 * s, + m31 * s, m32 * s, m33 * s, m34 * s, + m41 * s, m42 * s, m43 * s, m44 * s); + } + matrix4 operator/(scalar s) const + { + return matrix4(m11 / s, m12 / s, m13 / s, m14 / s, + m21 / s, m22 / s, m23 / s, m24 / s, + m31 / s, m32 / s, m33 / s, m34 / s, + m41 / s, m42 / s, m43 / s, m44 / s); + } + + matrix4& operator+=(const matrix4& m) + { + m11 += m.m11; m12 += m.m12; m13 += m.m13; m14 += m.m14; + m21 += m.m21; m22 += m.m22; m23 += m.m23; m24 += m.m24; + m31 += m.m31; m32 += m.m32; m33 += m.m33; m34 += m.m34; + m41 += m.m41; m42 += m.m42; m43 += m.m43; m44 += m.m44; + return *this; + } + matrix4& operator-=(const matrix4& m) + { + m11 -= m.m11; m12 -= m.m12; m13 -= m.m13; m14 -= m.m14; + m21 -= m.m21; m22 -= m.m22; m23 -= m.m23; m24 -= m.m24; + m31 -= m.m31; m32 -= m.m32; m33 -= m.m33; m34 -= m.m34; + m41 -= m.m41; m42 -= m.m42; m43 -= m.m43; m44 -= m.m44; + return *this; + } + matrix4& operator*=(const matrix4& m) + { + *this = *this * m; + return *this; + } + matrix4& operator*=(scalar s) + { + m11 *= s; m12 *= s; m13 *= s; m14 *= s; + m21 *= s; m22 *= s; m23 *= s; m24 *= s; + m31 *= s; m32 *= s; m33 *= s; m34 *= s; + m41 *= s; m42 *= s; m43 *= s; m44 *= s; + return *this; + } + matrix4& operator/=(scalar s) + { + m11 /= s; m12 /= s; m13 /= s; m14 /= s; + m21 /= s; m22 /= s; m23 /= s; m24 /= s; + m31 /= s; m32 /= s; m33 /= s; m34 /= s; + m41 /= s; m42 /= s; m43 /= s; m44 /= s; + return *this; + } + + matrix4 operator-() const + { + return matrix4(-m11, -m12, -m13, -m14, + -m21, -m22, -m23, -m24, + -m31, -m32, -m33, -m34, + -m41, -m42, -m43, -m44); + } + + bool operator==(const matrix4& m) const + { + return equals(m11,m.m11) && equals(m12,m.m12) && equals(m13,m.m13) && + equals(m14,m.m14) && equals(m21,m.m21) && equals(m22,m.m22) && + equals(m23,m.m23) && equals(m24,m.m24) && equals(m31,m.m31) && + equals(m32,m.m32) && equals(m33,m.m33) && equals(m34,m.m34) && + equals(m41,m.m41) && equals(m42,m.m42) && equals(m43,m.m43) && + equals(m44,m.m44); + } + bool operator!=(const matrix4& m) const + { + return !(*this == m); + } + + + union + { + struct + { + scalar m11, m21, m31, m41; + scalar m12, m22, m32, m42; + scalar m13, m23, m33, m43; + scalar m14, m24, m34, m44; ///< scalars + }; + scalar array[16]; ///< array + }; + + static matrix4 zero; ///< zero matrix + static matrix4 identity; ///< identity matrix +}; + +inline matrix4 operator*(scalar s, const matrix4& m) +{ + return m * s; +} +inline matrix4 operator/(scalar s, const matrix4& m) +{ + return matrix4(s / m.m11, s / m.m12, s / m.m13, s / m.m14, + s / m.m21, s / m.m22, s / m.m23, s / m.m24, + s / m.m31, s / m.m32, s / m.m33, s / m.m34, + s / m.m41, s / m.m42, s / m.m43, s / m.m44); +} + + +} // namespace dc + + +#endif // _MATRIX_HH_ + diff --git a/src/opengl.hh b/src/opengl.hh new file mode 100644 index 0000000..e04fe5c --- /dev/null +++ b/src/opengl.hh @@ -0,0 +1,43 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#ifndef _GL_HH_ +#define _GL_HH_ + +#ifdef __APPLE__ +#include +#include +#include +#else +#include +#include +#include +#endif + +#endif // _GL_HH_ + diff --git a/src/profiler.hh b/src/profiler.hh new file mode 100644 index 0000000..d1a8bb0 --- /dev/null +++ b/src/profiler.hh @@ -0,0 +1,81 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#ifndef _PROFILER_HH_ +#define _PROFILER_HH_ + +/** + * @file profiler.hh + * Braindead-simple profiler. + */ + +#include + + +namespace dc { + +class profiler +{ +public: + profiler(const char* name = "") + { + start(name); + } + ~profiler() + { + stop(); + } + + void start(const char* name = "") + { + begin = std::clock(); + std::cout << "Profiling " << name << "... "; + } + + void stop() + { + if (begin == -1) return; + double elapsed = double(std::clock() - begin) / double(CLOCKS_PER_SEC); + std::cout << elapsed << " sec" << std::endl; + begin = -1; + } + + void cancel() + { + begin = -1; + } + +private: + std::clock_t begin; +}; + +} // namespace dc + + +#endif // _PROFILER_HH_ + diff --git a/src/quaternion.hh b/src/quaternion.hh new file mode 100644 index 0000000..daf3114 --- /dev/null +++ b/src/quaternion.hh @@ -0,0 +1,188 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#ifndef _QUATERNION_HH_ +#define _QUATERNION_HH_ + +#include + +#include "math.hh" +#include "matrix.hh" +#include "vector.hh" + + +// +// Quaternion -> 3x3 Matrix +// +// | w^2 + x^2 - y^2 - z^2 2xy - 2wz 2xz + 2yw | +// | 2xy + 2wz w^2 - x^2 + y^2 - z^2 2yz - 2wx | +// | 2xz - 2wy 2yz - 2wx w^2 - x^2 - y^2 + z^2 | +// + +namespace dc { + + +class quaternion +{ +public: + // Constructors. + quaternion() {} + quaternion(scalar X, scalar Y, scalar Z, scalar W) { + vec.x = X; vec.y = Y; vec.z = Z; w = W; + } + quaternion(vector3 v, scalar W = 1.0) { + vec = v; w = W; + } + quaternion(scalar q[4]) { + vec.x = q[0]; vec.y = q[1]; vec.z = q[2]; w = q[3]; + } + + // Accessible by index. + const scalar& operator [] (int i) const { + assert(i >= 0 && i <= 3 && "Index into quaternion out of bounds."); + return *((&vec.x) + i); + } + scalar& operator [] (int i) { + assert(i >= 0 && i <= 3 && "Index into quaternion out of bounds."); + //return vec[i]; + return *((&vec.x) + i); + } + + // Basic maths. + quaternion operator + (const quaternion& q) const { + return quaternion(vec + q.vec, w + q.w); + } + quaternion operator - (const quaternion& q) const { + return quaternion(vec - q.vec, w - q.w); + } + quaternion operator * (const quaternion& q) const { + return quaternion(q.w * vec + w * q.vec + q.vec.cross(vec), + w * q.w - q.vec.dot(vec)); + } + quaternion operator * (scalar s) const { + return quaternion(vec * s, w * s); + } + quaternion operator / (scalar s) const { + return quaternion(vec / s, w / s); + } + + quaternion& operator += (const quaternion& q) { + vec += q.vec; w += q.w; + return *this; + } + quaternion& operator -= (const quaternion& q) { + vec -= q.vec; w -= q.w; + return *this; + } + quaternion& operator *= (const quaternion& q) { + scalar W = w; + w = W * q.w - q.vec.dot(vec); + vec = q.w * vec + W * q.vec + q.vec.cross(vec); + return *this; + } + quaternion& operator *= (scalar s) { + vec *= s; w *= s; + return *this; + } + quaternion& operator /= (scalar s) { + vec /= s; w /= s; + return *this; + } + + // Unary operators. + quaternion operator - () const { + return quaternion(-vec, -w); + } + + // Quaternion operations. + quaternion conjugate() const { + return quaternion(-vec, w); + } + void normalize(const vector3& v) + { + scalar len = length(); + if (len != 0.0) { *this /= len; } + } + + scalar length2() const { + return vec.x * vec.x + vec.y * vec.y + vec.z * vec.z + w * w; + } + scalar length() const { + return std::sqrt(length2()); + } + + // Converting to other types. + matrix3 matrix() const { + scalar x2 = vec.x * vec.x; + scalar y2 = vec.y * vec.y; + scalar z2 = vec.z * vec.z; + scalar w2 = w * w; + scalar xy = vec.x * vec.y; + scalar xz = vec.x * vec.z; + scalar yzwx = 2 * (vec.y * vec.z - w * vec.x); + scalar wy = w * vec.y; + scalar wz = w * vec.z; + return matrix3(x2 - y2 - z2 + w2, 2 * (xy - wz), 2 * (xz + wy), + 2 * (xy + wz), w2 - x2 + y2 - z2, yzwx, + 2 * (xz - wy), yzwx, w2 - x2 - y2 + z2); + } + vector3 axis(scalar& angle) { // Axis of rotation, w/ angle of rotation. + vector3 axisVec = axis(); + angle = 2 * std::acos(w); + return axisVec; + } + vector3 axis() { + scalar sa = std::sqrt(1 - w * w); + return vec / sa; + } + + // Checking equality. + bool operator == (const quaternion& q) const { + return vec == q.vec && equals(w,q.w); + } + bool operator != (const quaternion& q) const { + return !(*this == q); + } + + // Data. + vector3 vec; + scalar w; +}; + +inline quaternion operator * (scalar s, const quaternion& q) { + return q * s; +} +inline quaternion operator / (scalar s, const quaternion& q) { + return quaternion(s / q.vec, s / q.w); +} + +} // namespace dc + + +#endif // _QUATERNION_HH_ + diff --git a/src/random.cc b/src/random.cc new file mode 100644 index 0000000..22bbd4e --- /dev/null +++ b/src/random.cc @@ -0,0 +1,115 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#include // srand, rand, RAND_MAX +#include // time +#include // log +#include // ULONG_MAX + +#include "random.hh" + + +namespace rng { + +unsigned seed(unsigned theSeed) +{ + srand(theSeed); + return theSeed; +} + +unsigned seed() +{ + return seed(time(0)); +} + + +template +T get() +{ + const float ln2 = 0.693147; + static const unsigned bitsPerPiece = std::log(float(RAND_MAX)) / ln2; + static const unsigned sizeOfType = sizeof(T) * 8; + static const unsigned pieces = sizeOfType / bitsPerPiece + + ((sizeOfType % bitsPerPiece) ? 1 : 0); + + T bits = 0; + + // we need to call rand() multiple times if it won't provide enough random + // bits to fill the size of the given type + for (unsigned i = 0; i < pieces; i++) + { + long piece = rand(); + bits |= piece << (i * bitsPerPiece); + } + + return bits; +} + + +template <> +bool get() +{ + return rand() % 2; +} + +template +T get(T lower, T upper) +{ + unsigned short randInt = get(); + return lower + T(randInt % (upper - lower + 1)); +} + +template <> +float get(float lower, float upper) +{ + unsigned long randInt = get(); + return (float(randInt) / float(ULONG_MAX)) * (upper - lower) + lower; +} + +template <> +double get(double lower, double upper) +{ + unsigned long long randInt = get(); + return (double(randInt) / double(ULLONG_MAX)) * (upper - lower) + lower; +} + +template <> +float get() +{ + return get(0.0, 1.0); +} + +template <> +double get() +{ + return get(0.0, 1.0); +} + + +}; // namespace rng + diff --git a/src/random.hh b/src/random.hh new file mode 100644 index 0000000..5a34229 --- /dev/null +++ b/src/random.hh @@ -0,0 +1,126 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#ifndef _RNG_RANDOM_HH_ +#define _RNG_RANDOM_HH_ + +/** + * @file random.hh + * Simple pseudo-random number generators. + */ + + +namespace rng { + +/** + * Provide the RNG with a seed. + * @param theSeed + * @return theSeed + */ + +unsigned seed(unsigned theSeed); + +/** + * Seed the RNG with the current time. This is good enough in most cases. + * @return The seed used. + */ + +unsigned seed(); + + +/** + * The most generic generator gets enough random bits to fill the integer type. + * @return Random value of maximum domain for type T. + */ + +template +T get(); + + +/** + * Get a random boolean value. + * @return True or false. + */ + +template <> +bool get(); + + +/** + * Get a random integer value with a limited domain. + * @param lower Smallest possible value. + * @param upper Largest possible value. + * @return Integer between lower and upper, inclusive. + */ + +template +T get(T lower, T upper); + + +/** + * Get a random float with a limited domain. + * @param lower Smallest possible value. + * @param upper Largest possible value. + * @return Float between lower and upper, inclusive. + */ + +template <> +float get(float lower, float upper); + +/** + * Get a random double with a limited domain. + * @param lower Smallest possible value. + * @param upper Largest possible value. + * @return Double between lower and upper, inclusive. + */ + +template <> +double get(double lower, double upper); + +/** + * Get a random float with a domain limited to [0.0, 1.0]. + * @return Float between 0.0 and 1.0, inclusive. + */ + +template <> +float get(); + +/** + * Get a random double with a domain limited to [0.0, 1.0]. + * @return Double between 0.0 and 1.0, inclusive. + */ + +template <> +double get(); + + +}; // namespace rng + + +#endif // _RNG_RANDOM_HH_ + diff --git a/src/rectangle.cc b/src/rectangle.cc new file mode 100644 index 0000000..0f9bb9f --- /dev/null +++ b/src/rectangle.cc @@ -0,0 +1,84 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#include + +#include "rectangle.hh" + + +namespace dc { + + +bool rectangle::containsRect(const rectangle& r) const +{ + point o = r.origin; + point s = r.size; + if (origin.x <= o.x && origin.y <= o.y) + { + scalar a = origin.x + size.x; + scalar b = origin.y + size.y; + scalar c = o.x + s.x; + scalar d = o.y + s.y; + return o.x <= a && o.y <= b && origin.x <= c && + origin.y <= d && c <= a && d <= b; + } + return false; +} + +bool rectangle::intersectsRect(const rectangle& r) const +{ + // TODO - Perhaps this could be optimized if it proves to be a bottleneck. + rectangle rect = intersectionWith(r); + return rect.isValid(); +} + +rectangle rectangle::unionWith(const rectangle& r) const +{ + point o = r.origin; + point s = r.size; + scalar a = std::min(origin.x, o.x); + scalar b = std::min(origin.y, o.y); + return rectangle(point(a, b), + point(std::max(origin.x + size.x, o.x + s.x) - a, + std::max(origin.y + size.y, o.y + s.y) - b)); +} + +rectangle rectangle::intersectionWith(const rectangle& r) const +{ + point o = r.origin; + point s = r.size; + scalar a = std::max(origin.x, o.x); + scalar b = std::max(origin.y, o.y); + return rectangle(point(a, b), + point(std::min(origin.x + size.x, o.x + s.x) - a, + std::min(origin.y + size.y, o.y + s.y) - b)); +} + + +} // namespace dc + diff --git a/src/rectangle.hh b/src/rectangle.hh new file mode 100644 index 0000000..1594d62 --- /dev/null +++ b/src/rectangle.hh @@ -0,0 +1,124 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#ifndef _RECTANGLE_HH_ +#define _RECTANGLE_HH_ + +#include "math.hh" +#include "vector.hh" + + +namespace dc { + +// +// A rectangle is a 2d shape defined by point (origin) and size (width & height) +// vectors. The usual rectangle maths are available. Valid rectangles have +// positive width and height. Invalid rectangles will be returned for invalid +// operations such as trying to get the intersection of two rectangles which +// don't intersect. Using an invalid rectangle is undefined, but it may be used +// after "fixing" it using the fix method which will cause the size to be +// positive and adjust the origin to be the bottom-left point. Check the +// validity of a rectangle using the isValid method especially if the rectangle +// is a result of an operation which could fail. +// + +class rectangle +{ +public: + // Constructors. + rectangle() {} + rectangle(point o, point s) { + origin = o; + size = s; + } + + // Rectangle validity. + bool isValid() const { return size.x >= 0.0 && size.y >= 0.0; } + void fix() + { + if (size.x <= 0.0) + { + size.x = 0.0 - size.x; + origin.x -= size.x; + } + if (size.y <= 0.0) + { + size.y = 0.0 - size.y; + origin.y -= size.y; + } + } + + // Rectangle operations. + scalar area() const { return size.x * size.y; } + scalar perimeter() const { + return size.x + size.x + size.y + size.y; + } + + bool containsPoint(point pt) const + { + return origin.x <= pt.x && origin.y <= pt.y && + pt.x <= origin.x + size.x && pt.y <= origin.y + size.y; + } + + void inset(scalar h, scalar v) + { + origin.x += h; + origin.y += v; + size.x -= h + h; + size.y -= v + v; + } + void offset(scalar h, scalar v) + { + origin.x -= h; + origin.y -= v; + size.x += h + h; + size.y += v + v; + } + + bool containsRect(const rectangle& r) const; + bool intersectsRect(const rectangle& r) const; + rectangle unionWith(const rectangle& r) const; + rectangle intersectionWith(const rectangle& r) const; + + // Checking equality. + bool operator == (const rectangle& r) const { + return origin == r.origin && size == r.size; + } + bool operator != (const rectangle& r) const { + return !(*this == r); + } + + // Data. + point origin, size; +}; + +} // namespace dc + + +#endif // _RECTANGLE_HH_ + diff --git a/src/serializable.cc b/src/serializable.cc new file mode 100644 index 0000000..11e8d26 --- /dev/null +++ b/src/serializable.cc @@ -0,0 +1,82 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#include "serializable.hh" + + +namespace dc { + + +serializable::~serializable() +{ +} + + +bool serializable::get(long& value) +{ + return false; +} + +bool serializable::get(double& value) +{ + return false; +} + +bool serializable::get(bool& value) +{ + return false; +} + +bool serializable::get(std::string& value) +{ + return false; +} + +bool serializable::get(std::wstring& value) +{ + return false; +} + +bool serializable::get(std::vector& value) +{ + return false; +} + +bool serializable::get(std::map& value) +{ + return false; +} + +bool serializable::isNull() +{ + return false; +} + + +} // namespace dc + diff --git a/src/serializable.hh b/src/serializable.hh new file mode 100644 index 0000000..5b8b403 --- /dev/null +++ b/src/serializable.hh @@ -0,0 +1,242 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#ifndef _SERIALIZABLE_HH_ +#define _SERIALIZABLE_HH_ + +#include +#include +#include +#include + +#include "serializer.hh" +#include "deserializer.hh" +#include "stringtools.hh" + + +namespace dc { + + +class serializable +{ +public: + virtual ~serializable(); + + virtual void serialize(serializer& out) const = 0; + virtual void deserialize(deserializer& in) = 0; + + virtual void print() const = 0; + + virtual bool get(long& value); + virtual bool get(double& value); + virtual bool get(bool& value); + virtual bool get(std::string& value); + virtual bool get(std::wstring& value); + virtual bool get(std::vector& value); + virtual bool get(std::map& value); + virtual bool isNull(); +}; + + +template +class wrapper : public serializable +{ +public: + wrapper() {} + wrapper(const T& var) : variable(var) {} + + void serialize(serializer& out) const; + void deserialize(deserializer& in); + + void print() const; + bool get(T& value); + +public: + T variable; +}; + + +class null : public serializable +{ +public: + null() {} + void serialize(serializer& out) const; + void deserialize(deserializer& in); + + void print() const; + bool isNull(); +}; + + +typedef wrapper wrapped_integer; +typedef wrapper wrapped_real; +typedef wrapper wrapped_boolean; +typedef wrapper wrapped_string; +typedef wrapper wrapped_wstring; +typedef wrapper > wrapped_array; +typedef wrapper > wrapped_dictionary; + + + +template +inline void wrapper::serialize(serializer& out) const +{ + out.push(variable); +} + +template <> +inline void +wrapper >::serialize(serializer& out) const +{ + out.pushArrayHead(); + + std::vector::const_iterator i; + for (i = variable.begin(); i < variable.end(); i++) + { + (*i)->serialize(out); + } + + out.pushArrayTail(); +} + +template <> +inline void +wrapper >::serialize(serializer& out) const +{ + out.pushMapHead(); + + std::map::const_iterator i; + for (i = variable.begin(); i != variable.end(); i++) + { + out.push((*i).first); + (*i).second->serialize(out); + } + + out.pushMapTail(); +} + +inline void null::serialize(serializer& out) const +{ + out.pushNull(); +} + + +template +inline void wrapper::deserialize(deserializer& in) +{ + in.pop(); +} + +template <> +inline void wrapper >::deserialize(deserializer& in) +{ + serializable_ptr obj; + + in.pop(); + + while (obj = in.deserialize()) + { + variable.push_back(serializable_ptr(obj)); + } + + in.pop(); +} + +template <> +inline void +wrapper >::deserialize(deserializer& in) +{ + serializable_ptr obj; + + in.pop(); + + while (obj = in.deserialize()) + { + std::string key; + if (obj->get(key)) + { + variable[key] = in.deserialize(); + } + } + + in.pop(); +} + +inline void null::deserialize(deserializer& in) +{ + in.pop(); +} + + +template +inline void wrapper::print() const +{ + std::cout << std::boolalpha << typeid(T).name() << "(" << variable << ")"; +} + +template <> +inline void wrapper::print() const +{ + std::wcout << variable; +} + +template <> +inline void wrapper >::print() const +{ + std::cout << "array"; +} + +template <> +inline void wrapper >::print() const +{ + std::cout << "dictionary"; +} + +inline void null::print() const +{ + std::cout << "null"; +} + + +template +inline bool wrapper::get(T& value) +{ + value = variable; + return true; +} + +inline bool null::isNull() +{ + return true; +} + + +} // namespace dc + +#endif // _SERIALIZABLE_HH_ + diff --git a/src/serializer.cc b/src/serializer.cc new file mode 100644 index 0000000..e2f7734 --- /dev/null +++ b/src/serializer.cc @@ -0,0 +1,193 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#include + +#include + +#include "stringtools.hh" +#include "serializer.hh" + + +namespace dc { + + +class serializer_impl +{ +public: + serializer_impl(const std::string& filePath, const std::string& indent = "") + { + std::ofstream* output = new std::ofstream(filePath.c_str()); + init(*output, true, indent); + } + + serializer_impl(std::ostream& output, const std::string& indent = "") + { + init(output, false, indent); + } + + ~serializer_impl() + { + if (deleteWhenDone) + { + delete out; + } + yajl_gen_free(gen); + } + + static void throwError(yajl_gen_status err) + { + switch (err) + { + case yajl_gen_generation_complete: + throw serializer::generator_error("the archive has already terminated"); + case yajl_gen_keys_must_be_strings: + throw serializer::generator_error("map keys must be strings"); + case yajl_max_depth_exceeded: + throw serializer::generator_error("maximum archive depth exceeded"); + case yajl_gen_in_error_state: + throw serializer::generator_error("serializer already in error state"); + } + } + + yajl_gen gen; + + std::ostream* out; + bool deleteWhenDone; + +private: + void init(std::ostream& output, bool deleteOut, const std::string& indent) + { + yajl_gen_config config; + + out = &output; + deleteWhenDone = deleteOut; + + if (indent != "") + { + config.beautify = true; + config.indentString = 0; + // FIXME: a yajl bug prevents using heap-allocated strings + //config.indentString = indent.c_str(); + } + else + { + config.beautify = false; + } + gen = yajl_gen_alloc(&config, 0); + } +}; + + +serializer::serializer(const std::string& filePath, const std::string& indent) : + impl(new serializer_impl(filePath, indent)) {} + +serializer::serializer(std::ostream& output, const std::string& indent) : + impl(new serializer_impl(output, indent)) {} + +serializer::~serializer() +{ + flush(); +} + + +void serializer::push(long value) +{ + yajl_gen_status stat = yajl_gen_integer(impl->gen, value); + if (stat != yajl_gen_status_ok) serializer_impl::throwError(stat); +} + +void serializer::push(double value) +{ + yajl_gen_status stat = yajl_gen_double(impl->gen, value); + if (stat != yajl_gen_status_ok) serializer_impl::throwError(stat); +} + +void serializer::push(bool value) +{ + yajl_gen_status stat = yajl_gen_bool(impl->gen, value); + if (stat != yajl_gen_status_ok) serializer_impl::throwError(stat); +} + +void serializer::push(const std::string& value) +{ + yajl_gen_status stat = yajl_gen_string(impl->gen, + (const unsigned char*)value.c_str(), value.length()); + if (stat != yajl_gen_status_ok) serializer_impl::throwError(stat); +} + +void serializer::push(const std::wstring& value) +{ + push(wideToMulti(value)); +} + +void serializer::pushNull() +{ + yajl_gen_status stat = yajl_gen_null(impl->gen); + if (stat != yajl_gen_status_ok) serializer_impl::throwError(stat); +} + + +void serializer::pushMapHead() +{ + yajl_gen_status stat = yajl_gen_map_open(impl->gen); + if (stat != yajl_gen_status_ok) serializer_impl::throwError(stat); +} + +void serializer::pushMapTail() +{ + yajl_gen_status stat = yajl_gen_map_close(impl->gen); + if (stat != yajl_gen_status_ok) serializer_impl::throwError(stat); +} + +void serializer::pushArrayHead() +{ + yajl_gen_status stat = yajl_gen_array_open(impl->gen); + if (stat != yajl_gen_status_ok) serializer_impl::throwError(stat); +} + +void serializer::pushArrayTail() +{ + yajl_gen_status stat = yajl_gen_array_close(impl->gen); + if (stat != yajl_gen_status_ok) serializer_impl::throwError(stat); +} + + +void serializer::flush() +{ + const unsigned char* buffer; + unsigned length; + + yajl_gen_get_buf(impl->gen, &buffer, &length); + impl->out->write((const char*)buffer, length); + yajl_gen_clear(impl->gen); +} + + +} // namespace dc + diff --git a/src/serializer.hh b/src/serializer.hh new file mode 100644 index 0000000..0690d6c --- /dev/null +++ b/src/serializer.hh @@ -0,0 +1,86 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#ifndef _SERIALIZER_HH_ +#define _SERIALIZER_HH_ + +/** + * @file serializer.hh + * Serialize structures and types for output on a stream. + */ + +#include +#include +#include + +#include + + +namespace dc { + + +class serializer_impl; + +class serializer +{ +public: + serializer(const std::string& filePath, const std::string& indent = ""); + serializer(std::ostream& output, const std::string& indent = ""); + + ~serializer(); + + void push(long value); + void push(double value); + void push(bool value); + void push(const std::string& value); + void push(const std::wstring& value); + void pushNull(); + + void pushMapHead(); + void pushMapTail(); + + void pushArrayHead(); + void pushArrayTail(); + + void flush(); + + struct generator_error : std::runtime_error + { + explicit generator_error(const std::string& what_arg) : + std::runtime_error(what_arg) {} + }; + +private: + boost::shared_ptr impl; +}; + +} // namespace dc + + +#endif // _SERIALIZER_HH_ + diff --git a/src/settings.cc b/src/settings.cc new file mode 100644 index 0000000..475bdad --- /dev/null +++ b/src/settings.cc @@ -0,0 +1,100 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#include +#include + +#include "settings.hh" + + +namespace dc { + + +settings::settings(int argc, char* argv[]) +{ + parseArgs(argc, argv); +} + + +void settings::parseArgs(int argc, char* argv[]) +{ + for (int i = 1; i < argc; i++) + { + char* where = strchr(argv[i], (int)'='); + + if (where) + { + std::string key(argv[i], (size_t)(where - argv[i])); + std::string stringValue(where + 1); + + std::stringstream stream; + stream << stringValue << std::endl; + + deserializer in(stream); + + try + { + serializable_ptr value(in.deserialize()); + map[key] = value; + } + catch (std::exception e) + { + map[key] = serializable_ptr(new wrapped_string(stringValue)); + } + } + } +} + +void settings::loadFromFile(std::string filePath) +{ + deserializer in(filePath, true); + + try + { + serializable_ptr obj = in.deserialize(); + std::map dict; + if (obj && obj->get(dict)) + { + map.insert(dict.begin(), dict.end()); + } + else + { + std::cerr << "The settings file " << filePath << + " does not contain any valid settings." << std::endl; + } + } + catch (deserializer::parser_error e) + { + std::cerr << "Cannot load settings from " << filePath << + " because an exception was thrown: " << e.what() << std::endl; + } +} + + +} // namepsace dc + diff --git a/src/settings.hh b/src/settings.hh new file mode 100644 index 0000000..5cb0972 --- /dev/null +++ b/src/settings.hh @@ -0,0 +1,84 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#ifndef _SETTINGS_HH_ +#define _SETTINGS_HH_ + +/** + * @file settings.hh + * Load, store, save program settings. + */ + +#include +#include + +#include "singleton.hh" +#include "serializable.hh" + + +namespace dc { + + +class settings : public singleton +{ +public: + settings() {} + settings(int argc, char* argv[]); + + void parseArgs(int argc, char* argv[]); + void loadFromFile(std::string filePath); + + template + bool get(const std::string& key, T& value); + +private: + std::map map; +}; + + +template +bool settings::get(const std::string& key, T& value) +{ + std::map::const_iterator i = map.find(key); + + if (i != map.end()) + { + serializable_ptr obj = (*i).second; + return obj->get(value); + } + else + { + return false; + } +} + + +} // namepsace dc + +#endif // _SETTINGS_HH_ + diff --git a/src/singleton.hh b/src/singleton.hh new file mode 100644 index 0000000..9cbb385 --- /dev/null +++ b/src/singleton.hh @@ -0,0 +1,78 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#ifndef _SINGLETON_HH_ +#define _SINGLETON_HH_ + +#include + + +template +class singleton +{ + static T* ptr; + +public: + singleton() + { + if (!ptr) + { + // This hack is from Game Programming Gems. + long long offset = (long long)(T*)1 - (long long)(singleton*)(T*)1; + ptr = (T*)((long long)this + offset); + } + } + ~singleton() + { + long long offset = (long long)(T*)1 - (long long)(singleton*)(T*)1; + if (ptr == (T*)((long long)this + offset)) + { + ptr = 0; + } + } + + static T& instance() + { + if (!ptr) + { + throw std::runtime_error("accessing uninstantiated singleton"); + } + return *ptr; + } + + static T* instancePtr() + { + return ptr; + } +}; + +template T* singleton::ptr = 0; + + +#endif // _SINGLETON_HH_ + diff --git a/src/stringtools.cc b/src/stringtools.cc new file mode 100644 index 0000000..8954f9b --- /dev/null +++ b/src/stringtools.cc @@ -0,0 +1,153 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#include + +#include "ConvertUTF.h" + +#include "stringtools.hh" + + +namespace dc { + + +std::wstring multiToWide(const std::string& multiStr) +{ + size_t length = multiStr.length(); + + if (sizeof(wchar_t) == 2) + { + wchar_t* wideStr = new wchar_t[length + 1]; + + const UTF8* srcStart = reinterpret_cast(multiStr.c_str()); + const UTF8* srcEnd = srcStart + length; + UTF16* targetStart = reinterpret_cast(wideStr); + UTF16* targetEnd = targetStart + length+1; + + ConversionResult res = ConvertUTF8toUTF16(&srcStart, srcEnd, + &targetStart, targetEnd, lenientConversion); + if (res != conversionOK) + { + delete[] wideStr; + throw std::runtime_error("bad conversion from multi to wide characters"); + } + + *targetStart = 0; + std::wstring convertedStr(wideStr); + delete[] wideStr; + return convertedStr; + } + else if (sizeof(wchar_t) == 4) + { + wchar_t* wideStr = new wchar_t[length]; + + const UTF8* srcStart = reinterpret_cast(multiStr.c_str()); + const UTF8* srcEnd = srcStart + length; + UTF32* targetStart = reinterpret_cast(wideStr); + UTF32* targetEnd = targetStart + length; + + ConversionResult res = ConvertUTF8toUTF32(&srcStart, srcEnd, + &targetStart, targetEnd, lenientConversion); + if (res != conversionOK) + { + delete[] wideStr; + throw std::runtime_error("bad conversion from multi to wide characters"); + } + + *targetStart = 0; + std::wstring convertedStr(wideStr); + delete[] wideStr; + return convertedStr; + } + else + { + throw std::runtime_error("unknown size of wide characters"); + } + return L""; +} + +std::string wideToMulti(const std::wstring& wideStr) +{ + size_t length = wideStr.length(); + + if (sizeof(wchar_t) == 2) + { + size_t multiLength = 3 * length + 1; + char* multiStr = new char[multiLength]; + + const UTF16* srcStart = reinterpret_cast(wideStr.c_str()); + const UTF16* srcEnd = srcStart + length; + UTF8* targetStart = reinterpret_cast(multiStr); + UTF8* targetEnd = targetStart + multiLength; + + ConversionResult res = ConvertUTF16toUTF8(&srcStart, srcEnd, + &targetStart, targetEnd, lenientConversion); + if (res != conversionOK) + { + delete[] multiStr; + throw std::runtime_error("bad conversion from wide to multi-characters"); + } + + *targetStart = 0; + std::string convertedStr(multiStr); + delete[] multiStr; + return convertedStr; + } + else if (sizeof(wchar_t) == 4) + { + size_t multiLength = 4 * length + 1; + char* multiStr = new char[multiLength]; + + const UTF32* srcStart = reinterpret_cast(wideStr.c_str()); + const UTF32* srcEnd = srcStart + length; + UTF8* targetStart = reinterpret_cast(multiStr); + UTF8* targetEnd = targetStart + multiLength; + + ConversionResult res = ConvertUTF32toUTF8(&srcStart, srcEnd, + &targetStart, targetEnd, lenientConversion); + if (res != conversionOK) + { + delete[] multiStr; + throw std::runtime_error("bad conversion from wide to multi-characters"); + } + + *targetStart = 0; + std::string convertedStr(multiStr); + delete[] multiStr; + return convertedStr; + } + else + { + throw std::runtime_error("unknown size of wide characters"); + } + return ""; +} + + +} // namespace dc + diff --git a/src/stringtools.hh b/src/stringtools.hh new file mode 100644 index 0000000..9bf4577 --- /dev/null +++ b/src/stringtools.hh @@ -0,0 +1,44 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#ifndef _STRINGTOOLS_HH_ +#define _STRINGTOOLS_HH_ + +#include + + +namespace dc { + +std::wstring multiToWide(const std::string& multiStr); +std::string wideToMulti(const std::wstring& wideStr); + +} // namespace dc + + +#endif // _STRINGTOOLS_HH_ + diff --git a/src/texture.cc b/src/texture.cc new file mode 100644 index 0000000..b91d23a --- /dev/null +++ b/src/texture.cc @@ -0,0 +1,308 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#include +#include + +#include + +#include +#include + +#include "dispatcher.hh" +#include "opengl.hh" + +#include "texture.hh" + + +namespace dc { + + +class texture_impl +{ + void unloadFromGL() + { + if (object) + { + glDeleteTextures(1, &object); + object = 0; + } + } + + void contextRecreated(const notification& note) + { + unloadFromGL(); + uploadToGL(); + } + +public: + texture_impl(const std::string& filePath, bool keepInMemory) + : object(0), imageData(0), imagePath(filePath), keepData(keepInMemory) + { + dispatcher::instance().addHandler("video.context_recreated", + boost::bind(&texture_impl::contextRecreated, this, _1), + this); + } + + ~texture_impl() + { + dispatcher::instance().removeHandler(this); + + if (imageData) + { + SDL_FreeSurface(imageData); + } + unloadFromGL(); + } + + + static int powerOfTwo(int input) + { + int value = 1; + + while (value < input) + { + value <<= 1; + } + return value; + } + + // Adapted from some public domain code. This code is common enough that it + // really should be included in SDL_image... + static SDL_Surface* prepareImageForGL(SDL_Surface* surface) + { + /* Use the surface width and height expanded to powers of 2 */ + int w = powerOfTwo(surface->w); + int h = powerOfTwo(surface->h); + + SDL_Surface* image = SDL_CreateRGBSurface + ( + SDL_SWSURFACE, + w, h, + 32, +#if SDL_BYTEORDER == SDL_LIL_ENDIAN /* OpenGL RGBA masks */ + 0x000000FF, + 0x0000FF00, + 0x00FF0000, + 0xFF000000 +#else + 0xFF000000, + 0x00FF0000, + 0x0000FF00, + 0x000000FF +#endif + ); + + if (!image) + { + return 0; + } + + // Save the alpha blending attributes. + Uint32 savedFlags = surface->flags&(SDL_SRCALPHA|SDL_RLEACCELOK); + Uint8 savedAlpha = surface->format->alpha; + if (savedFlags & SDL_SRCALPHA) + { + SDL_SetAlpha(surface, 0, 0); + } + + SDL_Rect srcArea, destArea; + /* Copy the surface into the GL texture image */ + srcArea.x = 0; destArea.x = 0; + /* Copy it in at the bottom, because we're going to flip + this image upside-down in a moment + */ + srcArea.y = 0; destArea.y = h - surface->h; + srcArea.w = surface->w; + srcArea.h = surface->h; + SDL_BlitSurface(surface, &srcArea, image, &destArea); + + /* Restore the alpha blending attributes */ + if (savedFlags & SDL_SRCALPHA) + { + SDL_SetAlpha(surface, savedFlags, savedAlpha); + } + + /* Turn the image upside-down, because OpenGL textures + start at the bottom-left, instead of the top-left + */ + Uint8 line[image->pitch]; + + /* These two make the following more readable */ + Uint8 *pixels = static_cast(image->pixels); + Uint16 pitch = image->pitch; + int ybegin = 0; + int yend = image->h - 1; + + // TODO: consider if this lock is legal/appropriate + if (SDL_MUSTLOCK(image)) { SDL_LockSurface(image); } + while (ybegin < yend) + { + memcpy(line, pixels + pitch*ybegin, pitch); + memcpy(pixels + pitch*ybegin, pixels + pitch*yend, pitch); + memcpy(pixels + pitch*yend, line, pitch); + ybegin++; + yend--; + } + if (SDL_MUSTLOCK(image)) { SDL_UnlockSurface(image); } + + return image; + } + + + void loadImageData() + { + SDL_Surface* surface; + + surface = IMG_Load(imagePath.c_str()); + + if (!surface) + { + throw std::runtime_error("could not load image data from file"); + } + + imageData = prepareImageForGL(surface); + SDL_FreeSurface(surface); + + if (!imageData) + { + throw std::runtime_error("error in preparing image data for GL"); + } + + if (imageData->format->BytesPerPixel == 3) + { + mode = GL_RGB; + } + else if (imageData->format->BytesPerPixel == 4) + { + mode = GL_RGBA; + } + else + { + SDL_FreeSurface(imageData); + throw std::runtime_error("image must be 24 or 32 bpp"); + } + + width = imageData->w; + height = imageData->h; + } + + + void uploadToGL() + { + if (object) + { + // Already loaded. + return; + } + + if (!imageData) + { + loadImageData(); + } + + glGenTextures(1, &object); + + glBindTexture(GL_TEXTURE_2D, object); + + glTexImage2D + ( + GL_TEXTURE_2D, + 0, + mode, + imageData->w, + imageData->h, + 0, + mode, + GL_UNSIGNED_BYTE, + imageData->pixels + ); + + // These default filters can be changed later... + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); + + if (!keepData) + { + SDL_FreeSurface(imageData); + imageData = 0; + } + } + + + unsigned width; + unsigned height; + int mode; + GLuint object; + + std::string imagePath; + bool keepData; + SDL_Surface* imageData; +}; + + +texture::texture(const std::string& filePath, bool keepInMemory) + : impl(new texture_impl(filePath, keepInMemory)) {} + + +const std::string& texture::filePath() +{ + return impl->imagePath; +} + + +void texture::bind() +{ + glBindTexture(GL_TEXTURE_2D, object()); +} + +GLuint texture::object() +{ + if (!impl->object) + { + impl->uploadToGL(); + } + + return impl->object; +} + + +unsigned texture::width() +{ + return impl->width; +} + +unsigned texture::height() +{ + return impl->height; +} + + + +} // namespace dc + diff --git a/src/texture.hh b/src/texture.hh new file mode 100644 index 0000000..6fa4e32 --- /dev/null +++ b/src/texture.hh @@ -0,0 +1,63 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#ifndef _TEXTURE_HH_ +#define _TEXTURE_HH_ + +#include + +#include "opengl.hh" + + +namespace dc { + + +class texture_impl; + +class texture +{ +public: + texture(const std::string& filePath, bool keepInMemory = false); + + const std::string& filePath(); + + void bind(); + GLuint object(); + + unsigned width(); + unsigned height(); + +private: + boost::shared_ptr impl; +}; + + +} // namespace dc + +#endif // _TEXTURE_HH_ + diff --git a/src/thread.hh b/src/thread.hh new file mode 100644 index 0000000..990f9b0 --- /dev/null +++ b/src/thread.hh @@ -0,0 +1,215 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#ifndef _THREAD_HH_ +#define _THREAD_HH_ + +/** + * @file thread.hh + * Light C++ wrapper around SDL threads. + */ + +#include +#include + + +namespace dc { +namespace thread { + +// +// The detach function detaches a separate thread by calling 'func' with +// the 'arg' parameter. +// + +typedef SDL_Thread* thread; + +typedef boost::function function; + + +int detach_(void* arg) +{ + function func = *(function*)arg; + int ret = func(); + + delete (function*)arg; + return ret; +} + +thread detach(const function& func) +{ + thread t; + function* fcopy = new function(func); + + t = SDL_CreateThread(detach_, (void*)fcopy); + if (t == 0) delete fcopy; + return t; +} + + +int wait(thread t) +{ + int i; + SDL_WaitThread(t, &i); + return i; +} + +void kill(thread t) +{ + SDL_KillThread(t); +} + + +// +// The identifier function returns a unique integer for the calling thread. +// + +unsigned int identifier() +{ + return SDL_ThreadID(); +} + +unsigned int identifier(thread t) +{ + return SDL_GetThreadID(t); +} + + +// ============================================================================= + +class mutex +{ + friend class condition; + +public: + mutex() { mutex_ = SDL_CreateMutex(); } + ~mutex() { SDL_DestroyMutex(mutex_); } + + bool acquireLock() { return (SDL_LockMutex(mutex_) == 0); } + bool releaseLock() { return (SDL_UnlockMutex(mutex_) == 0); } + + class lock + { + friend class condition; + + public: + lock(mutex& m) { mutex_ = &m; isLocked_ = false; } + ~lock() { if (isLocked_) release(); } + + bool acquire() { return (isLocked_ = mutex_->acquireLock()); } + bool release() { return mutex_->releaseLock(); isLocked_ = false; } + bool isLocked() const { return isLocked_; } + + protected: + mutex* mutex_; + bool isLocked_; + }; + + class scoped_lock : public lock + { + public: + scoped_lock(mutex& m) : lock(m) { acquire(); } + }; + +private: + SDL_mutex* mutex_; +}; + +// ============================================================================= + +class condition +{ +public: + condition() { condition_ = SDL_CreateCond(); } + ~condition() { SDL_DestroyCond(condition_); } + + bool wait(mutex::lock& l) + { + return (SDL_CondWait(condition_, l.mutex_->mutex_) == 0); + } + bool wait(mutex::lock& l, unsigned ms) + { + // TODO: For consistency, this function should take seconds, not ms. + return (SDL_CondWaitTimeout(condition_, l.mutex_->mutex_, ms) == 0); + } + + bool notify() { return (SDL_CondSignal(condition_) == 0); } + bool notifyAll() { return (SDL_CondBroadcast(condition_) == 0); } + +private: + SDL_cond* condition_; +}; + +// ============================================================================= + +class semaphore +{ +public: + semaphore(unsigned int value) { semaphore_ = SDL_CreateSemaphore(value); } + ~semaphore() { SDL_DestroySemaphore(semaphore_); } + + bool acquireLock() { return (SDL_SemWait(semaphore_) == 0); } + bool tryLock() { return (SDL_SemTryWait(semaphore_) == 0); } + bool tryLock(unsigned ms) + { + // TODO: For consistency, this function should take seconds, not ms. + return (SDL_SemWaitTimeout(semaphore_, ms) == 0); + } + bool releaseLock() { return (SDL_SemPost(semaphore_) == 0); } + + class lock + { + public: + lock(semaphore& m) { semaphore_ = &m; isLocked_ = false; } + ~lock() { if (isLocked_) release(); } + + bool acquire() { return (isLocked_ = semaphore_->acquireLock()); } + bool release() { return semaphore_->releaseLock(); isLocked_ = false; } + bool isLocked() const { return isLocked_; } + + protected: + semaphore* semaphore_; + bool isLocked_; + }; + + class scoped_lock : public lock + { + public: + scoped_lock(semaphore& m) : lock(m) { acquire(); } + }; + +private: + SDL_sem* semaphore_; +}; + + +} // namespace thread +} // namespace dc + + +#endif // _THREAD_HH_ + diff --git a/src/timer.cc b/src/timer.cc new file mode 100644 index 0000000..2c7a1cb --- /dev/null +++ b/src/timer.cc @@ -0,0 +1,101 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#include +#include +#include + +#include + +#include "timer.hh" + + +namespace dc { + + +#if HAVE_LIBRT + +scalar ticks() +{ + struct timespec ts; + + if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0) + { + throw std::runtime_error("cannot access monotonic clock"); + } + + return scalar(ts.tv_sec) + scalar(ts.tv_nsec) / 1000000000.0; +} + +void sleep(scalar seconds, bool absolute) +{ + struct timespec ts; + int ret; + + if (!absolute) seconds += ticks(); + ts.tv_sec = time_t(seconds); + ts.tv_nsec = time_t((seconds - scalar(ts.tv_sec)) * 1000000000.0); + + do + { + ret = clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, &ts, 0); + } + while (ret == -1 && errno == EINTR); +} + +#else // ! HAVE_LIBRT + +// If we don't have librt, we'll have to use different timing methods. + +scalar ticks() +{ + unsigned ms = SDL_GetTicks(); + return scalar(ms / 1000) + scalar(ms % 1000) / 1000.0; +} + +void sleep(scalar seconds, bool absolute) +{ + struct timespec ts; + int ret; + + if (absolute) seconds -= ticks(); + ts.tv_sec = time_t(seconds); + ts.tv_nsec = time_t((seconds - scalar(ts.tv_sec)) * 1000000000.0); + + do + { + ret = nanosleep(&ts, &ts); + } + while (ret == -1 && errno == EINTR); +} + +#endif // HAVE_LIBRT + + +} // namespace dc + diff --git a/src/timer.hh b/src/timer.hh new file mode 100644 index 0000000..3de2a95 --- /dev/null +++ b/src/timer.hh @@ -0,0 +1,67 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#ifndef _TIMER_HH_ +#define _TIMER_HH_ + +/** + * @file timer.hh + * Functions for measuring time in a friendly unit. + */ + +#include "math.hh" + + +namespace dc { + + +/** + * Get the number of seconds since a fixed, arbitrary point in the past. + * @return Seconds. + */ + +scalar ticks(); + + +/** + * Put the thread to sleep for a certain period of time. If absolute is true, + * then it will sleep until seconds after the fixed time in the past. If + * absolute is false, it will sleep for seconds starting now. Unlike system + * sleep functions, this one automatically resumes sleep if sleep was + * interrupted by a signal. Therefore, calling this function is guaranteed to + * sleep for the requested amount of time. + */ + +void sleep(scalar seconds, bool absolute = false); + + +} // namespace dc + + +#endif // _TIMER_HH_ + diff --git a/src/vector.hh b/src/vector.hh new file mode 100644 index 0000000..f5c18ba --- /dev/null +++ b/src/vector.hh @@ -0,0 +1,372 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#ifndef _VECTOR_HH_ +#define _VECTOR_HH_ + +/** + * @file vector.hh + * Vector classes. + */ + +#include +#include + +#include "math.hh" +#include "random.hh" + + +// TODO: project, reflect, random, normal (of plane), orthonormal + +namespace dc { + +/** + * 2-dimensional vector. + */ + +struct vector2 +{ + vector2() {} + vector2(scalar X, scalar Y) : x(X), y(Y) {} + vector2(scalar v[2]) : x(v[0]), y(v[1]) {} + + const scalar& operator[](int i) const + { + assert(i >= 0 && i <= 1 && "Index into vector2 out of bounds."); + return array[i]; + } + scalar& operator[](int i) + { + assert(i >= 0 && i <= 1 && "Index into vector2 out of bounds."); + return array[i]; + } + + vector2 operator+(const vector2& v) const + { + return vector2(x + v.x, y + v.y); + } + vector2 operator-(const vector2& v) const + { + return vector2(x - v.x, y - v.y); + } + vector2 operator*(scalar s) const + { + return vector2(x * s, y * s); + } + vector2 operator/(scalar s) const + { + return vector2(x / s, y / s); + } + + vector2& operator+=(const vector2& v) + { + x += v.x; y += v.y; + return *this; + } + vector2& operator-=(const vector2& v) + { + x -= v.x; y -= v.y; + return *this; + } + vector2& operator*=(scalar s) + { + x *= s; y *= s; + return *this; + } + vector2& operator/=(scalar s) + { + x /= s; y /= s; + return *this; + } + + vector2 operator-() const + { + return vector2(-x, -y); + } + + scalar dot(const vector2& v) const /// dot product + { + return x * v.x + y * v.y; + } + scalar angleBetween(const vector2& v) const + { + scalar lens = length() * v.length(); + if (lens == 0.0) { return HUGE_VAL; } + return std::acos(dot(v) / lens); + } + + void normalize() /// scale such that length is one + { + scalar len = length(); + if (len != 0.0) { *this /= len; } + } + vector2 normalized() const + { + scalar len = length(); + if (len != 0.0) { return *this / len; } + return vector2(0.0, 0.0); + } + + scalar length2() const /// magnitude squared + { + return dot(*this); + } + scalar length() const /// magnitude + { + return std::sqrt(length2()); + } + + bool operator==(const vector2& v) const + { + return equals(x, v.x) && equals(y, v.y); + } + bool operator!=(const vector2& v) const + { + return !(*this == v); + } + + + static vector2 random() + { + vector2 v = random(-1.0, 1.0); + v.normalize(); + return v; + } + + static vector2 random(scalar lower, scalar upper) + { + return vector2(rng::get(lower, upper), + rng::get(lower, upper)); + } + + + union + { + struct + { + scalar x, y; ///< euler coordinates + }; + scalar array[2]; ///< array + }; + + static vector2 zero; ///< zero vector +}; + +inline vector2 operator*(scalar s, const vector2& v) +{ + return v * s; +} +inline vector2 operator/(scalar s, const vector2& v) +{ + return vector2(s / v.x, s / v.y); +} + +inline std::ostream& operator<<(std::ostream& output, const vector2& v) +{ + output << "(" << v.x << "," << v.y << ")"; + return output; +} + + +typedef vector2 point; + + +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +/** + * 3-dimensional vector. + */ + +struct vector3 +{ + vector3() {} + vector3(scalar X, scalar Y, scalar Z) : x(X), y(Y), z(Z) {} + vector3(scalar v[3]) : x(v[0]), y(v[1]), z(v[2]) {} + + const scalar& operator[](int i) const + { + assert(i >= 0 && i <= 2 && "Index into vector3 out of bounds."); + return array[i]; + } + scalar& operator[](int i) + { + assert(i >= 0 && i <= 2 && "Index into vector3 out of bounds."); + return array[i]; + } + + vector3 operator+(const vector3& v) const + { + return vector3(x + v.x, y + v.y, z + v.z); + } + vector3 operator-(const vector3& v) const + { + return vector3(x - v.x, y - v.y, z - v.z); + } + vector3 operator*(scalar s) const + { + return vector3(x * s, y * s, z * s); + } + vector3 operator/(scalar s) const + { + return vector3(x / s, y / s, z / s); + } + + vector3& operator+=(const vector3& v) + { + x += v.x; y += v.y; z += v.z; + return *this; + } + vector3& operator-=(const vector3& v) + { + x -= v.x; y -= v.y; z -= v.z; + return *this; + } + vector3& operator*=(scalar s) + { + x *= s; y *= s; z *= s; + return *this; + } + vector3& operator/=(scalar s) + { + x /= s; y /= s; z /= s; + return *this; + } + + vector3 operator-() const + { + return vector3(-x, -y, -z); + } + + scalar dot(const vector3& v) const /// dot product + { + return x * v.x + y * v.y + z * v.z; + } + vector3 cross(const vector3& v) const /// cross product + { + return vector3(y * v.z - z * v.y, + z * v.x - x * v.z, + x * v.y - y * v.x); + } + + scalar angleBetween(const vector3& v) const + { + scalar lens = length() * v.length(); + if (lens == 0.0) { return HUGE_VAL; } + return std::acos(dot(v) / lens); + } + + void normalize() /// scale such that length is one + { + scalar len = length(); + if (len != 0.0) { *this /= len; } + } + vector3 normalized() const + { + scalar len = length(); + if (len != 0.0) { return *this / len; } + return vector3(0.0, 0.0, 0.0); + } + + scalar length2() const /// magnitude squared + { + return dot(*this); + } + scalar length() const /// magnitude + { + return std::sqrt(length2()); + } + + bool operator==(const vector3& v) const + { + return equals(x, v.x) && equals(y, v.y) && equals(z, v.z); + } + bool operator!=(const vector3& v) const + { + return !(*this == v); + } + + + static vector3 random() + { + vector3 v = random(-1.0, 1.0); + v.normalize(); + return v; + } + + static vector3 random(scalar lower, scalar upper) + { + return vector3(rng::get(lower, upper), + rng::get(lower, upper), + rng::get(lower, upper)); + } + + + union + { + struct + { + scalar x, y, z; ///< euler coordinates + }; + struct + { + scalar u, v, w; ///< texture coordinates + }; + struct + { + scalar r, g, b; ///< color intensities + }; + scalar array[3]; ///< array + }; + + static vector3 zero; ///< zero vector +}; + +inline vector3 operator*(scalar s, const vector3& v) +{ + return v * s; +} +inline vector3 operator/(scalar s, const vector3& v) +{ + return vector3(s / v.x, s / v.y, s / v.z); +} + +inline std::ostream& operator<<(std::ostream& output, const vector3& v) +{ + output << "(" << v.x << "," << v.y << "," << v.z << ")"; + return output; +} + + +typedef vector3 color; + + +} // namespace dc + + +#endif // _VECTOR_HH_ + diff --git a/src/video.cc b/src/video.cc new file mode 100644 index 0000000..715c407 --- /dev/null +++ b/src/video.cc @@ -0,0 +1,347 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#include + +#include "serializable.hh" +#include "settings.hh" + +#include "video.hh" + + +namespace dc { + + +video::video() +{ + std::string caption; + if (settings::instance().get("video.caption", caption)) + { + init(attribs_, caption); + } + else + { + init(attribs_, "Untitled"); + } +} + +video::video(const attributes& attribs, const std::string& caption) +{ + init(attribs, caption); +} + +video::video(const attributes& attribs) +{ + std::string caption; + if (settings::instance().get("video.caption", caption)) + { + init(attribs, caption); + } + else + { + init(attribs, "Untitled"); + } +} + +video::video(const std::string& caption) +{ + init(attribs_, caption); +} + +void video::init(const attributes& attribs, const std::string& caption) +{ + context_ = 0; + flags_ = 0; + attribs_ = attribs; + + setFull(attribs.fullscreen); + setResizable(attribs.resizable); + setOpenGLAttributes(); + setCaption(caption); + setCursorVisible(attribs.cursorVisible); + setCursorGrab(attribs.cursorGrab); + setVideoMode(attribs.mode); +} + +void video::recreateContext() +{ + SDL_FreeSurface(context_); + context_ = 0; + setVideoMode(attribs_.mode); +} + +void video::setOpenGLAttributes() +{ + SDL_GL_SetAttribute(SDL_GL_RED_SIZE, attribs_.colorBuffer[0]); + SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, attribs_.colorBuffer[1]); + SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, attribs_.colorBuffer[2]); + SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, attribs_.colorBuffer[3]); + SDL_GL_SetAttribute(SDL_GL_BUFFER_SIZE, attribs_.frameBuffer); + SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, attribs_.doubleBuffer); + SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, attribs_.depthBuffer); + SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, attribs_.stencilBuffer); + SDL_GL_SetAttribute(SDL_GL_ACCUM_RED_SIZE, attribs_.accumBuffer[0]); + SDL_GL_SetAttribute(SDL_GL_ACCUM_GREEN_SIZE, attribs_.accumBuffer[1]); + SDL_GL_SetAttribute(SDL_GL_ACCUM_BLUE_SIZE, attribs_.accumBuffer[2]); + SDL_GL_SetAttribute(SDL_GL_ACCUM_ALPHA_SIZE, attribs_.accumBuffer[3]); + SDL_GL_SetAttribute(SDL_GL_STEREO, attribs_.stereo); + SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, attribs_.multisampleBuffers); + SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, attribs_.multisampleSamples); + SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, attribs_.swapControl); + SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, attribs_.hardwareonly); +} + + +video::~video() +{ + SDL_FreeSurface(context_); +} + + +void video::setVideoMode(const long mode[3]) +{ + if (mode != attribs_.mode || !context_) + { + if (context_) SDL_FreeSurface(context_); + + context_ = SDL_SetVideoMode(mode[0], mode[1], mode[2], + SDL_OPENGL | flags_); + + if (context_) + { + attribs_.mode[0] = mode[0]; + attribs_.mode[1] = mode[1]; + attribs_.mode[2] = mode[2]; + } + else throw std::runtime_error(SDL_GetError()); + } +} + +video::attributes video::getAttributes() const +{ + return attribs_; +} + + +void video::resize(int width, int height) +{ + long mode[] = {width, height, attribs_.mode[2]}; + setVideoMode(mode); +} + +bool video::iconify() +{ + return SDL_WM_IconifyWindow(); +} + + +void video::setCaption(const std::string& caption) +{ + SDL_WM_SetCaption(caption.c_str(), 0); +} + +std::string video::getCaption() const +{ + char* str; + SDL_WM_GetCaption(&str, 0); + return std::string(str); +} + + +void video::setFull(bool full) +{ + if (full != isFull() || !context_) + { + if (context_) + { + flags_ ^= SDL_FULLSCREEN; + +#if defined(linux) || defined(__linux) || defined(__linux__) + if (SDL_WM_ToggleFullScreen(context_) == 0) +#endif + recreateContext(); + } + else + { + if (full) flags_ |= SDL_FULLSCREEN; + else flags_ &= ~SDL_FULLSCREEN; + } + } +} + +void video::toggleFull() +{ + setFull(!isFull()); +} + +bool video::isFull() const +{ + return flags_ & SDL_FULLSCREEN; +} + + +void video::setCursorVisible(bool hasCursor) +{ + SDL_ShowCursor(hasCursor? SDL_ENABLE : SDL_DISABLE); +} + +void video::toggleCursorVisible() +{ + setCursorVisible(!isCursorVisible()); +} + +bool video::isCursorVisible() const +{ + return (SDL_ShowCursor(SDL_QUERY) == SDL_ENABLE); +} + + +void video::setResizable(bool resizable) +{ + if (resizable != isResizable() || !context_) + { + if (context_) + { + flags_ ^= SDL_RESIZABLE; + recreateContext(); + } + else + { + if (resizable) flags_ |= SDL_RESIZABLE; + else flags_ &= ~SDL_RESIZABLE; + } + } +} + +void video::toggleResizable() +{ + setResizable(!isResizable()); +} + +bool video::isResizable() const +{ + return flags_ & SDL_RESIZABLE; +} + + +bool video::isCursorGrab() const +{ + return (SDL_WM_GrabInput(SDL_GRAB_QUERY) == SDL_GRAB_ON); +} + +void video::toggleCursorGrab() +{ + setCursorGrab(!isCursorGrab()); +} + +void video::setCursorGrab(bool cursorGrab) +{ + SDL_WM_GrabInput(cursorGrab? SDL_GRAB_ON : SDL_GRAB_OFF); +} + + +void video::makeActive() +{ + // NOP until the day SDL supports more than only one window. + // Still waiting... +} + +void video::swap() +{ + SDL_GL_SwapBuffers(); +} + + +video::attributes::attributes() +{ + // Set some sane GL and window defaults (see SDL_video.c:217) + colorBuffer[0] = 3; + colorBuffer[1] = 3; + colorBuffer[2] = 2; + colorBuffer[3] = 0; + frameBuffer = 0; + doubleBuffer = true; + depthBuffer = 16; + stencilBuffer = 0; + accumBuffer[0] = 0; + accumBuffer[1] = 0; + accumBuffer[2] = 0; + accumBuffer[3] = 0; + stereo = false; + multisampleBuffers = 0; + multisampleSamples = 0; + swapControl = false; + hardwareonly = false; + mode[0] = 640; + mode[1] = 480; + mode[2] = 0; + fullscreen = false; + resizable = false; + cursorVisible = true; + cursorGrab = false; + + std::vector colors; + settings::instance().get("video.colorbuffers", colors); + if (colors.size() > 0) colors[0]->get(colorBuffer[0]); + if (colors.size() > 1) colors[1]->get(colorBuffer[1]); + if (colors.size() > 2) colors[2]->get(colorBuffer[2]); + if (colors.size() > 3) colors[3]->get(colorBuffer[3]); + + settings::instance().get("video.framebuffer", frameBuffer); + settings::instance().get("video.doublebuffer", doubleBuffer); + settings::instance().get("video.depthbuffer", depthBuffer); + settings::instance().get("video.stencilbuffer", stencilBuffer); + + std::vector accum; + settings::instance().get("video.accumbuffers", accum); + if (accum.size() > 0) accum[0]->get(accumBuffer[0]); + if (accum.size() > 1) accum[1]->get(accumBuffer[1]); + if (accum.size() > 2) accum[2]->get(accumBuffer[2]); + if (accum.size() > 3) accum[3]->get(accumBuffer[3]); + + settings::instance().get("video.stereo", stereo); + settings::instance().get("video.multiesamplebuffers", multisampleBuffers); + settings::instance().get("video.multiesamplesamples", multisampleSamples); + settings::instance().get("video.swapcontrol", swapControl); + settings::instance().get("video.hardwareonly", hardwareonly); + + std::vector dimensions; + settings::instance().get("video.mode", dimensions); + if (dimensions.size() > 0) dimensions[0]->get(mode[0]); + if (dimensions.size() > 1) dimensions[1]->get(mode[1]); + if (dimensions.size() > 2) dimensions[2]->get(mode[2]); + + settings::instance().get("video.fullscreen", fullscreen); + settings::instance().get("video.resizable", resizable); + settings::instance().get("video.cursor", cursorVisible); + settings::instance().get("video.grab", cursorGrab); +} + + +} // namespace dc + diff --git a/src/video.hh b/src/video.hh new file mode 100644 index 0000000..a16181c --- /dev/null +++ b/src/video.hh @@ -0,0 +1,120 @@ + +/******************************************************************************* + + Copyright (c) 2009, Charles McGarvey + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +*******************************************************************************/ + +#ifndef _VIDEO_HH_ +#define _VIDEO_HH_ + +#include + +#include + +#include + + +namespace dc { + + +class video +{ +public: + struct attributes + { + // OpenGL attributes + long colorBuffer[4]; // rgba + long frameBuffer; + bool doubleBuffer; + long depthBuffer; + long stencilBuffer; + long accumBuffer[4]; // rgba + bool stereo; + long multisampleBuffers; + long multisampleSamples; + bool swapControl; + bool hardwareonly; + + // Window attributes + long mode[3]; // width, height, bpp + bool fullscreen; + bool resizable; + bool cursorVisible; + bool cursorGrab; + + attributes(); + }; + + video(); + video(const attributes& attribs); + video(const attributes& attribs, const std::string& caption); + video(const std::string& caption); + ~video(); + + void setVideoMode(const long mode[3]); + attributes getAttributes() const; + + void resize(int width, int height); + bool iconify(); + + void setCaption(const std::string& caption); + std::string getCaption() const; + + void setFull(bool full); + void toggleFull(); + bool isFull() const; + + void setCursorVisible(bool hasCursor); + void toggleCursorVisible(); + bool isCursorVisible() const; + + void setResizable(bool resizable); + void toggleResizable(); + bool isResizable() const; + + void setCursorGrab(bool cursorGrab); + void toggleCursorGrab(); + bool isCursorGrab() const; + + void makeActive(); + void swap(); + +private: + void init(const attributes& attribs, const std::string& caption); + void recreateContext(); + void setOpenGLAttributes(); + + SDL_Surface* context_; + unsigned flags_; + attributes attribs_; +}; + +typedef boost::shared_ptr