Graphite  Version 3
An experimental 3D geometry processing program
common.h
Go to the documentation of this file.
1 /*
2  * GXML/Graphite: Geometry and Graphics Programming Library + Utilities
3  * Copyright (C) 2000 Bruno Levy
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  *
19  * If you modify this software, you should include a notice giving the
20  * name of the person performing the modification, the date of modification,
21  * and the reason for such modification.
22  *
23  * Contact: Bruno Levy
24  *
25  * levy@loria.fr
26  *
27  * ISA Project
28  * LORIA, INRIA Lorraine,
29  * Campus Scientifique, BP 239
30  * 54506 VANDOEUVRE LES NANCY CEDEX
31  * FRANCE
32  *
33  * Note that the GNU General Public License does not permit incorporating
34  * the Software into proprietary programs.
35  */
36 
37 
38 #ifndef H_OGF_SKIN_IMGUI_COMMON_COMMON_H
39 #define H_OGF_SKIN_IMGUI_COMMON_COMMON_H
40 
42 #ifdef skin_imgui_EXPORTS
43 # define SKIN_IMGUI_API OGF_EXPORT
44 #else
45 # define SKIN_IMGUI_API OGF_IMPORT
46 #endif
47 
48 
49 #include <iostream>
50 // iostream should be included before anything
51 // else, otherwise 'cin', 'cout' and 'cerr' will
52 // be uninitialized.
53 
54 //#include <geogram_gfx/third_party/glew/glew.h>
55 //#include <OGF/skin/common/common.h>
57 
58 // Lots of "conditional expression is constant" warnings
59 // in Qt include files. Deactivating this warning for this
60 // library.
61 
62 #ifdef GEO_COMPILER_MSVC
63 # pragma warning(disable: 4127)
64 #endif
65 
66 // Lots of sign conversion and conversion warnings in Qt,
67 // disabling them.
68 #ifdef GEO_COMPILER_GCC
69 # pragma GCC diagnostic ignored "-Wsign-conversion"
70 # pragma GCC diagnostic ignored "-Wconversion"
71 #endif
72 
77 namespace OGF {
78 
79  static class SKIN_IMGUI_API skin_imgui_libinit {
80  public:
81  skin_imgui_libinit();
82  ~skin_imgui_libinit();
83 
84  static void increment_users();
85  static void decrement_users();
86 
87  private:
88  static void initialize();
89  static void terminate();
90  static int count_;
91  } skin_imgui_libinit_instance;
92 
93 }
94 
95 #endif
Common include file, providing basic definitions. Should be included before anything else by all head...
void initialize()
Initializes the command line framework.
void terminate()
Cleans up the command line framework.
Global Graphite namespace.
Definition: common.h:76
Definitions common to all include files in the basic library.