KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gr_glew.h
Go to the documentation of this file.
1 /* $Id: gr_glew.h 18278 2014-11-25 01:42:10Z ksimek $ */
2 /* {{{=========================================================================== *
3  |
4  | Copyright (c) 1994-2011 by Kobus Barnard (author)
5  |
6  | Personal and educational use of this code is granted, provided that this
7  | header is kept intact, and that the authorship is not misrepresented, that
8  | its use is acknowledged in publications, and relevant papers are cited.
9  |
10  | For other use contact the author (kobus AT cs DOT arizona DOT edu).
11  |
12  | Please note that the code in this file has not necessarily been adequately
13  | tested. Naturally, there is no guarantee of performance, support, or fitness
14  | for any particular task. Nonetheless, I am interested in hearing about
15  | problems that you encounter.
16  |
17  | Author: Kyle Simek
18  * =========================================================================== }}}*/
19 
20 // vim: tabstop=4 shiftwidth=4 foldmethod=marker
21 #ifndef KJB_CPP_GR_GLEW_H
22 #define KJB_CPP_GR_GLEW_H
23 
24 #include <string>
25 
26 namespace kjb
27 {
28 namespace opengl
29 {
30 
31 class Glew
32 {
33 public:
34  static void init();
35 
36  static bool is_initialized()
37  {
38  return initialized_;
39  }
40 
41  static void disable_warnings()
42  {
43  warnings_ = false;
44  }
45 
46  static bool warnings_enabled()
47  {
48  return warnings_;
49  }
50 
56  static void test_initialized(const std::string& obj_name);
57 
58 private:
59  static bool initialized_;
60  static bool warnings_;
61 };
62 
63 } // namespace opengl
64 } // namespace kjb
65 
66 #endif
static bool warnings_enabled()
Definition: gr_glew.h:46
static void disable_warnings()
Definition: gr_glew.h:41
static bool is_initialized()
Definition: gr_glew.h:36
static void test_initialized(const std::string &obj_name)
Definition: gr_glew.cpp:59
Definition: gr_glew.h:31
static void init()
Definition: gr_glew.cpp:38