First step to add GTC_type_aligned

This commit is contained in:
Christophe Riccio
2014-11-23 01:02:03 +01:00
parent 246609b453
commit b062bd9ff2
6 changed files with 938 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ glmCreateTestGTC(gtc_quaternion)
glmCreateTestGTC(gtc_random)
glmCreateTestGTC(gtc_round)
glmCreateTestGTC(gtc_reciprocal)
glmCreateTestGTC(gtc_type_aligned)
glmCreateTestGTC(gtc_type_precision)
glmCreateTestGTC(gtc_type_ptr)
glmCreateTestGTC(gtc_ulp)

View File

@@ -0,0 +1,30 @@
///////////////////////////////////////////////////////////////////////////////////////////////////
// OpenGL Mathematics Copyright (c) 2005 - 2014 G-Truc Creation (www.g-truc.net)
///////////////////////////////////////////////////////////////////////////////////////////////////
// Created : 2014-11-23
// Updated : 2014-11-23
// Licence : This source is under MIT licence
// File : test/gtc/type_aligned.cpp
///////////////////////////////////////////////////////////////////////////////////////////////////
#include <glm/gtc/type_aligned.hpp>
#define GLM_ALIGNED_TYPEDEF(type, name, alignment) typedef type name
GLM_ALIGNED_TYPEDEF(glm::lowp_vec4, aligned_lowp_vec4, 16);
int test_decl()
{
return 0;
}
int main()
{
int Error(0);
Error += test_decl();
return Error;
}