Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
SettingsGL.hh
1 #ifndef __SettingsGL_hh__
2 #define __SettingsGL_hh__
3 
4 // ----------------------------------------------------------
5 // @author Jan Woetzel (c) 10/2005
6 #include <bias_config.h>
7 
8 #ifndef BIAS_HAVE_OPENGL
9 # error Please recompile BIAS with USE_OPENGL to use this file.
10 #endif // BIAS_HAVE_OPENGL
11 
12 //#ifndef BIAS_HAVE_GLEW
13 //# error Please recompile BIAS with USE_GLEW to use this file.
14 //#endif // BIAS_HAVE_GLEW
15 
16 // must be first
17 #include "biasgl.h"
18 
19 
20 namespace BIAS {
21  /** @class SettingsGL
22  @ingroup g_gui
23  @brief Application controlled OpenGl renderingsettings
24 
25  E.g. Vsync, Multisampling/Antialiasing, anisotropic filtering (planned),
26  @author Jan Woetzel
27  */
28  class SettingsGL {
29  public:
30 
31  /** query status of vsync/swap control interval=VSYNC JW */
32  static int GetVSyncInterval();
33 
34  /** set the vsync/swap control interval JW */
35  static void SetVSyncInterval( const int & interval );
36 
37  };
38 } // namespace BIAS
39 #endif
Application controlled OpenGl renderingsettings.
Definition: SettingsGL.hh:28
static int GetVSyncInterval()
query status of vsync/swap control interval=VSYNC JW
Definition: SettingsGL.cpp:60
static void SetVSyncInterval(const int &interval)
set the vsync/swap control interval JW
Definition: SettingsGL.cpp:27