Can't see values for vec or mat in the debugger #665
This commit is contained in:
@@ -445,9 +445,9 @@
|
||||
#define GLM_SWIZZLE_OPERATOR 1
|
||||
#define GLM_SWIZZLE_FUNCTION 2
|
||||
|
||||
#if defined(GLM_FORCE_SWIZZLE) && (GLM_LANG & GLM_LANG_CXXMS_FLAG)
|
||||
#if defined(GLM_FORCE_SWIZZLE) && !defined(GLM_FORCE_XYZW_ONLY) && (GLM_LANG & GLM_LANG_CXXMS_FLAG)
|
||||
# define GLM_SWIZZLE GLM_SWIZZLE_OPERATOR
|
||||
#elif defined(GLM_FORCE_SWIZZLE)
|
||||
#elif defined(GLM_FORCE_SWIZZLE) && !defined(GLM_FORCE_XYZW_ONLY)
|
||||
# define GLM_SWIZZLE GLM_SWIZZLE_FUNCTION
|
||||
#else
|
||||
# define GLM_SWIZZLE GLM_DISABLE
|
||||
@@ -600,6 +600,15 @@ namespace glm
|
||||
#define GLM_USE_SIMD GLM_DISABLE
|
||||
#endif
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
// Only use x, y, z, w as vector type components
|
||||
|
||||
#ifdef GLM_FORCE_XYZW_ONLY
|
||||
# define GLM_USE_XYZW_ONLY GLM_ENABLE
|
||||
#else
|
||||
# define GLM_USE_XYZW_ONLY GLM_DISABLE
|
||||
#endif
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
// Configure the use of anonymous structure as implementation detail
|
||||
|
||||
@@ -787,6 +796,11 @@ namespace glm
|
||||
# pragma message("GLM: platform unknown")
|
||||
# else
|
||||
# pragma message("GLM: platform not detected")
|
||||
# endif
|
||||
|
||||
// Report whether only xyzw component are used
|
||||
# if defined GLM_FORCE_XYZW_ONLY
|
||||
# pragma message("GLM: GLM_FORCE_XYZW_ONLY is defined. Only x, y, z and w component are available in vector type. This define disables swizzle operators and SIMD instruction sets")
|
||||
# endif
|
||||
|
||||
// Report swizzle operator support
|
||||
|
||||
@@ -24,7 +24,9 @@ namespace glm
|
||||
|
||||
// -- Data --
|
||||
|
||||
# if GLM_USE_ANONYMOUS_STRUCT == GLM_ENABLE
|
||||
# if GLM_USE_XYZW_ONLY
|
||||
T x, y;
|
||||
# elif GLM_USE_ANONYMOUS_STRUCT == GLM_ENABLE
|
||||
union
|
||||
{
|
||||
struct{ T x, y; };
|
||||
|
||||
@@ -24,7 +24,9 @@ namespace glm
|
||||
|
||||
// -- Data --
|
||||
|
||||
# if GLM_USE_ANONYMOUS_STRUCT == GLM_ENABLE
|
||||
# if GLM_USE_XYZW_ONLY
|
||||
T x, y, z;
|
||||
# elif GLM_USE_ANONYMOUS_STRUCT == GLM_ENABLE
|
||||
union
|
||||
{
|
||||
struct{ T x, y, z; };
|
||||
|
||||
@@ -24,7 +24,9 @@ namespace glm
|
||||
|
||||
// -- Data --
|
||||
|
||||
# if GLM_USE_ANONYMOUS_STRUCT == GLM_ENABLE
|
||||
# if GLM_USE_XYZW_ONLY
|
||||
T x, y, z, w;
|
||||
# elif GLM_USE_ANONYMOUS_STRUCT == GLM_ENABLE
|
||||
union
|
||||
{
|
||||
struct { T x, y, z, w; };
|
||||
|
||||
@@ -41,7 +41,9 @@ namespace glm
|
||||
|
||||
// -- Data --
|
||||
|
||||
# if GLM_USE_ANONYMOUS_STRUCT == GLM_ENABLE
|
||||
# if GLM_USE_XYZW_ONLY
|
||||
T x;
|
||||
# elif GLM_USE_ANONYMOUS_STRUCT == GLM_ENABLE
|
||||
union
|
||||
{
|
||||
T x;
|
||||
|
||||
@@ -252,7 +252,7 @@
|
||||
#define GLM_ARCH_MIPS (GLM_ARCH_MIPS_BIT)
|
||||
#define GLM_ARCH_PPC (GLM_ARCH_PPC_BIT)
|
||||
|
||||
#if defined(GLM_FORCE_PURE)
|
||||
#if defined(GLM_FORCE_PURE) || defined(GLM_FORCE_XYZW_ONLY)
|
||||
# if defined(__x86_64__) || defined(_M_X64) || defined(_M_IX86) || defined(__i386__)
|
||||
# define GLM_ARCH (GLM_ARCH_X86)
|
||||
# elif defined(__arm__ ) || defined(_M_ARM)
|
||||
|
||||
Reference in New Issue
Block a user