My Project
 All Classes Files Functions Variables Enumerations Pages
parameters_render.h
Go to the documentation of this file.
1 /**************************************************************************/
2 /* Copyright 2009 Tim Day */
3 /* */
4 /* This file is part of Fracplanet */
5 /* */
6 /* Fracplanet is free software: you can redistribute it and/or modify */
7 /* it under the terms of the GNU General Public License as published by */
8 /* the Free Software Foundation, either version 3 of the License, or */
9 /* (at your option) any later version. */
10 /* */
11 /* Fracplanet is distributed in the hope that it will be useful, */
12 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
13 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
14 /* GNU General Public License for more details. */
15 /* */
16 /* You should have received a copy of the GNU General Public License */
17 /* along with Fracplanet. If not, see <http://www.gnu.org/licenses/>. */
18 /**************************************************************************/
19 
24 #ifndef _parameters_render_h_
25 #define _parameters_render_h_
26 
27 #include "rgb.h"
28 
29 class XYZ;
30 
33 {
34 public:
35 
37  ParametersRender(const boost::program_options::variables_map& opts);
38 
41 
43  bool wireframe;
44 
47 
50 
52  float ambient;
53 
56 
59 
62 
65 
67  float fps_target;
68 
70  const XYZ illumination_direction() const;
71 
72  static boost::program_options::options_description options();
73 };
74 
75 #endif
FloatRGBA background_colour_low
Background colour at low altitude.
Definition: parameters_render.h:61
~ParametersRender()
Destructor.
Definition: parameters_render.cpp:48
bool joystick_mouse
Joystick mode for flight.
Definition: parameters_render.h:49
float illumination_azimuth
Controls illumination direction.
Definition: parameters_render.h:55
Interface for class ByteRGBA and class FloatRGBA.
Aggregates controllable parameters for all things related to OpenGL rendering.
Definition: parameters_render.h:32
const XYZ illumination_direction() const
Illumination direction computed from azimuth and elevation angles.
Definition: parameters_render.cpp:51
Class to hold vectors in 3D cartesian co-ordinates.
Definition: xyz.h:34
float illumination_elevation
Controls illumination direction.
Definition: parameters_render.h:58
Class to represent red-green-blue-alpha colours stored to floating point accuracy.
Definition: rgb.h:173
bool display_list
Render via display list.
Definition: parameters_render.h:46
FloatRGBA background_colour_high
Background colour at high altitude.
Definition: parameters_render.h:64
bool wireframe
Flag selecting OpenGL wireframe rendering.
Definition: parameters_render.h:43
float fps_target
Target frame rate.
Definition: parameters_render.h:67
ParametersRender(const boost::program_options::variables_map &opts)
Constructor.
Definition: parameters_render.cpp:36
float ambient
Amount of global ambient illumination (0-1)
Definition: parameters_render.h:52