0.9.9 API documenation
type_ptr.hpp
Go to the documentation of this file.
1 
33 #pragma once
34 
35 // Dependency:
36 #include "../gtc/quaternion.hpp"
37 #include "../vec2.hpp"
38 #include "../vec3.hpp"
39 #include "../vec4.hpp"
40 #include "../mat2x2.hpp"
41 #include "../mat2x3.hpp"
42 #include "../mat2x4.hpp"
43 #include "../mat3x2.hpp"
44 #include "../mat3x3.hpp"
45 #include "../mat3x4.hpp"
46 #include "../mat4x2.hpp"
47 #include "../mat4x3.hpp"
48 #include "../mat4x4.hpp"
49 #include <cstring>
50 
51 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
52 # pragma message("GLM: GLM_GTC_type_ptr extension included")
53 #endif
54 
55 namespace glm
56 {
59 
62  template<typename genType>
63  GLM_FUNC_DECL typename genType::value_type const * value_ptr(genType const& v);
64 
67  template<typename T>
68  GLM_FUNC_DECL vec<2, T, defaultp> make_vec2(T const * const ptr);
69 
72  template<typename T>
73  GLM_FUNC_DECL vec<3, T, defaultp> make_vec3(T const * const ptr);
74 
77  template<typename T>
78  GLM_FUNC_DECL vec<4, T, defaultp> make_vec4(T const * const ptr);
79 
82  template<typename T>
83  GLM_FUNC_DECL mat<2, 2, T, defaultp> make_mat2x2(T const * const ptr);
84 
87  template<typename T>
88  GLM_FUNC_DECL mat<2, 3, T, defaultp> make_mat2x3(T const * const ptr);
89 
92  template<typename T>
93  GLM_FUNC_DECL mat<2, 4, T, defaultp> make_mat2x4(T const * const ptr);
94 
97  template<typename T>
98  GLM_FUNC_DECL mat<3, 2, T, defaultp> make_mat3x2(T const * const ptr);
99 
102  template<typename T>
103  GLM_FUNC_DECL mat<3, 3, T, defaultp> make_mat3x3(T const * const ptr);
104 
107  template<typename T>
108  GLM_FUNC_DECL mat<3, 4, T, defaultp> make_mat3x4(T const * const ptr);
109 
112  template<typename T>
113  GLM_FUNC_DECL mat<4, 2, T, defaultp> make_mat4x2(T const * const ptr);
114 
117  template<typename T>
118  GLM_FUNC_DECL mat<4, 3, T, defaultp> make_mat4x3(T const * const ptr);
119 
122  template<typename T>
123  GLM_FUNC_DECL mat<4, 4, T, defaultp> make_mat4x4(T const * const ptr);
124 
127  template<typename T>
128  GLM_FUNC_DECL mat<2, 2, T, defaultp> make_mat2(T const * const ptr);
129 
132  template<typename T>
133  GLM_FUNC_DECL mat<3, 3, T, defaultp> make_mat3(T const * const ptr);
134 
137  template<typename T>
138  GLM_FUNC_DECL mat<4, 4, T, defaultp> make_mat4(T const * const ptr);
139 
142  template<typename T>
143  GLM_FUNC_DECL tquat<T, defaultp> make_quat(T const * const ptr);
144 
146 }//namespace glm
147 
148 #include "type_ptr.inl"
GLM_FUNC_DECL mat< 4, 2, T, defaultp > make_mat4x2(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL mat< 4, 4, T, defaultp > make_mat4(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL mat< 4, 4, T, defaultp > make_mat4x4(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL mat< 4, 3, T, defaultp > make_mat4x3(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL mat< 2, 2, T, defaultp > make_mat2(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL mat< 3, 4, T, defaultp > make_mat3x4(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 mat< 2, 3, T, defaultp > make_mat2x3(T const *const ptr)
Build a matrix from a pointer.
Definition: _noise.hpp:11
GLM_FUNC_DECL vec< 2, T, defaultp > make_vec2(T const *const ptr)
Build a vector from a pointer.
GLM_FUNC_DECL mat< 3, 3, T, defaultp > make_mat3x3(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL vec< 3, T, defaultp > make_vec3(T const *const ptr)
Build a vector from a pointer.
GLM_FUNC_DECL genType::value_type const * value_ptr(genType const &v)
Return the constant address to the data of the input parameter.
GLM_FUNC_DECL vec< 4, T, defaultp > make_vec4(T const *const ptr)
Build a vector from a pointer.
GLM_FUNC_DECL mat< 2, 4, T, defaultp > make_mat2x4(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL mat< 3, 2, T, defaultp > make_mat3x2(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL mat< 2, 2, T, defaultp > make_mat2x2(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL mat< 3, 3, T, defaultp > make_mat3(T const *const ptr)
Build a matrix from a pointer.