From: frohlich Date: Sun, 28 Jun 2009 09:21:51 +0000 (+0000) Subject: Remove now unused functions. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e9c0c01ebba0c885f9bce0a3dec2d810fec134d2;p=flightgear.git Remove now unused functions. Modified Files: src/Main/renderer.cxx src/Main/renderer.hxx --- diff --git a/src/Main/renderer.cxx b/src/Main/renderer.cxx index 94731578f..c3aeb4bfb 100644 --- a/src/Main/renderer.cxx +++ b/src/Main/renderer.cxx @@ -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& pickList, const osgGA::GUIEventAdapter* ea) diff --git a/src/Main/renderer.hxx b/src/Main/renderer.hxx index 0a8096cd4..4393e67e7 100644 --- a/src/Main/renderer.hxx +++ b/src/Main/renderer.hxx @@ -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& pickList,