1 #ifndef ALLOFW_OPENGL_H 2 #define ALLOFW_OPENGL_H 9 #include <OpenGL/gl3.h> 10 #include <OpenGL/gl3ext.h> 12 #define GL_GLEXT_PROTOTYPES 32 active_stereo =
false;
43 virtual void onMove(
int x,
int y);
45 virtual void onClose();
46 virtual void onRefresh();
47 virtual void onFocus(
int focused);
48 virtual void onIconify(
int iconified);
49 virtual void onFramebufferSize(
int width,
int height);
51 virtual void onKeyboard(
const char* key,
const char* action,
const char* modifiers,
int scancode);
53 virtual void onCursorPosition(
double x,
double y);
54 virtual void onMouseButton(
const char* button,
const char* action,
const char* modifiers);
55 virtual void onCursorEnter(
bool entered);
56 virtual void onScroll(
double xoffset,
double yoffset);
85 virtual void close() = 0;
virtual void enableKeyboardInput()=0
int height
Definition: opengl.h:29
Hint()
Definition: opengl.h:31
virtual void pollEvents()=0
virtual Size2i getFramebufferSize()=0
virtual void enableMouseInput()=0
virtual bool shouldClose()=0
int width
Definition: opengl.h:28
bool active_stereo
Definition: opengl.h:25
virtual void swapBuffers()=0
virtual void makeContextCurrent()=0
YAML-based configuration reader.
Definition: config.h:12
static void Destroy(OpenGLWindow *window)
static OpenGLWindow * Create(Hint hint, const char *title)
virtual void waitEvents()=0
virtual ~Delegate()
Definition: opengl.h:57
virtual void setDelegate(Delegate *delegate)=0
bool fullscreen
Definition: opengl.h:26
bool hide_cursor
Definition: opengl.h:27