GLI  0.6.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 // GLI
41 #include "format.hpp"
42 
43 namespace gli
44 {
45  using std::size_t;
46 
47  typedef glm::tvec1<size_t> dim1_t;
48  typedef glm::tvec2<size_t> dim2_t;
49  typedef glm::tvec3<size_t> dim3_t;
50  typedef glm::tvec4<size_t> dim4_t;
51  typedef glm::vec1 texcoord1_t;
52  typedef glm::vec2 texcoord2_t;
53  typedef glm::vec3 texcoord3_t;
54  typedef glm::vec4 texcoord4_t;
55 
56  typedef std::size_t layer_t;
57  typedef std::size_t level_t;
58  typedef std::size_t face_t;
59 
60  typedef glm::tvec4<int> swizzle_t;
61 }//namespace gli
glm::vec3 texcoord3_t
Definition: type.hpp:53
glm::vec4 texcoord4_t
Definition: type.hpp:54
glm::tvec2< size_t > dim2_t
Definition: type.hpp:48
glm::tvec1< size_t > dim1_t
Definition: type.hpp:47
glm::tvec4< size_t > dim4_t
Definition: type.hpp:50
OpenGL Image (gli.g-truc.net)
glm::vec2 texcoord2_t
Definition: type.hpp:52
std::size_t face_t
Definition: type.hpp:58
glm::vec1 texcoord1_t
Definition: type.hpp:51
std::size_t level_t
Definition: type.hpp:57
std::size_t layer_t
Definition: type.hpp:56
glm::tvec3< size_t > dim3_t
Definition: type.hpp:49
glm::tvec4< int > swizzle_t
Definition: type.hpp:60