Fix:Core:Disable roll, add get/set functions if enabled
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sun, 28 Dec 2008 16:17:57 +0000 (16:17 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sun, 28 Dec 2008 16:17:57 +0000 (16:17 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@1863 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/transform.c

index e4b4acb..9c87889 100644 (file)
@@ -33,7 +33,7 @@
 #include "point.h"
 
 #define POST_SHIFT 8
-#define ENABLE_ROLL
+/* #define ENABLE_ROLL */
 
 struct transformation {
        int yaw;                /* Rotation angle */
@@ -529,6 +529,21 @@ transform_get_pitch(struct transformation *this_,int angle)
        return this_->pitch;
 }
 
+#ifdef ENABLE_ROLL
+void
+transform_set_roll(struct transformation *this_,int roll)
+{
+       this_->roll=roll;
+       transform_setup_matrix(this_);
+}
+
+void
+transform_get_roll(struct transformation *this_)
+{
+       return this_->roll;
+}
+#endif
+
 void
 transform_set_distance(struct transformation *this_,int distance)
 {