Skip to content

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