Merge branch '0.9.5' of https://github.com/g-truc/glm into 0.9.5
This commit is contained in:
@@ -617,7 +617,7 @@ namespace detail
|
|||||||
GLM_FUNC_QUALIFIER detail::tquat<T, P> rotate
|
GLM_FUNC_QUALIFIER detail::tquat<T, P> rotate
|
||||||
(
|
(
|
||||||
detail::tquat<T, P> const & q,
|
detail::tquat<T, P> const & q,
|
||||||
typename detail::tquat<T, P>::value_type const & angle,
|
T const & angle,
|
||||||
detail::tvec3<T, P> const & v
|
detail::tvec3<T, P> const & v
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ GLM 0.9.5.1: 2014-XX-XX
|
|||||||
- Added possible static_cast conversion of GLM types (#72)
|
- Added possible static_cast conversion of GLM types (#72)
|
||||||
- Fixed error 'inverse' is not a member of 'glm' from glm::unProject (#146)
|
- Fixed error 'inverse' is not a member of 'glm' from glm::unProject (#146)
|
||||||
- Fixed mismatch of GTC_packing declaration and definition prototypes
|
- Fixed mismatch of GTC_packing declaration and definition prototypes
|
||||||
|
- Fixed rotate declaration for quat rotate function
|
||||||
|
|
||||||
================================================================================
|
================================================================================
|
||||||
GLM 0.9.5.0: 2013-12-25
|
GLM 0.9.5.0: 2013-12-25
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
#include <glm/vector_relational.hpp>
|
#include <glm/vector_relational.hpp>
|
||||||
#include <glm/vec2.hpp>
|
#include <glm/vec2.hpp>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
int test_vec2_operators()
|
int test_vec2_operators()
|
||||||
{
|
{
|
||||||
@@ -199,6 +200,24 @@ int test_vec2_ctor()
|
|||||||
{
|
{
|
||||||
int Error = 0;
|
int Error = 0;
|
||||||
|
|
||||||
|
#if(GLM_HAS_INITIALIZER_LISTS)
|
||||||
|
{
|
||||||
|
glm::vec2 a{ 0, 1 };
|
||||||
|
std::vector<glm::vec2> v = {
|
||||||
|
{0, 1},
|
||||||
|
{4, 5},
|
||||||
|
{8, 9}};
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
glm::dvec2 a{ 0, 1 };
|
||||||
|
std::vector<glm::dvec2> v = {
|
||||||
|
{0, 1},
|
||||||
|
{4, 5},
|
||||||
|
{8, 9}};
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
{
|
{
|
||||||
glm::vec2 A = glm::vec2(2.0f);
|
glm::vec2 A = glm::vec2(2.0f);
|
||||||
glm::vec2 B = glm::vec2(2.0f, 3.0f);
|
glm::vec2 B = glm::vec2(2.0f, 3.0f);
|
||||||
|
|||||||
@@ -20,6 +20,24 @@ int test_vec3_ctor()
|
|||||||
{
|
{
|
||||||
int Error = 0;
|
int Error = 0;
|
||||||
|
|
||||||
|
#if(GLM_HAS_INITIALIZER_LISTS)
|
||||||
|
{
|
||||||
|
glm::vec3 a{ 0, 1, 2 };
|
||||||
|
std::vector<glm::vec3> v = {
|
||||||
|
{0, 1, 2},
|
||||||
|
{4, 5, 6},
|
||||||
|
{8, 9, 0}};
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
glm::dvec3 a{ 0, 1, 2 };
|
||||||
|
std::vector<glm::dvec3> v = {
|
||||||
|
{0, 1, 2},
|
||||||
|
{4, 5, 6},
|
||||||
|
{8, 9, 0}};
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
{
|
{
|
||||||
glm::vec3 A(1);
|
glm::vec3 A(1);
|
||||||
glm::vec3 B(1, 1, 1);
|
glm::vec3 B(1, 1, 1);
|
||||||
|
|||||||
@@ -49,6 +49,14 @@ int test_vec4_ctor()
|
|||||||
{4, 5, 6, 7},
|
{4, 5, 6, 7},
|
||||||
{8, 9, 0, 1}};
|
{8, 9, 0, 1}};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
glm::dvec4 a{ 0, 1, 2, 3 };
|
||||||
|
std::vector<glm::dvec4> v = {
|
||||||
|
{0, 1, 2, 3},
|
||||||
|
{4, 5, 6, 7},
|
||||||
|
{8, 9, 0, 1}};
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user