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

How to add new user data to the window context? #220

Open
Gnimuc opened this issue May 25, 2021 · 0 comments
Open

How to add new user data to the window context? #220

Gnimuc opened this issue May 25, 2021 · 0 comments

Comments

@Gnimuc
Copy link
Contributor

Gnimuc commented May 25, 2021

Currently, it seems the user data is dedicated to callbacks:

GLFW.jl/src/glfw3.jl

Lines 501 to 503 in 1fcbeaf

_window_callbacks[window] = callbacks
ccall((:glfwSetWindowUserPointer, libglfw), Cvoid, (Window, Ref{Vector{Callback}}), window, callbacks)
window

If a new user data pointer is registered, those callback APIs cannot work properly.

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

1 participant