0.7.0
type.hpp
Go to the documentation of this file.
1 
29 #pragma once
30 
31 // STD
32 #include <cstddef>
33 
34 // GLM
35 #define GLM_FORCE_EXPLICIT_CTOR
36 #include <glm/glm.hpp>
37 #include <glm/gtc/vec1.hpp>
38 #include <glm/gtx/std_based_type.hpp>
39 
40 namespace gli
41 {
42  using std::size_t;
43 
44  typedef glm::tvec1<size_t> dim1_t;
45  typedef glm::tvec2<size_t> dim2_t;
46  typedef glm::tvec3<size_t> dim3_t;
47  typedef glm::tvec4<size_t> dim4_t;
48  typedef glm::vec1 vec1;
49  typedef glm::vec2 vec2;
50  typedef glm::vec3 vec3;
51  typedef glm::vec4 vec4;
52 
53  typedef glm::ivec4 ivec4;
54 }//namespace gli