[DEV] Add vector 2D, 3D and 4D wrapper with statdard glsl vec[2-4] ivec[2-4] and std mat4

This commit is contained in:
Edouard DUPIN 2012-12-03 09:59:17 +01:00
parent 03c1459c66
commit a44667d456
5 changed files with 31 additions and 0 deletions

View File

@ -344,4 +344,9 @@ namespace etk
};
};
// To siplify the writing of the code ==> this is not compatible with GLSL ...
typedef etk::Matrix<float> mat;
typedef etk::Matrix<int32_t> imat;
typedef etk::Matrix<uint32_t> uimat;
#endif

View File

@ -216,4 +216,8 @@ namespace etk
etk::CCout& operator <<(etk::CCout &os, const etk::Matrix4 obj);
};
// To siplify the writing of the code ==> this permit to have the same name with the glsl language...
typedef etk::Matrix4 mat4;
#endif

View File

@ -250,4 +250,11 @@ namespace etk
};
// To siplify the writing of the code ==> this permit to have the same name with the glsl language...
typedef etk::Vector2D<float> vec2;
typedef etk::Vector2D<int32_t> ivec2;
// not compatible with glsl ... but it is better to have a same writing
typedef etk::Vector2D<uint32_t> uivec2;
typedef etk::Vector2D<bool> bvec2;
#endif

View File

@ -408,6 +408,13 @@ namespace etk
etk::CCout& operator <<(etk::CCout &os, const etk::Vector3D<float> obj);
};
// To siplify the writing of the code ==> this permit to have the same name with the glsl language...
typedef etk::Vector3D<float> vec3;
typedef etk::Vector3D<int32_t> ivec3;
// not compatible with glsl ... but it is better to have a same writing
typedef etk::Vector3D<uint32_t> uivec3;
typedef etk::Vector3D<bool> bvec3;
#endif

View File

@ -185,5 +185,13 @@ namespace etk
};
};
// To siplify the writing of the code ==> this permit to have the same name with the glsl language...
typedef etk::Vector4D<float> vec4;
typedef etk::Vector4D<int32_t> ivec4;
// not compatible with glsl ... but it is better to have a same writing
typedef etk::Vector4D<uint32_t> uivec4;
typedef etk::Vector4D<bool> bvec4;
#endif