Hardware cursor support #106

merged 5 commits into from Apr 28, 2014


None yet
1 participant

thefiddler commented Apr 27, 2014

This PR introduces partial support for hardware cursors:

using (var gw = new GameWindow())
    gw.Cursor = MouseCursor.Default;

Due to issues with byte order on different platforms, for now only two predefined cursors are supported:


A future PR will introduce support for defining custom cursors.

Affects issue #9

thefiddler added some commits Apr 27, 2014

[GL] Added GetPName.Max*ImageUniforms
These tokens were introduced in OpenGL 4.2 and 4.3.
[X11] Fixed SGI_swap_control query
GLX can return valid function pointer to unsupported functions.
We need to check for extension support in addition to the
function pointer.

Fixes crash on OpenSUSE 13.1 in VirtualBox.
[Win] Fixed MouseCursor.Default
It is now possible to switch from a custom cursor back to

@thefiddler thefiddler merged commit 509f356 into opentk:develop Apr 28, 2014

1 check was pending

continuous-integration/travis-ci The Travis CI build is in progress

thefiddler commented Apr 28, 2014

Tested and merged. Many thanks @Frassle!

@thefiddler thefiddler deleted the thefiddler:cursor branch Apr 28, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment