diff options
Diffstat (limited to 'Gem/develop')
-rw-r--r-- | Gem/develop/include/Gem/Gem/GemGL.h | 6 | ||||
-rw-r--r-- | Gem/develop/include/Gem/Gem/GemGLconfig.h | 7 | ||||
-rw-r--r-- | Gem/develop/include/Gem/Gem/Manager.h | 7 |
3 files changed, 15 insertions, 5 deletions
diff --git a/Gem/develop/include/Gem/Gem/GemGL.h b/Gem/develop/include/Gem/Gem/GemGL.h index 797e889..a009928 100644 --- a/Gem/develop/include/Gem/Gem/GemGL.h +++ b/Gem/develop/include/Gem/Gem/GemGL.h @@ -26,8 +26,10 @@ # include <windows.h> #endif -#ifdef GLEW_MX -# define GEM_MULTICONTEXT +#include "Gem/GemGLconfig.h" + +#ifdef GEM_MULTICONTEXT +# define GLEW_MX #endif #include "Gem/glew.h" diff --git a/Gem/develop/include/Gem/Gem/GemGLconfig.h b/Gem/develop/include/Gem/Gem/GemGLconfig.h new file mode 100644 index 0000000..2165eb6 --- /dev/null +++ b/Gem/develop/include/Gem/Gem/GemGLconfig.h @@ -0,0 +1,7 @@ +/* src/Gem/GemGLconfig.h. Generated from GemGLconfig.h.in by configure. */ + +/* Define to 1 if Gem is built with multi-context support */ +#define GEM_MULTICONTEXT 1 + +/* Define to 1 if using the built-in GLEW */ +#define GLEW_BUILD 1 diff --git a/Gem/develop/include/Gem/Gem/Manager.h b/Gem/develop/include/Gem/Gem/Manager.h index cbca8ba..48abce7 100644 --- a/Gem/develop/include/Gem/Gem/Manager.h +++ b/Gem/develop/include/Gem/Gem/Manager.h @@ -68,7 +68,7 @@ public: ////////// // is there a context (has its meaning under X) - static void createContext(char* disp); + static void createContext(const char* disp); static int contextExists(void); ////////// @@ -98,7 +98,7 @@ public: ////////// // Create the window with the current parameters - static int createWindow(char* disp = 0); + static int createWindow(const char* disp = 0); ////////// // Destroy the window @@ -123,6 +123,7 @@ public: static void getDimen(int*width, int*height); static void getRealDimen(int*width, int*height); static void getOffset(int*x, int*y); + static void setDimen(int width, int height); ////////// // Turn on/off lighting @@ -219,7 +220,7 @@ private: // This window is always available (although not visible) static WindowInfo &getConstWindowInfo(void); #endif /* GEM_MULTICONTEXT */ - static int createConstWindow(char* disp = 0); + static int createConstWindow(const char* disp = 0); // gemwin is allowed to modifying "global" window attributes friend class gemwin; |