Skip to content

Conversation

@maxime-tournier
Copy link
Contributor

Hello,

This is a small PR that factors outProgram::draw_* commonalities (setup/cleanup) into two new methods: draw_with and draw_elements_with. These methods accept a draw callback that is called between setup and cleanup, and are used to implement existing draw_ methods.

Context: I need to implement some legacy GL_LINES rendering and this is the smallest-yet-useful (hopefully!) set of changes I could come up with that allows me to do that. This means the two new methods must be public to be useful.

Best regards,

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