diff --git a/glm/gtx/io.inl b/glm/gtx/io.inl index 8eee0d9a..5ec2ed2d 100644 --- a/glm/gtx/io.inl +++ b/glm/gtx/io.inl @@ -36,8 +36,8 @@ #include "../gtx/type_trait.hpp" // glm::type<> namespace glm{ - namespace io - { +namespace io +{ template /* explicit */ GLM_FUNC_QUALIFIER format_punct::format_punct(size_t a) @@ -198,7 +198,7 @@ namespace glm{ { io::format_punct const & fmt(io::get_facet >(os)); - length_t const& components(type::components); + length_t const& components(type::components); if(fmt.formatted) { @@ -210,7 +210,7 @@ namespace glm{ << std::setfill(fmt.space) << fmt.delim_left; - for (unsigned i(0); i < components; ++i) { + for (length_t i(0); i < components; ++i) { os << std::setw(fmt.width) << a[i]; if (components-1 != i) { os << fmt.separator; } @@ -220,7 +220,7 @@ namespace glm{ } else { - for (unsigned i(0); i < components; ++i) { + for (length_t i(0); i < components; ++i) { os << a[i]; if (components-1 != i) { os << fmt.space; } @@ -275,8 +275,8 @@ namespace glm{ { io::format_punct const & fmt(io::get_facet >(os)); - length_t const& cols(type::cols); - length_t const& rows(type::rows); + length_t const& cols(type::cols); + length_t const& rows(type::rows); if(fmt.formatted) { os << fmt.newline @@ -285,7 +285,7 @@ namespace glm{ switch (fmt.order) { case io::column_major: { - for (unsigned i(0); i < rows; ++i) { + for (length_t i(0); i < rows; ++i) { if (0 != i) { os << fmt.space; } os << row(a, i); @@ -297,7 +297,7 @@ namespace glm{ case io::row_major: { - for (unsigned i(0); i < cols; ++i) { + for (length_t i(0); i < cols; ++i) { if (0 != i) { os << fmt.space; } os << column(a, i); @@ -313,7 +313,7 @@ namespace glm{ switch (fmt.order) { case io::column_major: { - for (unsigned i(0); i < cols; ++i) { + for (length_t i(0); i < cols; ++i) { os << column(a, i); if (cols-1 != i) { os << fmt.space; } @@ -323,7 +323,7 @@ namespace glm{ case io::row_major: { - for (unsigned i(0); i < rows; ++i) { + for (length_t i(0); i < rows; ++i) { os << row(a, i); if (rows-1 != i) { os << fmt.space; } @@ -416,7 +416,7 @@ namespace glm{ switch (fmt.order) { case io::column_major: { - for (unsigned i(0); i < rows; ++i) { + for (length_t i(0); i < rows; ++i) { if (0 != i) { os << fmt.space; } os << row(ml, i) @@ -432,7 +432,7 @@ namespace glm{ case io::row_major: { - for (unsigned i(0); i < cols; ++i) { + for (length_t i(0); i < cols; ++i) { if (0 != i) { os << fmt.space; } os << column(ml, i) diff --git a/glm/gtx/type_trait.hpp b/glm/gtx/type_trait.hpp index 11ac72e7..ceb671b3 100644 --- a/glm/gtx/type_trait.hpp +++ b/glm/gtx/type_trait.hpp @@ -42,8 +42,20 @@ #pragma once // Dependency: -#include "../detail/precision.hpp" -#include "../detail/setup.hpp" +#include "../detail/type_vec2.hpp" +#include "../detail/type_vec3.hpp" +#include "../detail/type_vec4.hpp" +#include "../detail/type_mat2x2.hpp" +#include "../detail/type_mat2x3.hpp" +#include "../detail/type_mat2x4.hpp" +#include "../detail/type_mat3x2.hpp" +#include "../detail/type_mat3x3.hpp" +#include "../detail/type_mat3x4.hpp" +#include "../detail/type_mat4x2.hpp" +#include "../detail/type_mat4x3.hpp" +#include "../detail/type_mat4x4.hpp" +#include "../gtc/quaternion.hpp" +#include "../gtx/dual_quaternion.hpp" #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED)) # pragma message("GLM: GLM_GTX_type_trait extension included") @@ -54,188 +66,213 @@ namespace glm /// @addtogroup gtx_type_trait /// @{ - template struct tvec1; - template struct tvec2; - template struct tvec3; - template struct tvec4; - - template struct tmat2x2; - template struct tmat2x3; - template struct tmat2x4; - template struct tmat3x2; - template struct tmat3x3; - template struct tmat3x4; - template struct tmat4x2; - template struct tmat4x3; - template struct tmat4x4; - - template struct tquat; - template struct tdualquat; - - template