mirror of
https://github.com/g-truc/glm.git
synced 2024-11-26 18:24:35 +00:00
Removed deprecated defines
This commit is contained in:
parent
d029db8ac0
commit
9160f8b8d2
@ -3,25 +3,19 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#if (defined(GLM_FORCE_SWIZZLE) || defined(GLM_SWIZZLE)) && defined(GLM_FORCE_UNRESTRICTED_GENTYPE)
|
||||
#if defined(GLM_FORCE_SWIZZLE) && defined(GLM_FORCE_UNRESTRICTED_GENTYPE)
|
||||
# error "Both GLM_FORCE_SWIZZLE and GLM_FORCE_UNRESTRICTED_GENTYPE can't be defined at the same time"
|
||||
#endif
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
// Messages
|
||||
|
||||
#ifdef GLM_MESSAGES
|
||||
# pragma message("GLM: GLM_MESSAGES is deprecated, use GLM_FORCE_MESSAGES instead")
|
||||
#endif
|
||||
|
||||
#define GLM_MESSAGES_ENABLED 1
|
||||
#define GLM_MESSAGES_DISABLE 0
|
||||
|
||||
#if defined(GLM_FORCE_MESSAGES) || defined(GLM_MESSAGES)
|
||||
# undef GLM_MESSAGES
|
||||
#if defined(GLM_FORCE_MESSAGES)
|
||||
# define GLM_MESSAGES GLM_MESSAGES_ENABLED
|
||||
#else
|
||||
# undef GLM_MESSAGES
|
||||
# define GLM_MESSAGES GLM_MESSAGES_DISABLE
|
||||
#endif
|
||||
|
||||
@ -548,18 +542,12 @@
|
||||
|
||||
// User defines: GLM_FORCE_SWIZZLE
|
||||
|
||||
#ifdef GLM_SWIZZLE
|
||||
# pragma message("GLM: GLM_SWIZZLE is deprecated, use GLM_FORCE_SWIZZLE instead")
|
||||
#endif
|
||||
|
||||
#define GLM_SWIZZLE_ENABLED 1
|
||||
#define GLM_SWIZZLE_DISABLE 0
|
||||
|
||||
#if defined(GLM_FORCE_SWIZZLE) || defined(GLM_SWIZZLE)
|
||||
# undef GLM_SWIZZLE
|
||||
#if defined(GLM_FORCE_SWIZZLE)
|
||||
# define GLM_SWIZZLE GLM_SWIZZLE_ENABLED
|
||||
#else
|
||||
# undef GLM_SWIZZLE
|
||||
# define GLM_SWIZZLE GLM_SWIZZLE_DISABLE
|
||||
#endif
|
||||
|
||||
@ -587,10 +575,6 @@
|
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
// Clip control
|
||||
|
||||
#ifdef GLM_DEPTH_ZERO_TO_ONE // Legacy 0.9.8 development
|
||||
# error Define GLM_FORCE_DEPTH_ZERO_TO_ONE instead of GLM_DEPTH_ZERO_TO_ONE to use 0 to 1 clip space.
|
||||
#endif
|
||||
|
||||
#define GLM_DEPTH_ZERO_TO_ONE 0x00000001
|
||||
#define GLM_DEPTH_NEGATIVE_ONE_TO_ONE 0x00000002
|
||||
|
||||
@ -613,10 +597,6 @@
|
||||
// Coordinate system, define GLM_FORCE_LEFT_HANDED before including GLM
|
||||
// to use left handed coordinate system by default.
|
||||
|
||||
#ifdef GLM_LEFT_HANDED // Legacy 0.9.8 development
|
||||
# error Define GLM_FORCE_LEFT_HANDED instead of GLM_LEFT_HANDED left handed coordinate system by default.
|
||||
#endif
|
||||
|
||||
#define GLM_LEFT_HANDED 0x00000001 // For DirectX, Metal, Vulkan
|
||||
#define GLM_RIGHT_HANDED 0x00000002 // For OpenGL, default in GLM
|
||||
|
||||
|
@ -62,6 +62,10 @@ glm::mat4 camera(float Translate, glm::vec2 const & Rotate)
|
||||
- Removed GLM_GTX_simd_vec4 extension
|
||||
- Removed GLM_GTX_simd_mat4 extension
|
||||
- Removed GLM_GTX_simd_quat extension
|
||||
- Removed GLM_SWIZZLE, use GLM_FORCE_SWIZZLE instead
|
||||
- Removed GLM_MESSAGES, use GLM_FORCE_MESSAGES instead
|
||||
- Removed GLM_DEPTH_ZERO_TO_ONE, use GLM_FORCE_DEPTH_ZERO_TO_ONE instead
|
||||
- Removed GLM_LEFT_HANDED, use GLM_FORCE_LEFT_HANDED instead
|
||||
|
||||
#### [GLM 0.9.8.0](https://github.com/g-truc/glm/tree/0.9.8) - 2016-XX-XX
|
||||
##### Features:
|
||||
|
Loading…
Reference in New Issue
Block a user