32 #ifndef GLFW_Window_INCLUDE_ONCE 33 #define GLFW_Window_INCLUDE_ONCE 38 #include <GLFW/glfw3.h> 53 typedef std::map< ::GLFWwindow*, vlGLFW::GLFWWindow* >
WinMapType;
78 WinMapType windows = mWinMap;
79 for( WinMapType::iterator it = windows.begin(); it != windows.end(); ++it ) {
80 it->second->destroyWindow();
90 bool setFullscreen(
bool fs);
94 void setPosition(
int x,
int y) ;
96 void setSize(
int w,
int h) ;
108 void setMouseVisible(
bool visible);
110 void setMousePosition(
int x,
int y);
114 const GLFWwindow*
handle()
const {
return mHandle; }
118 void destroyWindow();
120 static const WinMapType&
windows() {
return mWinMap; }
123 static void glfw_size_callback(GLFWwindow* window,
int w,
int h);
125 static void glfw_pos_callback(GLFWwindow* window,
int x,
int y);
127 static void glfw_refresh_callback(GLFWwindow* window);
129 static void glfw_close_callback(GLFWwindow* window);
131 static void glfw_focus_callback(GLFWwindow* window,
int);
133 static void glfw_iconify_callback(GLFWwindow* window,
int);
139 static void glfw_key_callback(GLFWwindow* window,
int key,
int scancode,
int action,
int mods);
141 static void glfw_unicode_callback(GLFWwindow *,
unsigned int);
143 static void glfw_cursor_enter_callback(GLFWwindow *,
int);
145 static void glfw_cursor_pos_callback(GLFWwindow *,
double,
double);
147 static void glfw_mouse_button_callback(GLFWwindow *,
int,
int,
int);
149 static void glfw_scroll_callback(GLFWwindow *,
double,
double);
151 static void glfw_drop_callback(GLFWwindow *,
int,
const char**);
The String class implements an advanced UTF16 (Unicode BMP) string manipulation engine.
unsigned short mUnicodeChar
Represents an OpenGL context, possibly a widget or a pbuffer, which can also respond to keyboard...
The GLFW bindings namespace.
The GLFWWindow class implements an OpenGLContext using the GLFW API.
void quitApplication()
Attempts to quits the program by destroying all windows.
void translateKey(int &unicode, EKey &key, const wxKeyEvent &ev)
std::map< ::GLFWwindow *, vlGLFW::GLFWWindow *> WinMapType
The OpenGLContextFormat class encapsulates the settings of an OpenGL rendering context.
static WinMapType mWinMap
static const WinMapType & windows()
const GLFWwindow * handle() const