Keyboard and mouse button modifiers

Keyboard modifier and mouse button masks to key, button and motion
events.
glwtWindowGetSize

Add a function to query current window size.

Use glXQueryDrawable to implement it on X11/GLX.
Use XGetVisualInfo, not glXGetVisualFromFBConfig

Use XGetVisualInfo to query appropriate visual instead of
glXGetVisualFromFBConfig. This is needed in EGL, where only the visual
id can be queried from a config.
Add EGL support
A new event handling API

Instead of many callback functions, use a single event callback function
that takes a struct with an enum and a union.
glwtWindowSetTitle
Fix duplicate keysym

GLWT_KEY_COMMA and GLWT_KEY_MINUS had equal values. Fix'd!
Raspberry Pi OpenGL ES support

Raspberry Pi OpenGL ES initialization using the proprietary Broadcom
firmware libraries.
Implemented the OSX port.
X11: Silently ignore events for destroyed windows

After a window has been destroyed and the corresponding entry in X11
Context has been removed, there may still be events in the X11 event
queue for that window remaining.

Silently ignore any events for windows which are not found in the X11
context using XFindContext.
Converted the OSX port to C89

It now builds with llvm-gcc-4.2 shipped by apple.
Also fixed some warnings
X11: Avoid C99 struct initializers
glwt_events: Fixed uninitialized window on error.
OSX: fix GL context initialization, clean up

Moved context-view association to after the context has been created.

Fixed incorrect behavior in context version attributes caused by a typo
in an #ifdef.
OSX: window close event and glwtQuit fix

Handle windowShouldClose instead of windowWillClose event to get
behavior that is more like other platforms.

Don't terminate the app on glwtQuit.

NSApplocation terminate terminates the entire process, not only the runloop
of the NSApplication object. Using stop instead of terminate only stops the
runloop so we use that instead.

Clean up and refactor window init and cleanup.
OSX: Fix glwtEventHandle(wait=0)

Make glwtEventHandle behave nicely when nextEventMatchingMask returns
nil.

Remove application.[mh] and move keyboard event workaround to
glwtEventHandle instead of subclassing NSApplication. Move
modifier_flags to struct glwt_window_osx.
Win32: basic initialization

Initialization of Win32 with WGL and EGL.

Move variable declarations to beginning of block. Use alloca instead of
dynamically sized arrays. Compiles with MSVC.
Win32 event handling
Win32: special keys and mouse wheel

Handle WM_SYSKEYUP, WM_SYSKEYDOWN, translate keysyms to distinguish
between left and right ctrl, alt, etc.

WM_MOUSEWHEEL, WM_MOUSEHWHEEL send button events.
EGL, WGL, GLX: fixes

Fix glwtMakeCurrent(NULL).

Add error status return values to glwtMakeCurrent, glwtSwapBuffers,
glwtSwapInterval and glwtWindowGetSize.

Get rid of platform specific #ifdefs in EGL code. Move
visual_id/pixel_format from x11, win32 to glx, wgl, egl.

Split glwtWindowCreateEGL context and surface creation.