Optimized header inclusion of swizzle operator code. Not included when not enabled

This commit is contained in:
Christophe Riccio 2013-09-16 00:43:24 +02:00
parent 8eea3c7645
commit cd0519d24b
5 changed files with 28 additions and 6 deletions

View File

@ -29,8 +29,6 @@
#ifndef glm_core_swizzle #ifndef glm_core_swizzle
#define glm_core_swizzle #define glm_core_swizzle
#include "_swizzle_func.hpp"
namespace glm namespace glm
{ {
enum comp enum comp

View File

@ -31,7 +31,13 @@
#include "../fwd.hpp" #include "../fwd.hpp"
#include "type_vec.hpp" #include "type_vec.hpp"
#include "_swizzle.hpp" #ifdef GLM_SWIZZLE
# if GLM_HAS_ANONYMOUS_UNION
# include "_swizzle.hpp"
# else
# include "_swizzle_func.hpp"
# endif
#endif //GLM_SWIZZLE
namespace glm{ namespace glm{
namespace detail namespace detail

View File

@ -31,7 +31,13 @@
#include "../fwd.hpp" #include "../fwd.hpp"
#include "type_vec.hpp" #include "type_vec.hpp"
#include "_swizzle.hpp" #ifdef GLM_SWIZZLE
# if GLM_HAS_ANONYMOUS_UNION
# include "_swizzle.hpp"
# else
# include "_swizzle_func.hpp"
# endif
#endif //GLM_SWIZZLE
namespace glm{ namespace glm{
namespace detail namespace detail

View File

@ -31,7 +31,13 @@
#include "../fwd.hpp" #include "../fwd.hpp"
#include "type_vec.hpp" #include "type_vec.hpp"
#include "_swizzle.hpp" #ifdef GLM_SWIZZLE
# if GLM_HAS_ANONYMOUS_UNION
# include "_swizzle.hpp"
# else
# include "_swizzle_func.hpp"
# endif
#endif //GLM_SWIZZLE
namespace glm{ namespace glm{
namespace detail namespace detail

View File

@ -31,7 +31,13 @@
#include "../fwd.hpp" #include "../fwd.hpp"
#include "type_vec.hpp" #include "type_vec.hpp"
#include "_swizzle.hpp" #ifdef GLM_SWIZZLE
# if GLM_HAS_ANONYMOUS_UNION
# include "_swizzle.hpp"
# else
# include "_swizzle_func.hpp"
# endif
#endif //GLM_SWIZZLE
namespace glm{ namespace glm{
namespace detail namespace detail