diff --git a/doc/Documentation.hpp b/doc/Documentation.hpp index 0d0d154..ea43cca 100644 --- a/doc/Documentation.hpp +++ b/doc/Documentation.hpp @@ -50,18 +50,21 @@ /// @defgroup Events Events /// @brief Facilities for object-oriented event handling using callbacks. +/// @defgroup Graphics Graphics +/// @brief Miscellaneous graphics-related functionality, such as specialized sprites or color helpers. + /// @defgroup Math Math /// @brief Mathematical functionality, such as random number generator or trigonometric wrappers. -/// @defgroup Multimedia Multimedia -/// @brief Miscellaneous SFML related functionality, such as shapes and colors. - /// @defgroup Particles Particles /// @brief Contains a particle system based on sf::Texture. The module also provides several affector and emitter classes. /// @defgroup Resources Resources /// @brief Provides a resource manager for various resource types as well as the possibility to access them safely. +/// @defgroup Shapes Shapes +/// @brief Extensions for sf::Shape like concave shapes or predefined figures. + /// @defgroup Time Time /// @brief Supplies classes to measure time. These are convenient wrappers around sf::Clock. diff --git a/examples/Action.cpp b/examples/Action.cpp index 5faecd9..0bbdbeb 100644 --- a/examples/Action.cpp +++ b/examples/Action.cpp @@ -1,6 +1,6 @@ #include -#include +#include #include #include diff --git a/examples/Shapes.cpp b/examples/Shapes.cpp index b77a7a2..a52a02e 100644 --- a/examples/Shapes.cpp +++ b/examples/Shapes.cpp @@ -1,11 +1,11 @@ -#include +#include #include int main() { // Create render window - sf::RenderWindow window(sf::VideoMode(600, 500), "Thor Multimedia", sf::Style::Close); + sf::RenderWindow window(sf::VideoMode(600, 500), "Thor Shapes", sf::Style::Close); window.setVerticalSyncEnabled(true); // Create a concave shape by directly inserting the polygon points diff --git a/include/Thor/Multimedia.hpp b/include/Thor/Graphics.hpp similarity index 71% rename from include/Thor/Multimedia.hpp rename to include/Thor/Graphics.hpp index 9643bf3..5c56847 100644 --- a/include/Thor/Multimedia.hpp +++ b/include/Thor/Graphics.hpp @@ -24,17 +24,14 @@ ///////////////////////////////////////////////////////////////////////////////// /// @file -/// @brief Complete header for the Multimedia module +/// @brief Complete header for the Graphics module -#ifndef THOR_MODULE_MULTIMEDIA_HPP -#define THOR_MODULE_MULTIMEDIA_HPP +#ifndef THOR_MODULE_GRAPHICS_HPP +#define THOR_MODULE_GRAPHICS_HPP -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include -#endif // THOR_MODULE_MULTIMEDIA_HPP +#endif // THOR_MODULE_GRAPHICS_HPP diff --git a/include/Thor/Multimedia/BigSprite.hpp b/include/Thor/Graphics/BigSprite.hpp similarity index 99% rename from include/Thor/Multimedia/BigSprite.hpp rename to include/Thor/Graphics/BigSprite.hpp index 6567d9a..3b84826 100644 --- a/include/Thor/Multimedia/BigSprite.hpp +++ b/include/Thor/Graphics/BigSprite.hpp @@ -53,7 +53,7 @@ namespace thor class BigTexture; -/// @addtogroup Multimedia +/// @addtogroup Graphics /// @{ /// @brief Sprite using big textures. diff --git a/include/Thor/Multimedia/BigTexture.hpp b/include/Thor/Graphics/BigTexture.hpp similarity index 99% rename from include/Thor/Multimedia/BigTexture.hpp rename to include/Thor/Graphics/BigTexture.hpp index 3ac4e69..354d1fb 100644 --- a/include/Thor/Multimedia/BigTexture.hpp +++ b/include/Thor/Graphics/BigTexture.hpp @@ -50,7 +50,7 @@ namespace sf namespace thor { -/// @addtogroup Multimedia +/// @addtogroup Graphics /// @{ /// @brief Class for textures which are too big for sf::Texture. diff --git a/include/Thor/Multimedia/Colors.hpp b/include/Thor/Graphics/Colors.hpp similarity index 98% rename from include/Thor/Multimedia/Colors.hpp rename to include/Thor/Graphics/Colors.hpp index dc17713..2ae8db9 100644 --- a/include/Thor/Multimedia/Colors.hpp +++ b/include/Thor/Graphics/Colors.hpp @@ -29,7 +29,7 @@ #ifndef THOR_COLORS_HPP #define THOR_COLORS_HPP -#include +#include #include #include @@ -45,7 +45,7 @@ namespace detail } // namespace detail -/// @addtogroup Multimedia +/// @addtogroup Graphics /// @{ /// @brief Blends the colors @a firstColor and @a secondColor, according to the given interpolation. diff --git a/include/Thor/Multimedia/Detail/ColorImpl.hpp b/include/Thor/Graphics/Detail/ColorImpl.hpp similarity index 100% rename from include/Thor/Multimedia/Detail/ColorImpl.hpp rename to include/Thor/Graphics/Detail/ColorImpl.hpp diff --git a/include/Thor/Multimedia/Detail/ToString.inl b/include/Thor/Graphics/Detail/ToString.inl similarity index 100% rename from include/Thor/Multimedia/Detail/ToString.inl rename to include/Thor/Graphics/Detail/ToString.inl diff --git a/include/Thor/Multimedia/ToString.hpp b/include/Thor/Graphics/ToString.hpp similarity index 97% rename from include/Thor/Multimedia/ToString.hpp rename to include/Thor/Graphics/ToString.hpp index 325219e..28b4248 100644 --- a/include/Thor/Multimedia/ToString.hpp +++ b/include/Thor/Graphics/ToString.hpp @@ -62,7 +62,7 @@ namespace thor template struct PolarVector2; -/// @addtogroup Multimedia +/// @addtogroup Graphics /// @{ /// @brief Returns a std::string representation of sf::Color. @@ -109,5 +109,5 @@ class StringConversionException : public aurora::Exception } // namespace thor -#include +#include #endif // THOR_TOSTRING_HPP diff --git a/include/Thor/Particles/Affector.hpp b/include/Thor/Particles/Affector.hpp index 19c800f..9fd1cac 100644 --- a/include/Thor/Particles/Affector.hpp +++ b/include/Thor/Particles/Affector.hpp @@ -30,7 +30,7 @@ #define THOR_AFFECTOR_HPP #include -#include +#include #include #include diff --git a/include/Thor/Resources/Detail/ResourceKeyHelpers.hpp b/include/Thor/Resources/Detail/ResourceKeyHelpers.hpp index 95f25d9..889780d 100644 --- a/include/Thor/Resources/Detail/ResourceKeyHelpers.hpp +++ b/include/Thor/Resources/Detail/ResourceKeyHelpers.hpp @@ -27,7 +27,7 @@ #define THOR_RESOURCEKEYHELPERS_HPP #include -#include +#include #include #include diff --git a/include/Thor/Shapes.hpp b/include/Thor/Shapes.hpp new file mode 100644 index 0000000..b0d6b6a --- /dev/null +++ b/include/Thor/Shapes.hpp @@ -0,0 +1,36 @@ +///////////////////////////////////////////////////////////////////////////////// +// +// Thor C++ Library +// Copyright (c) 2011-2012 Jan Haller +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would be +// appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not be +// misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source distribution. +// +///////////////////////////////////////////////////////////////////////////////// + +/// @file +/// @brief Complete header for the Shapes module + +#ifndef THOR_MODULE_SHAPES_HPP +#define THOR_MODULE_SHAPES_HPP + +#include +#include +#include + +#endif // THOR_MODULE_SHAPES_HPP diff --git a/include/Thor/Multimedia/Arrow.hpp b/include/Thor/Shapes/Arrow.hpp similarity index 99% rename from include/Thor/Multimedia/Arrow.hpp rename to include/Thor/Shapes/Arrow.hpp index 92014ae..3ef4804 100644 --- a/include/Thor/Multimedia/Arrow.hpp +++ b/include/Thor/Shapes/Arrow.hpp @@ -39,7 +39,7 @@ namespace thor { -/// @addtogroup Multimedia +/// @addtogroup Shapes /// @{ /// @brief Drawable arrow class diff --git a/include/Thor/Multimedia/ConcaveShape.hpp b/include/Thor/Shapes/ConcaveShape.hpp similarity index 99% rename from include/Thor/Multimedia/ConcaveShape.hpp rename to include/Thor/Shapes/ConcaveShape.hpp index c33b70c..3bb3631 100644 --- a/include/Thor/Multimedia/ConcaveShape.hpp +++ b/include/Thor/Shapes/ConcaveShape.hpp @@ -53,7 +53,7 @@ namespace sf namespace thor { -/// @addtogroup Multimedia +/// @addtogroup Shapes /// @{ /// @brief Concave shape class diff --git a/include/Thor/Multimedia/Shapes.hpp b/include/Thor/Shapes/Shapes.hpp similarity index 99% rename from include/Thor/Multimedia/Shapes.hpp rename to include/Thor/Shapes/Shapes.hpp index b344347..ee1511d 100644 --- a/include/Thor/Multimedia/Shapes.hpp +++ b/include/Thor/Shapes/Shapes.hpp @@ -48,7 +48,7 @@ namespace thor class ConcaveShape; -/// @addtogroup Multimedia +/// @addtogroup Shapes /// @{ /// @brief Namespace for predefined shapes diff --git a/src/Arrow.cpp b/src/Arrow.cpp index dd2b170..687c4b9 100644 --- a/src/Arrow.cpp +++ b/src/Arrow.cpp @@ -23,8 +23,8 @@ // ///////////////////////////////////////////////////////////////////////////////// -#include -#include +#include +#include #include #include diff --git a/src/BigSprite.cpp b/src/BigSprite.cpp index 6b012a0..4c4324c 100644 --- a/src/BigSprite.cpp +++ b/src/BigSprite.cpp @@ -23,8 +23,8 @@ // ///////////////////////////////////////////////////////////////////////////////// -#include -#include +#include +#include #include #include diff --git a/src/BigTexture.cpp b/src/BigTexture.cpp index 4ddbce2..c3e7588 100644 --- a/src/BigTexture.cpp +++ b/src/BigTexture.cpp @@ -23,7 +23,7 @@ // ///////////////////////////////////////////////////////////////////////////////// -#include +#include #include #include diff --git a/src/ColorImpl.cpp b/src/ColorImpl.cpp index 3bbaaea..113c342 100644 --- a/src/ColorImpl.cpp +++ b/src/ColorImpl.cpp @@ -23,7 +23,7 @@ // ///////////////////////////////////////////////////////////////////////////////// -#include +#include #include diff --git a/src/Colors.cpp b/src/Colors.cpp index b047be4..97cb57e 100644 --- a/src/Colors.cpp +++ b/src/Colors.cpp @@ -23,7 +23,7 @@ // ///////////////////////////////////////////////////////////////////////////////// -#include +#include #include #include diff --git a/src/ConcaveShape.cpp b/src/ConcaveShape.cpp index 6927aa6..fe435bb 100644 --- a/src/ConcaveShape.cpp +++ b/src/ConcaveShape.cpp @@ -23,8 +23,8 @@ // ///////////////////////////////////////////////////////////////////////////////// -#include -#include +#include +#include #include #include diff --git a/src/InputNames.cpp b/src/InputNames.cpp index c06484c..147d3d5 100644 --- a/src/InputNames.cpp +++ b/src/InputNames.cpp @@ -24,7 +24,7 @@ ///////////////////////////////////////////////////////////////////////////////// #include -#include // thor::StringConversionException +#include // thor::StringConversionException #include diff --git a/src/Shapes.cpp b/src/Shapes.cpp index 1695fc6..a525579 100644 --- a/src/Shapes.cpp +++ b/src/Shapes.cpp @@ -23,9 +23,8 @@ // ///////////////////////////////////////////////////////////////////////////////// - -#include -#include +#include +#include #include #include diff --git a/src/ToString.cpp b/src/ToString.cpp index acad945..cc8223a 100644 --- a/src/ToString.cpp +++ b/src/ToString.cpp @@ -23,7 +23,7 @@ // ///////////////////////////////////////////////////////////////////////////////// -#include +#include #include