diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/YAGE/Math/matrix.hpp | 12 | ||||
-rw-r--r-- | include/YAGE/yage.hpp | 10 |
2 files changed, 16 insertions, 6 deletions
diff --git a/include/YAGE/Math/matrix.hpp b/include/YAGE/Math/matrix.hpp index 249edcc7..e2dd1944 100644 --- a/include/YAGE/Math/matrix.hpp +++ b/include/YAGE/Math/matrix.hpp @@ -31,7 +31,8 @@ namespace yage { -template <int Rows, int Cols, class Type> class Matrix; +template <int Rows, int Cols, class Type> +class Matrix; /** @internal Namespace for internal details. * @@ -51,7 +52,8 @@ namespace detail * * Internal Row class to return a value in the row of the matrix. */ -template <int Rows, int Cols, class Type> class Row +template <int Rows, int Cols, class Type> +class Row { private: Matrix<Rows, Cols, Type> *parent_; @@ -85,7 +87,8 @@ public: * This is the base matrix class that can be used by all the other matrix * like data structures. */ -template <int Rows = 4, int Cols = 4, class Type = double> class Matrix +template <int Rows = 4, int Cols = 4, class Type = double> +class Matrix { // friended with the row class so that it can access protected member data friend class detail::Row<Rows, Cols, Type>; @@ -323,7 +326,8 @@ public: * * Two dimensional vector class. */ -template <class Type = double> class Vector2 : public Vector<2, Type> +template <class Type = double> +class Vector2 : public Vector<2, Type> { public: Vector2<Type>() : Vector<2, Type>() {} diff --git a/include/YAGE/yage.hpp b/include/YAGE/yage.hpp index b426eed9..50a1f857 100644 --- a/include/YAGE/yage.hpp +++ b/include/YAGE/yage.hpp @@ -28,8 +28,14 @@ namespace yage { -bool init() { return SDL_Init(SDL_INIT_VIDEO); } -void quit() { SDL_Quit(); } +bool init() +{ + return SDL_Init(SDL_INIT_VIDEO); +} +void quit() +{ + SDL_Quit(); +} }; #endif |