]> git.mxchange.org Git - flightgear.git/commitdiff
Remove now unused functions.
authorfrohlich <frohlich>
Sun, 28 Jun 2009 09:21:51 +0000 (09:21 +0000)
committerTim Moore <timoore@redhat.com>
Thu, 2 Jul 2009 06:59:16 +0000 (08:59 +0200)
Modified Files:
  src/Main/renderer.cxx src/Main/renderer.hxx

src/Main/renderer.cxx
src/Main/renderer.hxx

index 94731578f4536a675516274e95030300756f7693..c3aeb4bfb8ebf00e736b713722a5cef4096cd395 100644 (file)
@@ -761,16 +761,6 @@ FGRenderer::resize( int width, int height ) {
     }
 }
 
-void FGRenderer::setCameraParameters(float vfov, float aspectRatio,
-                                     float zNear, float zFar)
-{
-    zNear = .1;
-    osgViewer::Viewer* viewer = globals->get_renderer()->getViewer();
-    viewer->getCamera()->setProjectionMatrixAsPerspective(vfov,
-                                                          1.0f / aspectRatio,
-                                                          zNear, zFar);
-    
-}
 bool
 FGRenderer::pick(std::vector<SGSceneryPick>& pickList,
                  const osgGA::GUIEventAdapter* ea)
index 0a8096cd4bf41f19049b2858c90f590e7a4cc5be..4393e67e719e60bf5125cba504793d231c997af3 100644 (file)
@@ -38,12 +38,6 @@ class FGEventHandler;
 class SGSky;
 extern SGSky *thesky;
 
-extern glPointParameterfProc glPointParameterfPtr;
-extern glPointParameterfvProc glPointParameterfvPtr;
-extern bool glPointParameterIsSupported;
-extern bool glPointSpriteIsSupported;
-
-
 class FGRenderer {
 
 public:
@@ -62,10 +56,6 @@ public:
     static void update( bool refresh_camera_settings );
     inline static void update() { update( true ); }
 
-    /** Set all the camera parameters at once. aspectRatio is height / width.
-     */
-    static void setCameraParameters(float vfov, float aspectRatio,
-                                    float zNear, float zFar);
     /** Just pick into the scene and return the pick callbacks on the way ...
      */
     static bool pick( std::vector<SGSceneryPick>& pickList,