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

Refactor opengl examples to reduce code duplication and fix warnings #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexpana
Copy link

@alexpana alexpana commented Oct 1, 2016

Glancing over the opengl examples I found a lot of warnings and bad practices: code duplication, non-private fields and various inconsistencies.

I'd like to propose some simple refactorings to clean up the examples. After all, the examples are probably the first thing new developers see.

This pull request is not complete, but I would like to have some feedback on the proposal. The ImmediateModeDemo and NoVerticesBSplineDemo have been refactored as examples. The glfw scaffolding (which is duplicated among all examples) has been extracted into a parent class, so that each example only contains logic and state relevant for the example.

@httpdigest httpdigest force-pushed the master branch 4 times, most recently from a0522f3 to 3774f7b Compare October 24, 2016 22:17
@httpdigest httpdigest force-pushed the master branch 9 times, most recently from 0dfe4d5 to 1a4879c Compare February 20, 2017 21:24
@httpdigest httpdigest force-pushed the master branch 15 times, most recently from aa57aae to 1a7f824 Compare November 13, 2017 21:37
@httpdigest httpdigest force-pushed the main branch 11 times, most recently from f5eb99a to 5149b90 Compare October 31, 2021 17:41
@httpdigest httpdigest force-pushed the main branch 2 times, most recently from 4131b94 to 3ef47ae Compare March 3, 2022 17:08
@httpdigest httpdigest force-pushed the main branch 3 times, most recently from 6127460 to 6717e49 Compare October 19, 2022 09:52
@httpdigest httpdigest force-pushed the main branch 10 times, most recently from eafcf00 to 492ad16 Compare April 29, 2023 17:48
@httpdigest httpdigest force-pushed the main branch 2 times, most recently from 86d8b54 to bdb5675 Compare January 7, 2024 20:20
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