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 minimal example in C #258

Closed
wants to merge 1 commit into from
Closed

Add a minimal example in C #258

wants to merge 1 commit into from

Conversation

@linkmauve
Copy link
Contributor

linkmauve commented Feb 5, 2020

This is a direct port of examples/canvas_minimal, using GLFW instead of SDL2 and written in C to show how to use this binding.

@linkmauve linkmauve force-pushed the linkmauve:c-example branch 2 times, most recently from 6c32713 to e1907b2 Feb 5, 2020
@linkmauve linkmauve changed the title WIP: Add a minimal example in C Add a minimal example in C Feb 5, 2020
@pcwalton
Copy link
Collaborator

pcwalton commented Feb 5, 2020

Thanks! How about putting this in examples/, to go alongside the existing macos_app C example?

This is a direct port of examples/canvas_minimal, using GLFW instead of
SDL2 and written in C to show how to use this binding.
@linkmauve linkmauve force-pushed the linkmauve:c-example branch from e1907b2 to 6b79560 Mar 1, 2020
@linkmauve
Copy link
Contributor Author

linkmauve commented Mar 1, 2020

I moved it to examples/glfw_app/ to match the macOS example.

I’m planning on moving pathfinder_c to use lu_zero’s cargo-c instead of bindgen directly, this will give the benefit of creating a .pc file that can then be installed, and let other software use Pathfinder’s C API as they would with any other C library, with pkg-config.

pcwalton added a commit to pcwalton/pathfinder that referenced this pull request May 8, 2020
@pcwalton pcwalton closed this in #327 May 8, 2020
@linkmauve linkmauve deleted the linkmauve:c-example branch Jul 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.