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

Add a new example for OpenGL context using femtovg #176

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

prokopyl
Copy link
Member

This PR adds a new example demonstrating how to create and use an OpenGL context by integrating with the femtovg library.

This is also helpful to have a simple, cross-platform and easily-reproducible way to test OpenGL context creation.

This example also allows to test proper window scaling and resizing (with a large blue square that covers the window with a 10% margin), as well as mouse movement tracking (inspired by the femtovg book, with a small orange square that follows the mouse).

@prokopyl prokopyl requested a review from micahrj March 25, 2024 23:45
@prokopyl prokopyl merged commit 70e7af6 into RustAudio:master Mar 27, 2024
3 checks passed
@prokopyl prokopyl deleted the femtovg-example branch March 27, 2024 05:39
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

Successfully merging this pull request may close these issues.

2 participants