Browse Source

Added extension inclusion messages

Christophe Riccio 15 years ago
parent
commit
2aba768990

+ 1 - 1
glm/ext.hpp

@@ -13,7 +13,7 @@
 #if(defined(GLM_MESSAGES) && !defined(GLM_MESSAGE_EXT_INCLUDED_DISPLAYED))
 #if(defined(GLM_MESSAGES) && !defined(GLM_MESSAGE_EXT_INCLUDED_DISPLAYED))
 #	define GLM_MESSAGE_EXT_INCLUDED_DISPLAYED
 #	define GLM_MESSAGE_EXT_INCLUDED_DISPLAYED
 #	pragma message("GLM: All extensions included (not recommanded)")
 #	pragma message("GLM: All extensions included (not recommanded)")
-#endif//GLM_MESSAGE
+#endif//GLM_MESSAGES
 
 
 #include "./gtc/half_float.hpp"
 #include "./gtc/half_float.hpp"
 #include "./gtc/matrix_access.hpp"
 #include "./gtc/matrix_access.hpp"

+ 4 - 0
glm/gtc/half_float.hpp

@@ -13,6 +13,10 @@
 // Dependency:
 // Dependency:
 #include "../glm.hpp"
 #include "../glm.hpp"
 
 
+#if(!defined(glm_ext))
+#	pragma message("GLM: GLM_GTC_half_float extension included")
+#endif
+
 namespace glm
 namespace glm
 {
 {
 	namespace test{
 	namespace test{

+ 4 - 0
glm/gtc/matrix_access.hpp

@@ -16,6 +16,10 @@
 // Dependency:
 // Dependency:
 #include "../glm.hpp"
 #include "../glm.hpp"
 
 
+#if(!defined(glm_ext))
+#	pragma message("GLM: GLM_GTC_matrix_access extension included")
+#endif
+
 namespace glm{
 namespace glm{
 namespace gtc{
 namespace gtc{
 //! GLM_GTC_matrix_access extension: Set a column or a row of a matrix
 //! GLM_GTC_matrix_access extension: Set a column or a row of a matrix

+ 4 - 0
glm/gtc/matrix_inverse.hpp

@@ -16,6 +16,10 @@
 // Dependency:
 // Dependency:
 #include "../glm.hpp"
 #include "../glm.hpp"
 
 
+#if(!defined(glm_ext))
+#	pragma message("GLM: GLM_GTC_matrix_inverse extension included")
+#endif
+
 namespace glm{
 namespace glm{
 namespace gtc{
 namespace gtc{
 //! GLM_GTC_matrix_inverse extension: Inverse matrix functions
 //! GLM_GTC_matrix_inverse extension: Inverse matrix functions

+ 4 - 0
glm/gtc/matrix_transform.hpp

@@ -17,6 +17,10 @@
 // Dependency:
 // Dependency:
 #include "../glm.hpp"
 #include "../glm.hpp"
 
 
+#if(!defined(glm_ext))
+#	pragma message("GLM: GLM_GTC_matrix_transform extension included")
+#endif
+
 namespace glm
 namespace glm
 {
 {
 	namespace test{
 	namespace test{

+ 4 - 0
glm/gtc/quaternion.hpp

@@ -22,6 +22,10 @@
 #include "../glm.hpp"
 #include "../glm.hpp"
 #include "../gtc/half_float.hpp"
 #include "../gtc/half_float.hpp"
 
 
+#if(!defined(glm_ext))
+#	pragma message("GLM: GLM_GTC_quaternion extension included")
+#endif
+
 namespace glm
 namespace glm
 {
 {
 	namespace test{
 	namespace test{

+ 4 - 0
glm/gtc/swizzle.hpp

@@ -17,6 +17,10 @@
 #include "../glm.hpp"
 #include "../glm.hpp"
 #include "../gtc/type_precision.hpp"
 #include "../gtc/type_precision.hpp"
 
 
+#if(!defined(glm_ext))
+#	pragma message("GLM: GLM_GTC_swizzle extension included")
+#endif
+
 namespace glm
 namespace glm
 {
 {
 	namespace test{
 	namespace test{

+ 4 - 0
glm/gtc/type_precision.hpp

@@ -20,6 +20,10 @@
 #include "../gtc/half_float.hpp"
 #include "../gtc/half_float.hpp"
 #include "../gtc/quaternion.hpp"
 #include "../gtc/quaternion.hpp"
 
 
+#if(!defined(glm_ext))
+#	pragma message("GLM: GLM_GTC_type_precision extension included")
+#endif
+
 namespace glm
 namespace glm
 {
 {
 	namespace test{
 	namespace test{

+ 4 - 0
glm/gtc/type_ptr.hpp

@@ -16,6 +16,10 @@
 // Dependency:
 // Dependency:
 #include "../glm.hpp"
 #include "../glm.hpp"
 
 
+#if(!defined(glm_ext))
+#	pragma message("GLM: GLM_GTC_type_ptr extension included")
+#endif
+
 namespace glm
 namespace glm
 {
 {
 	namespace test{
 	namespace test{

+ 1 - 1
test/gtc/gtc-swizzle.cpp

@@ -7,7 +7,7 @@
 // File    : test/gtx/simd-mat4.cpp
 // File    : test/gtx/simd-mat4.cpp
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 
 
-#define GLM_INSTRUCTION_SET GLM_PLATFORM_SSE3 | GLM_PLATFORM_SSE2
+#define GLM_MESSAGES
 #include <glm/glm.hpp>
 #include <glm/glm.hpp>
 #include <glm/gtc/swizzle.hpp>
 #include <glm/gtc/swizzle.hpp>