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

async'ify cgosling #121

Open
morganava opened this issue Nov 3, 2024 · 0 comments
Open

async'ify cgosling #121

morganava opened this issue Nov 3, 2024 · 0 comments
Labels
cgosling cgosling C/C++ bindings issue feature New feature or enhancement

Comments

@morganava
Copy link
Collaborator

We should provide two methods for consuming context events:

  • gosling_context_poll_events() -> fires off any pending callbacks, intended for being called in an otherwise active loop (e.g. and event loop or rendering loop, etc)
  • gosling_context_wait_events() -> sleeps the thread until a callback is read to be fired

See GLFW for insp:

@morganava morganava added feature New feature or enhancement cgosling cgosling C/C++ bindings issue labels Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cgosling cgosling C/C++ bindings issue feature New feature or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant