|
@@ -43,7 +43,7 @@ namespace detail
|
|
|
|
|
|
|
|
GLM_FUNC_QUALIFIER std::string to_string(detail::thalf const & x)
|
|
GLM_FUNC_QUALIFIER std::string to_string(detail::thalf const & x)
|
|
|
{
|
|
{
|
|
|
- return detail::format("half(%2.4f)", float(x));
|
|
|
|
|
|
|
+ return detail::format("half(%2.4f)", x.toFloat());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
GLM_FUNC_QUALIFIER std::string to_string(float x)
|
|
GLM_FUNC_QUALIFIER std::string to_string(float x)
|
|
@@ -111,7 +111,7 @@ namespace detail
|
|
|
detail::tvec2<detail::thalf> const & v
|
|
detail::tvec2<detail::thalf> const & v
|
|
|
)
|
|
)
|
|
|
{
|
|
{
|
|
|
- return detail::format("hvec2(%2.4f, %2.4f)", float(v.x), float(v.y));
|
|
|
|
|
|
|
+ return detail::format("hvec2(%2.4f, %2.4f)", v.x.toFloat(), v.y.toFloat());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
template <>
|
|
@@ -120,7 +120,7 @@ namespace detail
|
|
|
detail::tvec3<detail::thalf> const & v
|
|
detail::tvec3<detail::thalf> const & v
|
|
|
)
|
|
)
|
|
|
{
|
|
{
|
|
|
- return detail::format("hvec3(%2.4f, %2.4f, %2.4f)", float(v.x), float(v.y), float(v.z));
|
|
|
|
|
|
|
+ return detail::format("hvec3(%2.4f, %2.4f, %2.4f)", v.x.toFloat(), v.y.toFloat(), v.z.toFloat());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
template <>
|
|
@@ -129,7 +129,7 @@ namespace detail
|
|
|
detail::tvec4<detail::thalf> const & v
|
|
detail::tvec4<detail::thalf> const & v
|
|
|
)
|
|
)
|
|
|
{
|
|
{
|
|
|
- return detail::format("hvec4(%2.4f, %2.4f, %2.4f, %2.4f)", float(v.x), float(v.y), float(v.z), float(v.w));
|
|
|
|
|
|
|
+ return detail::format("hvec4(%2.4f, %2.4f, %2.4f, %2.4f)", v.x.toFloat(), v.y.toFloat(), v.z.toFloat(), v.w.toFloat());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////
|
|
////////////////////////////////
|
|
@@ -261,115 +261,106 @@ namespace detail
|
|
|
detail::tmat2x2<detail::thalf> const & m
|
|
detail::tmat2x2<detail::thalf> const & m
|
|
|
)
|
|
)
|
|
|
{
|
|
{
|
|
|
- detail::tmat2x2<float> x(m);
|
|
|
|
|
return detail::format("hmat2x2((%f, %f), (%f, %f))",
|
|
return detail::format("hmat2x2((%f, %f), (%f, %f))",
|
|
|
- x[0][0], x[0][1],
|
|
|
|
|
- x[1][0], x[1][1]);
|
|
|
|
|
|
|
+ m[0][0].toFloat(), m[0][1].toFloat(),
|
|
|
|
|
+ m[1][0].toFloat(), m[1][1].toFloat());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
template <>
|
|
|
GLM_FUNC_QUALIFIER std::string to_string
|
|
GLM_FUNC_QUALIFIER std::string to_string
|
|
|
(
|
|
(
|
|
|
- detail::tmat2x3<detail::thalf> const & m
|
|
|
|
|
|
|
+ detail::tmat2x3<detail::thalf> const & x
|
|
|
)
|
|
)
|
|
|
{
|
|
{
|
|
|
- detail::tmat2x3<float> x(m);
|
|
|
|
|
return detail::format("hmat2x3((%f, %f, %f), (%f, %f, %f))",
|
|
return detail::format("hmat2x3((%f, %f, %f), (%f, %f, %f))",
|
|
|
- x[0][0], x[0][1], x[0][2],
|
|
|
|
|
- x[1][0], x[1][1], x[1][2]);
|
|
|
|
|
|
|
+ x[0][0].toFloat(), x[0][1].toFloat(), x[0][2].toFloat(),
|
|
|
|
|
+ x[1][0].toFloat(), x[1][1].toFloat(), x[1][2].toFloat());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
template <>
|
|
|
GLM_FUNC_QUALIFIER std::string to_string
|
|
GLM_FUNC_QUALIFIER std::string to_string
|
|
|
(
|
|
(
|
|
|
- detail::tmat2x4<detail::thalf> const & m
|
|
|
|
|
|
|
+ detail::tmat2x4<detail::thalf> const & x
|
|
|
)
|
|
)
|
|
|
{
|
|
{
|
|
|
- detail::tmat2x4<float> x(m);
|
|
|
|
|
return detail::format("hmat2x4((%f, %f, %f, %f), (%f, %f, %f, %f))",
|
|
return detail::format("hmat2x4((%f, %f, %f, %f), (%f, %f, %f, %f))",
|
|
|
- x[0][0], x[0][1], x[0][2], x[0][3],
|
|
|
|
|
- x[1][0], x[1][1], x[1][2], x[1][3]);
|
|
|
|
|
|
|
+ x[0][0].toFloat(), x[0][1].toFloat(), x[0][2].toFloat(), x[0][3].toFloat(),
|
|
|
|
|
+ x[1][0].toFloat(), x[1][1].toFloat(), x[1][2].toFloat(), x[1][3].toFloat());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
template <>
|
|
|
GLM_FUNC_QUALIFIER std::string to_string
|
|
GLM_FUNC_QUALIFIER std::string to_string
|
|
|
(
|
|
(
|
|
|
- detail::tmat3x2<detail::thalf> const & m
|
|
|
|
|
|
|
+ detail::tmat3x2<detail::thalf> const & x
|
|
|
)
|
|
)
|
|
|
{
|
|
{
|
|
|
- detail::tmat3x2<float> x(m);
|
|
|
|
|
return detail::format("hmat3x2((%f, %f), (%f, %f), (%f, %f))",
|
|
return detail::format("hmat3x2((%f, %f), (%f, %f), (%f, %f))",
|
|
|
- x[0][0], x[0][1],
|
|
|
|
|
- x[1][0], x[1][1],
|
|
|
|
|
- x[2][0], x[2][1]);
|
|
|
|
|
|
|
+ x[0][0].toFloat(), x[0][1].toFloat(),
|
|
|
|
|
+ x[1][0].toFloat(), x[1][1].toFloat(),
|
|
|
|
|
+ x[2][0].toFloat(), x[2][1].toFloat());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
template <>
|
|
|
GLM_FUNC_QUALIFIER std::string to_string
|
|
GLM_FUNC_QUALIFIER std::string to_string
|
|
|
(
|
|
(
|
|
|
- detail::tmat3x3<detail::thalf> const & m
|
|
|
|
|
|
|
+ detail::tmat3x3<detail::thalf> const & x
|
|
|
)
|
|
)
|
|
|
{
|
|
{
|
|
|
- detail::tmat3x3<float> x(m);
|
|
|
|
|
return detail::format("hmat3x3((%f, %f, %f), (%f, %f, %f), (%f, %f, %f))",
|
|
return detail::format("hmat3x3((%f, %f, %f), (%f, %f, %f), (%f, %f, %f))",
|
|
|
- x[0][0], x[0][1], x[0][2],
|
|
|
|
|
- x[1][0], x[1][1], x[1][2],
|
|
|
|
|
- x[2][0], x[2][1], x[2][2]);
|
|
|
|
|
|
|
+ x[0][0].toFloat(), x[0][1].toFloat(), x[0][2].toFloat(),
|
|
|
|
|
+ x[1][0].toFloat(), x[1][1].toFloat(), x[1][2].toFloat(),
|
|
|
|
|
+ x[2][0].toFloat(), x[2][1].toFloat(), x[2][2].toFloat());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
template <>
|
|
|
GLM_FUNC_QUALIFIER std::string to_string
|
|
GLM_FUNC_QUALIFIER std::string to_string
|
|
|
(
|
|
(
|
|
|
- detail::tmat3x4<detail::thalf> const & m
|
|
|
|
|
|
|
+ detail::tmat3x4<detail::thalf> const & x
|
|
|
)
|
|
)
|
|
|
{
|
|
{
|
|
|
- detail::tmat3x4<float> x(m);
|
|
|
|
|
return detail::format("hmat3x4((%f, %f, %f, %f), (%f, %f, %f, %f), (%f, %f, %f, %f))",
|
|
return detail::format("hmat3x4((%f, %f, %f, %f), (%f, %f, %f, %f), (%f, %f, %f, %f))",
|
|
|
- x[0][0], x[0][1], x[0][2], x[0][3],
|
|
|
|
|
- x[1][0], x[1][1], x[1][2], x[1][3],
|
|
|
|
|
- x[2][0], x[2][1], x[2][2], x[2][3]);
|
|
|
|
|
|
|
+ x[0][0].toFloat(), x[0][1].toFloat(), x[0][2].toFloat(), x[0][3].toFloat(),
|
|
|
|
|
+ x[1][0].toFloat(), x[1][1].toFloat(), x[1][2].toFloat(), x[1][3].toFloat(),
|
|
|
|
|
+ x[2][0].toFloat(), x[2][1].toFloat(), x[2][2].toFloat(), x[2][3].toFloat());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
template <>
|
|
|
GLM_FUNC_QUALIFIER std::string to_string
|
|
GLM_FUNC_QUALIFIER std::string to_string
|
|
|
(
|
|
(
|
|
|
- detail::tmat4x2<detail::thalf> const & m
|
|
|
|
|
|
|
+ detail::tmat4x2<detail::thalf> const & x
|
|
|
)
|
|
)
|
|
|
{
|
|
{
|
|
|
- detail::tmat4x2<float> x(m);
|
|
|
|
|
return detail::format("hmat4x2((%f, %f), (%f, %f), (%f, %f), (%f, %f))",
|
|
return detail::format("hmat4x2((%f, %f), (%f, %f), (%f, %f), (%f, %f))",
|
|
|
- x[0][0], x[0][1],
|
|
|
|
|
- x[1][0], x[1][1],
|
|
|
|
|
- x[2][0], x[2][1],
|
|
|
|
|
- x[3][0], x[3][1]);
|
|
|
|
|
|
|
+ x[0][0].toFloat(), x[0][1].toFloat(),
|
|
|
|
|
+ x[1][0].toFloat(), x[1][1].toFloat(),
|
|
|
|
|
+ x[2][0].toFloat(), x[2][1].toFloat(),
|
|
|
|
|
+ x[3][0].toFloat(), x[3][1].toFloat());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
template <>
|
|
|
GLM_FUNC_QUALIFIER std::string to_string
|
|
GLM_FUNC_QUALIFIER std::string to_string
|
|
|
(
|
|
(
|
|
|
- detail::tmat4x3<detail::thalf> const & m
|
|
|
|
|
|
|
+ detail::tmat4x3<detail::thalf> const & x
|
|
|
)
|
|
)
|
|
|
{
|
|
{
|
|
|
- detail::tmat4x3<float> x(m);
|
|
|
|
|
return detail::format("hmat4x3((%f, %f, %f), (%f, %f, %f), (%f, %f, %f), (%f, %f, %f))",
|
|
return detail::format("hmat4x3((%f, %f, %f), (%f, %f, %f), (%f, %f, %f), (%f, %f, %f))",
|
|
|
- x[0][0], x[0][1], x[0][2],
|
|
|
|
|
- x[1][0], x[1][1], x[1][2],
|
|
|
|
|
- x[2][0], x[2][1], x[2][2],
|
|
|
|
|
- x[3][0], x[3][1], x[3][2]);
|
|
|
|
|
|
|
+ x[0][0].toFloat(), x[0][1].toFloat(), x[0][2].toFloat(),
|
|
|
|
|
+ x[1][0].toFloat(), x[1][1].toFloat(), x[1][2].toFloat(),
|
|
|
|
|
+ x[2][0].toFloat(), x[2][1].toFloat(), x[2][2].toFloat(),
|
|
|
|
|
+ x[3][0].toFloat(), x[3][1].toFloat(), x[3][2].toFloat());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
template <>
|
|
|
GLM_FUNC_QUALIFIER std::string to_string
|
|
GLM_FUNC_QUALIFIER std::string to_string
|
|
|
(
|
|
(
|
|
|
- detail::tmat4x4<detail::thalf> const & m
|
|
|
|
|
|
|
+ detail::tmat4x4<detail::thalf> const & x
|
|
|
)
|
|
)
|
|
|
{
|
|
{
|
|
|
- detail::tmat4x4<float> x(m);
|
|
|
|
|
return detail::format("hmat4x4((%f, %f, %f, %f), (%f, %f, %f, %f), (%f, %f, %f, %f), (%f, %f, %f, %f))",
|
|
return detail::format("hmat4x4((%f, %f, %f, %f), (%f, %f, %f, %f), (%f, %f, %f, %f), (%f, %f, %f, %f))",
|
|
|
- x[0][0], x[0][1], x[0][2], x[0][3],
|
|
|
|
|
- x[1][0], x[1][1], x[1][2], x[1][3],
|
|
|
|
|
- x[2][0], x[2][1], x[2][2], x[2][3],
|
|
|
|
|
- x[3][0], x[3][1], x[3][2], x[3][3]);
|
|
|
|
|
|
|
+ x[0][0].toFloat(), x[0][1].toFloat(), x[0][2].toFloat(), x[0][3].toFloat(),
|
|
|
|
|
+ x[1][0].toFloat(), x[1][1].toFloat(), x[1][2].toFloat(), x[1][3].toFloat(),
|
|
|
|
|
+ x[2][0].toFloat(), x[2][1].toFloat(), x[2][2].toFloat(), x[2][3].toFloat(),
|
|
|
|
|
+ x[3][0].toFloat(), x[3][1].toFloat(), x[3][2].toFloat(), x[3][3].toFloat());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////
|
|
////////////////////////////////
|