mirror of
https://github.com/icaven/glm.git
synced 2026-02-16 15:19:53 +08:00
Clean up GLM_STATIC_CONST_MEMBERS #591
This commit is contained in:
parent
d73fd81812
commit
06f084063f
@ -3,13 +3,6 @@
|
|||||||
|
|
||||||
namespace glm
|
namespace glm
|
||||||
{
|
{
|
||||||
# ifdef GLM_STATIC_CONST_MEMBERS
|
|
||||||
template<typename T, precision P>
|
|
||||||
const tmat4x2<T, P> tmat4x2<T, P>::ZERO(static_cast<T>(0));
|
|
||||||
|
|
||||||
template<typename T, precision P>
|
|
||||||
const tmat4x2<T, P> tmat4x2<T, P>::IDENTITY(static_cast<T>(1));
|
|
||||||
# endif
|
|
||||||
// -- Constructors --
|
// -- Constructors --
|
||||||
|
|
||||||
# if !GLM_HAS_DEFAULTED_FUNCTIONS || !defined(GLM_FORCE_NO_CTOR_INIT)
|
# if !GLM_HAS_DEFAULTED_FUNCTIONS || !defined(GLM_FORCE_NO_CTOR_INIT)
|
||||||
|
|||||||
@ -3,19 +3,6 @@
|
|||||||
|
|
||||||
namespace glm
|
namespace glm
|
||||||
{
|
{
|
||||||
# ifdef GLM_STATIC_CONST_MEMBERS
|
|
||||||
template <typename T, precision P>
|
|
||||||
const tvec2<T, P> tvec2<T, P>::ZERO(static_cast<T>(0), static_cast<T>(0));
|
|
||||||
|
|
||||||
template <typename T, precision P>
|
|
||||||
const tvec2<T, P> tvec2<T, P>::X(static_cast<T>(1), static_cast<T>(0));
|
|
||||||
|
|
||||||
template <typename T, precision P>
|
|
||||||
const tvec2<T, P> tvec2<T, P>::Y(static_cast<T>(0), static_cast<T>(1));
|
|
||||||
|
|
||||||
template <typename T, precision P>
|
|
||||||
const tvec2<T, P> tvec2<T, P>::XY(static_cast<T>(1), static_cast<T>(1));
|
|
||||||
# endif
|
|
||||||
// -- Implicit basic constructors --
|
// -- Implicit basic constructors --
|
||||||
|
|
||||||
# if !GLM_HAS_DEFAULTED_FUNCTIONS || !defined(GLM_FORCE_NO_CTOR_INIT)
|
# if !GLM_HAS_DEFAULTED_FUNCTIONS || !defined(GLM_FORCE_NO_CTOR_INIT)
|
||||||
|
|||||||
@ -3,32 +3,6 @@
|
|||||||
|
|
||||||
namespace glm
|
namespace glm
|
||||||
{
|
{
|
||||||
|
|
||||||
# ifdef GLM_STATIC_CONST_MEMBERS
|
|
||||||
template <typename T, precision P>
|
|
||||||
const tvec3<T, P> tvec3<T, P>::ZERO(static_cast<T>(0), static_cast<T>(0), static_cast<T>(0));
|
|
||||||
|
|
||||||
template <typename T, precision P>
|
|
||||||
const tvec3<T, P> tvec3<T, P>::X(static_cast<T>(1), static_cast<T>(0), static_cast<T>(0));
|
|
||||||
|
|
||||||
template <typename T, precision P>
|
|
||||||
const tvec3<T, P> tvec3<T, P>::Y(static_cast<T>(0), static_cast<T>(1), static_cast<T>(0));
|
|
||||||
|
|
||||||
template <typename T, precision P>
|
|
||||||
const tvec3<T, P> tvec3<T, P>::Z(static_cast<T>(0), static_cast<T>(0), static_cast<T>(1));
|
|
||||||
|
|
||||||
template <typename T, precision P>
|
|
||||||
const tvec3<T, P> tvec3<T, P>::XY(static_cast<T>(1), static_cast<T>(1), static_cast<T>(0));
|
|
||||||
|
|
||||||
template <typename T, precision P>
|
|
||||||
const tvec3<T, P> tvec3<T, P>::XZ(static_cast<T>(1), static_cast<T>(0), static_cast<T>(1));
|
|
||||||
|
|
||||||
template <typename T, precision P>
|
|
||||||
const tvec3<T, P> tvec3<T, P>::YZ(static_cast<T>(0), static_cast<T>(1), static_cast<T>(1));
|
|
||||||
|
|
||||||
template <typename T, precision P>
|
|
||||||
const tvec3<T, P> tvec3<T, P>::XYZ(static_cast<T>(1), static_cast<T>(1), static_cast<T>(1));
|
|
||||||
# endif
|
|
||||||
// -- Implicit basic constructors --
|
// -- Implicit basic constructors --
|
||||||
|
|
||||||
# if !GLM_HAS_DEFAULTED_FUNCTIONS || !defined(GLM_FORCE_NO_CTOR_INIT)
|
# if !GLM_HAS_DEFAULTED_FUNCTIONS || !defined(GLM_FORCE_NO_CTOR_INIT)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user