[Orxonox-commit 596] r3128 - branches/pch/src/util

rgrieder at orxonox.net rgrieder at orxonox.net
Tue Jun 9 16:30:44 CEST 2009


Author: rgrieder
Date: 2009-06-09 16:30:44 +0200 (Tue, 09 Jun 2009)
New Revision: 3128

Modified:
   branches/pch/src/util/Math.h
   branches/pch/src/util/UtilPrereqs.h
Log:
Allow use of Vector2, etc. as pointers or references when only including UtilPrereqs.h

Modified: branches/pch/src/util/Math.h
===================================================================
--- branches/pch/src/util/Math.h	2009-06-09 14:29:42 UTC (rev 3127)
+++ branches/pch/src/util/Math.h	2009-06-09 14:30:44 UTC (rev 3128)
@@ -57,16 +57,6 @@
 
 namespace orxonox
 {
-    using Ogre::Radian;
-    using Ogre::Degree;
-    using Ogre::Vector2;
-    using Ogre::Vector3;
-    using Ogre::Vector4;
-    using Ogre::Matrix3;
-    using Ogre::Matrix4;
-    using Ogre::Quaternion;
-    using Ogre::ColourValue;
-
     // Also define our own transform space enum
     namespace TransformSpace
     {

Modified: branches/pch/src/util/UtilPrereqs.h
===================================================================
--- branches/pch/src/util/UtilPrereqs.h	2009-06-09 14:29:42 UTC (rev 3127)
+++ branches/pch/src/util/UtilPrereqs.h	2009-06-09 14:30:44 UTC (rev 3128)
@@ -59,8 +59,31 @@
 //-----------------------------------------------------------------------
 // Forward declarations
 //-----------------------------------------------------------------------
+namespace Ogre
+{
+    class Radian;
+    class Degree;
+    class Vector2;
+    class Vector3;
+    class Vector4;
+    class Matrix3;
+    class Matrix4;
+    class Quaternion;
+    class ColourValue;
+}
+
 namespace orxonox
 {
+    using Ogre::Radian;
+    using Ogre::Degree;
+    using Ogre::Vector2;
+    using Ogre::Vector3;
+    using Ogre::Vector4;
+    using Ogre::Matrix3;
+    using Ogre::Matrix4;
+    using Ogre::Quaternion;
+    using Ogre::ColourValue;
+
     class Exception;
     class ExprParser;
     class IntVector2;




More information about the Orxonox-commit mailing list