2 #ifndef __FG_RENDERER_HXX
3 #define __FG_RENDERER_HXX 1
5 #include <simgear/screen/extensions.hxx>
6 #include <simgear/scene/sky/sky.hxx>
7 #include <simgear/scene/util/SGPickCallback.hxx>
9 #define FG_ENABLE_MULTIPASS_CLOUDS 1
14 extern glPointParameterfProc glPointParameterfPtr;
15 extern glPointParameterfvProc glPointParameterfvPtr;
16 extern bool glPointParameterIsSupported;
17 extern bool glPointSpriteIsSupported;
30 static void resize(int width, int height );
32 // calling update( refresh_camera_settings = false ) will not
33 // touch window or camera settings. This is useful for the tiled
34 // renderer which needs to set the view frustum itself.
35 static void update( bool refresh_camera_settings );
36 inline static void update() { update( true ); }
39 /** FlightGear code should use this routine to set the FOV rather
40 * than calling the ssg routine directly
42 static void setFOV( float w, float h );
45 /** FlightGear code should use this routine to set the Near/Far
46 * clip planes rather than calling the ssg routine directly
48 static void setNearFar( float n, float f );
50 /** Just pick into the scene and return the pick callbacks on the way ...
52 static bool pick( unsigned x, unsigned y,
53 std::vector<SGSceneryPick>& pickList );