0.9.6
type_ptr.hpp
Go to the documentation of this file.
1 
59 #pragma once
60 
61 // Dependency:
62 #include "../gtc/quaternion.hpp"
63 #include "../vec2.hpp"
64 #include "../vec3.hpp"
65 #include "../vec4.hpp"
66 #include "../mat2x2.hpp"
67 #include "../mat2x3.hpp"
68 #include "../mat2x4.hpp"
69 #include "../mat3x2.hpp"
70 #include "../mat3x3.hpp"
71 #include "../mat3x4.hpp"
72 #include "../mat4x2.hpp"
73 #include "../mat4x3.hpp"
74 #include "../mat4x4.hpp"
75 #include <cstring>
76 
77 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
78 # pragma message("GLM: GLM_GTC_type_ptr extension included")
79 #endif
80 
81 namespace glm
82 {
85 
88  template<typename genType>
89  GLM_FUNC_DECL typename genType::value_type const * value_ptr(genType const & vec);
90 
93  template<typename T>
94  GLM_FUNC_DECL tvec2<T, defaultp> make_vec2(T const * const ptr);
95 
98  template<typename T>
99  GLM_FUNC_DECL tvec3<T, defaultp> make_vec3(T const * const ptr);
100 
103  template<typename T>
104  GLM_FUNC_DECL tvec4<T, defaultp> make_vec4(T const * const ptr);
105 
108  template<typename T>
109  GLM_FUNC_DECL tmat2x2<T, defaultp> make_mat2x2(T const * const ptr);
110 
113  template<typename T>
114  GLM_FUNC_DECL tmat2x3<T, defaultp> make_mat2x3(T const * const ptr);
115 
118  template<typename T>
119  GLM_FUNC_DECL tmat2x4<T, defaultp> make_mat2x4(T const * const ptr);
120 
123  template<typename T>
124  GLM_FUNC_DECL tmat3x2<T, defaultp> make_mat3x2(T const * const ptr);
125 
128  template<typename T>
129  GLM_FUNC_DECL tmat3x3<T, defaultp> make_mat3x3(T const * const ptr);
130 
133  template<typename T>
134  GLM_FUNC_DECL tmat3x4<T, defaultp> make_mat3x4(T const * const ptr);
135 
138  template<typename T>
139  GLM_FUNC_DECL tmat4x2<T, defaultp> make_mat4x2(T const * const ptr);
140 
143  template<typename T>
144  GLM_FUNC_DECL tmat4x3<T, defaultp> make_mat4x3(T const * const ptr);
145 
148  template<typename T>
149  GLM_FUNC_DECL tmat4x4<T, defaultp> make_mat4x4(T const * const ptr);
150 
153  template<typename T>
154  GLM_FUNC_DECL tmat2x2<T, defaultp> make_mat2(T const * const ptr);
155 
158  template<typename T>
159  GLM_FUNC_DECL tmat3x3<T, defaultp> make_mat3(T const * const ptr);
160 
163  template<typename T>
164  GLM_FUNC_DECL tmat4x4<T, defaultp> make_mat4(T const * const ptr);
165 
168  template<typename T>
169  GLM_FUNC_DECL tquat<T, defaultp> make_quat(T const * const ptr);
170 
172 }//namespace glm
173 
174 #include "type_ptr.inl"
GLM_FUNC_DECL tmat4x3< T, defaultp > make_mat4x3(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL tmat3x3< T, defaultp > make_mat3x3(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL tmat2x4< T, defaultp > make_mat2x4(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL tquat< T, defaultp > make_quat(T const *const ptr)
Build a quaternion from a pointer.
GLM_FUNC_DECL tmat2x3< T, defaultp > make_mat2x3(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL tmat4x2< T, defaultp > make_mat4x2(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL tmat3x4< T, defaultp > make_mat3x4(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL tmat3x2< T, defaultp > make_mat3x2(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL tmat3x3< T, defaultp > make_mat3(T const *const ptr)
Build a matrix from a pointer.
Definition: _noise.hpp:31
GLM_FUNC_DECL tvec3< T, defaultp > make_vec3(T const *const ptr)
Build a vector from a pointer.
GLM_FUNC_DECL tmat4x4< T, defaultp > make_mat4(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL tvec2< T, defaultp > make_vec2(T const *const ptr)
Build a vector 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 tmat4x4< T, defaultp > make_mat4x4(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL tmat2x2< T, defaultp > make_mat2x2(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL tmat2x2< T, defaultp > make_mat2(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL tvec4< T, defaultp > make_vec4(T const *const ptr)
Build a vector from a pointer.