27 #ifndef _CEGuiGLFWSharedBase_h_ 28 #define _CEGuiGLFWSharedBase_h_ 30 #include "CEGuiBaseApplication.h" 31 #include "CEGUI/MouseCursor.h" 52 static void initGLFW();
53 static void createGLFWWindow();
54 static void setGLFWAppConfiguration();
58 static void GLFWCALL glfwKeyCallback(
int key,
int action);
59 static void GLFWCALL glfwCharCallback(
int character,
int action);
60 static void GLFWCALL glfwMouseButtonCallback(
int key,
int action);
61 static void GLFWCALL glfwMouseWheelCallback(
int position);
62 static void GLFWCALL glfwMousePosCallback(
int x,
int y );
64 static int GLFWCALL glfwWindowCloseCallback(
void);
65 static void GLFWCALL glfwWindowResizeCallback(
int width,
int height);
67 static CEGUI::Key::Scan GlfwToCeguiKey(
int glfwKey);
74 static double d_frameTime;
75 static int d_modifiers;
77 static bool d_windowSized;
78 static int d_newWindowWidth;
79 static int d_newWindowHeight;
81 static bool d_mouseLeftWindow;
82 static bool d_mouseDisableCalled;
83 static int d_oldMousePosX;
84 static int d_oldMousePosY;
88 #endif // end of guard _CEGuiGLFWSharedBase_h_ Definition: CEGuiGLFWSharedBase.h:36
MouseButton
Enumeration of mouse buttons.
Definition: cegui/include/CEGUI/InputEvent.h:209
void destroyWindow()
The abstract function for destroying the renderer and the window.
Definition: CEGuiGLFWSharedBase.cpp:105
void endRendering()
Implementation function to perform required post-render operations.
Definition: CEGuiGLFWSharedBase.cpp:117
void run()
The abstract function for initialising and running the application.
Definition: CEGuiGLFWSharedBase.cpp:67
This is a base class that is intended to be used for all sample applications. Here we take care of co...
Definition: SamplesFrameworkBase.h:42
Base application abstract base class.
Definition: CEGuiBaseApplication.h:67
void beginRendering(const float elapsed)
Implementation function to perform required pre-render operations.
Definition: CEGuiGLFWSharedBase.cpp:111