Added initializer_list contructor test

This commit is contained in:
Christophe Riccio 2013-09-30 03:17:54 +02:00
parent 812ff4fcc8
commit d656658849

View File

@ -129,13 +129,19 @@ int test_ctr()
#if(GLM_HAS_INITIALIZER_LISTS) #if(GLM_HAS_INITIALIZER_LISTS)
glm::mat4 m1{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}; glm::mat4 m1{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15};
glm::mat4 m2{ glm::mat4 m2{
glm::vec4{0, 1, 2, 3}, glm::vec4{0, 1, 2, 3},
glm::vec4{4, 5, 6, 7}, glm::vec4{4, 5, 6, 7},
glm::vec4{8, 9, 10, 11}, glm::vec4{8, 9, 10, 11},
glm::vec4{12, 13, 14, 15}}; glm::vec4{12, 13, 14, 15}};
std::vector<glm::mat4> m3{
{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15},
{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15},
{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15},
{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}};
/* /*
std::initializer_list<glm::mat4> m3{ std::initializer_list<glm::mat4> m3{
{0, 1, 2, 3}, {0, 1, 2, 3},