mirror of
https://github.com/g-truc/glm.git
synced 2024-11-23 01:14:34 +00:00
Added initializer_list contructor test
This commit is contained in:
parent
812ff4fcc8
commit
d656658849
@ -129,13 +129,19 @@ int test_ctr()
|
||||
|
||||
#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 m2{
|
||||
glm::vec4{0, 1, 2, 3},
|
||||
glm::vec4{4, 5, 6, 7},
|
||||
glm::vec4{8, 9, 10, 11},
|
||||
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{
|
||||
{0, 1, 2, 3},
|
||||
|
Loading…
Reference in New Issue
Block a user