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

Sanitize demo.c and perf.c not to introduce a dependency on OpenGL or GLFW headers needlessly. #555

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

marcel303
Copy link

@marcel303 marcel303 commented Jan 29, 2020

Sanitize demo.c and perf.c so they can be used to make a demo app with any backend, without introducing a dependency to OpenGL or GLFW headers needlessly.

…h any backend, without introducing a dependency on OpenGL or GLFW headers.
@marcel303
Copy link
Author

marcel303 commented Jan 29, 2020

I wrote a NanoVG backend for 'framework' (a creative code library I'm working on). The backend is available over here,
https://github.com/marcel303/framework/tree/master/3rdparty/nanovg-framework

I was running into the issue of not being able to compile an example app using demo.c and perf.c from NanoVG's repository. I put some OpenGL-only functionality behind a DEMO_OPENGL compile-time option. This makes demo.c and perf.c (and thus the example app) work with any backend, and without any OpenGL or GLTF dependency.

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.

1 participant