Fixed .length() that should return a int and not a size_t
This commit is contained in:
parent
b9266c07b0
commit
d3f0262a27
@ -46,7 +46,7 @@ namespace detail
|
|||||||
typedef tvec1<T, P> type;
|
typedef tvec1<T, P> type;
|
||||||
typedef tvec1<bool, P> bool_type;
|
typedef tvec1<bool, P> bool_type;
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR size_type length() const;
|
GLM_FUNC_DECL GLM_CONSTEXPR int length() const;
|
||||||
|
|
||||||
//////////////////////////////////////
|
//////////////////////////////////////
|
||||||
// Data
|
// Data
|
||||||
|
@ -30,7 +30,7 @@ namespace glm{
|
|||||||
namespace detail
|
namespace detail
|
||||||
{
|
{
|
||||||
template <typename T, precision P>
|
template <typename T, precision P>
|
||||||
GLM_FUNC_QUALIFIER GLM_CONSTEXPR typename tvec1<T, P>::size_type tvec1<T, P>::length() const
|
GLM_FUNC_QUALIFIER GLM_CONSTEXPR int tvec1<T, P>::length() const
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,7 @@ namespace detail
|
|||||||
typedef tvec2<T, P> type;
|
typedef tvec2<T, P> type;
|
||||||
typedef tvec2<bool, P> bool_type;
|
typedef tvec2<bool, P> bool_type;
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR size_type length() const;
|
GLM_FUNC_DECL GLM_CONSTEXPR int length() const;
|
||||||
|
|
||||||
//////////////////////////////////////
|
//////////////////////////////////////
|
||||||
// Data
|
// Data
|
||||||
|
@ -30,7 +30,7 @@ namespace glm{
|
|||||||
namespace detail
|
namespace detail
|
||||||
{
|
{
|
||||||
template <typename T, precision P>
|
template <typename T, precision P>
|
||||||
GLM_FUNC_QUALIFIER GLM_CONSTEXPR typename tvec2<T, P>::size_type tvec2<T, P>::length() const
|
GLM_FUNC_QUALIFIER GLM_CONSTEXPR int tvec2<T, P>::length() const
|
||||||
{
|
{
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,7 @@ namespace detail
|
|||||||
typedef tvec3<T, P> type;
|
typedef tvec3<T, P> type;
|
||||||
typedef tvec3<bool, P> bool_type;
|
typedef tvec3<bool, P> bool_type;
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR size_type length() const;
|
GLM_FUNC_DECL GLM_CONSTEXPR int length() const;
|
||||||
|
|
||||||
//////////////////////////////////////
|
//////////////////////////////////////
|
||||||
// Data
|
// Data
|
||||||
|
@ -30,7 +30,7 @@ namespace glm{
|
|||||||
namespace detail
|
namespace detail
|
||||||
{
|
{
|
||||||
template <typename T, precision P>
|
template <typename T, precision P>
|
||||||
GLM_FUNC_QUALIFIER GLM_CONSTEXPR typename tvec3<T, P>::size_type tvec3<T, P>::length() const
|
GLM_FUNC_QUALIFIER GLM_CONSTEXPR int tvec3<T, P>::length() const
|
||||||
{
|
{
|
||||||
return 3;
|
return 3;
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,7 @@ namespace detail
|
|||||||
typedef tvec4<T, P> type;
|
typedef tvec4<T, P> type;
|
||||||
typedef tvec4<bool, P> bool_type;
|
typedef tvec4<bool, P> bool_type;
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR size_type length() const;
|
GLM_FUNC_DECL GLM_CONSTEXPR int length() const;
|
||||||
|
|
||||||
//////////////////////////////////////
|
//////////////////////////////////////
|
||||||
// Data
|
// Data
|
||||||
|
@ -30,7 +30,7 @@ namespace glm{
|
|||||||
namespace detail
|
namespace detail
|
||||||
{
|
{
|
||||||
template <typename T, precision P>
|
template <typename T, precision P>
|
||||||
GLM_FUNC_QUALIFIER GLM_CONSTEXPR typename tvec4<T, P>::size_type tvec4<T, P>::length() const
|
GLM_FUNC_QUALIFIER GLM_CONSTEXPR int tvec4<T, P>::length() const
|
||||||
{
|
{
|
||||||
return 4;
|
return 4;
|
||||||
}
|
}
|
||||||
|
@ -54,6 +54,7 @@ GLM 0.9.5.0: 2013-XX-XX
|
|||||||
- Removed l-value swizzle operators
|
- Removed l-value swizzle operators
|
||||||
- Clean up compiler detection code for unsupported compilers
|
- Clean up compiler detection code for unsupported compilers
|
||||||
- Uses C++ casts
|
- Uses C++ casts
|
||||||
|
- Fixed .length() that should return a int and not a size_t
|
||||||
|
|
||||||
================================================================================
|
================================================================================
|
||||||
GLM 0.9.4.6: 2013-08-XX
|
GLM 0.9.4.6: 2013-08-XX
|
||||||
|
Loading…
x
Reference in New Issue
Block a user