]> git.mxchange.org Git - flightgear.git/blob - src/Main/renderer.hxx
Removed Files:
[flightgear.git] / src / Main / renderer.hxx
1
2 #ifndef __FG_RENDERER_HXX
3 #define __FG_RENDERER_HXX 1
4
5 #include <simgear/screen/extensions.hxx>
6 #include <simgear/scene/sky/sky.hxx>
7
8 #define FG_ENABLE_MULTIPASS_CLOUDS 1
9
10 class SGSky;
11 extern SGSky *thesky;
12
13 extern glPointParameterfProc glPointParameterfPtr;
14 extern glPointParameterfvProc glPointParameterfvPtr;
15 extern bool glPointParameterIsSupported;
16 extern bool glPointSpriteIsSupported;
17
18
19 class FGRenderer {
20
21 public:
22
23     FGRenderer();
24     ~FGRenderer();
25
26     void init();
27
28     static void resize(int width, int height );
29
30     // calling update( refresh_camera_settings = false ) will not
31     // touch window or camera settings.  This is useful for the tiled
32     // renderer which needs to set the view frustum itself.
33     static void update( bool refresh_camera_settings );
34     inline static void update() { update( true ); }
35
36
37     /** FlightGear code should use this routine to set the FOV rather
38      *  than calling the ssg routine directly
39      */
40     static void setFOV( float w, float h );
41
42
43     /** FlightGear code should use this routine to set the Near/Far
44      *  clip planes rather than calling the ssg routine directly
45      */
46     static void setNearFar( float n, float f );
47
48     /** Get the pick start point and direction in global coordinates.
49      *  The inputs are expected to be the x and y coordinates of the
50      *  screen point relative to the window.
51      */
52     static bool getPickInfo( SGVec3d& p, SGVec3d& d, unsigned x, unsigned y );
53 };
54
55 #endif