Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glfwCreateCursor functionallity #42

Open
zion-reload opened this issue Jul 8, 2016 · 4 comments
Open

glfwCreateCursor functionallity #42

zion-reload opened this issue Jul 8, 2016 · 4 comments

Comments

@zion-reload
Copy link

Hi,

First of all, I wanna to thank you for porting GLFW3 to c#, I'm making an small application and is just great to work with the library 👍

Unfortunately I can't create my own cursor.. I found the functions Set/GetWindowUserIcon, however, I can't find the glfwCreateCursor. As far as I could read out there the functionality is available on GLFW3
http://www.glfw.org/docs/latest/group__input.html#gafca356935e10135016aa49ffa464c355

can you please give me and example of how to archive this on pencil.game library?
thanks in advance!!

@zion-reload
Copy link
Author

is there any reason to do not comment to my previous question? if it is out of place, even that will be nice to know ;-)

@andykorth
Copy link
Owner

Hi, sorry I missed the question! I suspect that the reason that both glfwCreateCursor and glfwSetWindowIcon are missing is because they use GLFWimage isn't present in Pencil for GLFW3. It looks like it's a 32-bit per pixel bitmap. GLFW 3 doesn't provide any image loading, but pencil can, of course... so if you make a matching struct, you could probably write a and use a glfwCreateCursor.

A little more info here:
http://www.glfw.org/docs/latest/input_guide.html#cursor_custom

@antonijn
Copy link
Collaborator

This issue will (probably) be fixed with a fix of #40

antonijn pushed a commit that referenced this issue Jul 18, 2017
Fixes #40, fixes #47, fixes #42 (untested), fixes #30 (untested).

This still needs extensive testing! I've only made sure basic programs
work and that the project still compiles. But this is what the develop
branch is for??? (Dubious :P)

Things that need to be tested:
- Setting cursor images
- Test if #48 has been magically fixed
- Verify if #30 has actually been fixed
- More extensive callback testing (have only tested GlfwDropFun)
- OS X
- Windows
- Building with Monodevelop/Visual Studio (I'm using vim and xbuild)
@antonijn
Copy link
Collaborator

antonijn commented Sep 5, 2017

I added the code for this, but I haven't tested it yet. It's in the develop branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants