GLM  0.9.5
type_ptr.hpp
Go to the documentation of this file.
1 
59 #ifndef GLM_GTC_type_ptr
60 #define GLM_GTC_type_ptr
61 
62 // Dependency:
63 #include "../gtc/quaternion.hpp"
64 #include "../vec2.hpp"
65 #include "../vec3.hpp"
66 #include "../vec4.hpp"
67 #include "../mat2x2.hpp"
68 #include "../mat2x3.hpp"
69 #include "../mat2x4.hpp"
70 #include "../mat3x2.hpp"
71 #include "../mat3x3.hpp"
72 #include "../mat3x4.hpp"
73 #include "../mat4x2.hpp"
74 #include "../mat4x3.hpp"
75 #include "../mat4x4.hpp"
76 #include <cstring>
77 
78 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
79 # pragma message("GLM: GLM_GTC_type_ptr extension included")
80 #endif
81 
82 namespace glm
83 {
86 
89  template<typename genType>
90  GLM_FUNC_DECL typename genType::value_type const * value_ptr(genType const & vec);
91 
94  template<typename T>
95  GLM_FUNC_DECL detail::tvec2<T, defaultp> make_vec2(T const * const ptr);
96 
99  template<typename T>
100  GLM_FUNC_DECL detail::tvec3<T, defaultp> make_vec3(T const * const ptr);
101 
104  template<typename T>
105  GLM_FUNC_DECL detail::tvec4<T, defaultp> make_vec4(T const * const ptr);
106 
109  template<typename T>
110  GLM_FUNC_DECL detail::tmat2x2<T, defaultp> make_mat2x2(T const * const ptr);
111 
114  template<typename T>
115  GLM_FUNC_DECL detail::tmat2x3<T, defaultp> make_mat2x3(T const * const ptr);
116 
119  template<typename T>
120  GLM_FUNC_DECL detail::tmat2x4<T, defaultp> make_mat2x4(T const * const ptr);
121 
124  template<typename T>
125  GLM_FUNC_DECL detail::tmat3x2<T, defaultp> make_mat3x2(T const * const ptr);
126 
129  template<typename T>
130  GLM_FUNC_DECL detail::tmat3x3<T, defaultp> make_mat3x3(T const * const ptr);
131 
134  template<typename T>
135  GLM_FUNC_DECL detail::tmat3x4<T, defaultp> make_mat3x4(T const * const ptr);
136 
139  template<typename T>
140  GLM_FUNC_DECL detail::tmat4x2<T, defaultp> make_mat4x2(
141  T const * const ptr);
142 
145  template<typename T>
146  GLM_FUNC_DECL detail::tmat4x3<T, defaultp> make_mat4x3(T const * const ptr);
147 
150  template<typename T>
151  GLM_FUNC_DECL detail::tmat4x4<T, defaultp> make_mat4x4(T const * const ptr);
152 
155  template<typename T>
156  GLM_FUNC_DECL detail::tmat2x2<T, defaultp> make_mat2(T const * const ptr);
157 
160  template<typename T>
161  GLM_FUNC_DECL detail::tmat3x3<T, defaultp> make_mat3(T const * const ptr);
162 
165  template<typename T>
166  GLM_FUNC_DECL detail::tmat4x4<T, defaultp> make_mat4(T const * const ptr);
167 
170  template<typename T>
171  GLM_FUNC_DECL detail::tquat<T, defaultp> make_quat(T const * const ptr);
172 
174 }//namespace glm
175 
176 #include "type_ptr.inl"
177 
178 #endif//GLM_GTC_type_ptr
179 
GLM_FUNC_DECL detail::tmat3x3< T, defaultp > make_mat3x3(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL detail::tquat< T, defaultp > make_quat(T const *const ptr)
Build a quaternion from a pointer.
GLM_FUNC_DECL detail::tmat3x3< T, defaultp > make_mat3(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL detail::tmat2x2< T, defaultp > make_mat2(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL detail::tmat3x2< T, defaultp > make_mat3x2(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL detail::tmat2x2< T, defaultp > make_mat2x2(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL detail::tmat3x4< T, defaultp > make_mat3x4(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL detail::tmat4x2< T, defaultp > make_mat4x2(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL detail::tmat4x4< T, defaultp > make_mat4(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL detail::tmat2x4< T, defaultp > make_mat2x4(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL detail::tvec3< T, defaultp > make_vec3(T const *const ptr)
Build a vector from a pointer.
GLM_FUNC_DECL detail::tvec2< T, defaultp > make_vec2(T const *const ptr)
Build a vector from a pointer.
GLM_FUNC_DECL detail::tvec4< T, defaultp > make_vec4(T const *const ptr)
Build a vector from a pointer.
GLM_FUNC_DECL detail::tmat4x3< T, defaultp > make_mat4x3(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL genType::value_type const * value_ptr(genType const &vec)
Return the constant address to the data of the input parameter.
GLM_FUNC_DECL detail::tmat4x4< T, defaultp > make_mat4x4(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL detail::tmat2x3< T, defaultp > make_mat2x3(T const *const ptr)
Build a matrix from a pointer.