]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/renderer.hxx
The view frustum is defined in plib apps using calls to ssgSetFOV() and
[flightgear.git] / src / Main / renderer.hxx
index 62f3f205359e613ca43e2483e0903bcf91997bf3..ed9fe6df2640fa8982264b19d551ea068e6c6f4f 100644 (file)
@@ -18,8 +18,9 @@ extern bool glPointParameterIsSupported;
 class FGRenderer {
 
 public:
-    FGRenderer() {}
-    ~FGRenderer() {}
+
+    FGRenderer();
+    ~FGRenderer();
 
     void init();
 
@@ -31,6 +32,18 @@ public:
     // renderer which needs to set the view frustum itself.
     static void update( bool refresh_camera_settings );
     inline static void update() { update( true ); }
+
+
+    /** FlightGear code should use this routine to set the FOV rather
+     *  than calling the ssg routine directly
+     */
+    static void setFOV( float w, float h );
+
+
+    /** FlightGear code should use this routine to set the Near/Far
+     *  clip planes rather than calling the ssg routine directly
+     */
+    static void setNearFar( float n, float f );
 };
 
 #endif