]> git.mxchange.org Git - flightgear.git/commitdiff
near and far are #defined in MSVC
authorfredb <fredb>
Sat, 26 Jan 2008 07:48:05 +0000 (07:48 +0000)
committerfredb <fredb>
Sat, 26 Jan 2008 07:48:05 +0000 (07:48 +0000)
src/Main/renderer.cxx
src/Main/renderer.hxx

index 41e313c099bda3ba5aebb2321fbac3fc9f13a88f..6e93d57c3198d1d681c90ec1ca2dffe774419a31 100644 (file)
@@ -855,13 +855,13 @@ FGRenderer::resize( int width, int height ) {
 }
 
 void FGRenderer::setCameraParameters(float vfov, float aspectRatio,
-                                     float near, float far)
+                                     float zNear, float zFar)
 {
-    near = .1;
+    zNear = .1;
     osgViewer::Viewer* viewer = globals->get_renderer()->getViewer();
     viewer->getCamera()->setProjectionMatrixAsPerspective(vfov,
                                                           1.0f / aspectRatio,
-                                                          near, far);
+                                                          zNear, zFar);
     
 }
 bool
index f651be821b4c951a8ae715f775b5a35218d363ea..918408bcd548bf29afbc4362fa279e488dc5ece1 100644 (file)
@@ -43,7 +43,7 @@ public:
     /** Set all the camera parameters at once. aspectRatio is height / width.
      */
     static void setCameraParameters(float vfov, float aspectRatio,
-                                    float near, float far);
+                                    float zNear, float zFar);
     /** Just pick into the scene and return the pick callbacks on the way ...
      */
     static bool pick( unsigned x, unsigned y,