mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 04:31:47 +00:00
Add value_ptr method for vec1 types
This commit is contained in:
parent
c32a481dd4
commit
ab913bbdd0
@ -7,6 +7,18 @@ namespace glm
|
|||||||
/// @addtogroup gtc_type_ptr
|
/// @addtogroup gtc_type_ptr
|
||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
|
template<typename T, qualifier Q>
|
||||||
|
GLM_FUNC_QUALIFIER T const* value_ptr(vec<1, T, Q> const& v)
|
||||||
|
{
|
||||||
|
return &(v.x);
|
||||||
|
}
|
||||||
|
|
||||||
|
template<typename T, qualifier Q>
|
||||||
|
GLM_FUNC_QUALIFIER T* value_ptr(vec<1, T, Q>& v)
|
||||||
|
{
|
||||||
|
return &(v.x);
|
||||||
|
}
|
||||||
|
|
||||||
template<typename T, qualifier Q>
|
template<typename T, qualifier Q>
|
||||||
GLM_FUNC_QUALIFIER T const* value_ptr(vec<2, T, Q> const& v)
|
GLM_FUNC_QUALIFIER T const* value_ptr(vec<2, T, Q> const& v)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user