]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/renderer.hxx
Fix a typo and an unitialized variable
[flightgear.git] / src / Main / renderer.hxx
index 62f3f205359e613ca43e2483e0903bcf91997bf3..de33b114a60bd342223d75a720dc2683403684c7 100644 (file)
@@ -18,8 +18,9 @@ extern bool glPointParameterIsSupported;
 class FGRenderer {
 
 public:
-    FGRenderer() {}
-    ~FGRenderer() {}
+
+    FGRenderer();
+    ~FGRenderer();
 
     void init();
 
@@ -31,6 +32,24 @@ 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 );
+
+    /** Get the pick start point and direction in global coordinates.
+     *  The inputs are expected to be the x and y coordinates of the
+     *  screen point relative to the window.
+     */
+    static bool getPickInfo( sgdVec3 p, sgdVec3 d, unsigned x, unsigned y );
 };
 
 #endif