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

Cleanup of OpenGlApplication/Runtime initialization #65

Closed
luithefirst opened this issue Jul 16, 2020 · 0 comments
Closed

Cleanup of OpenGlApplication/Runtime initialization #65

luithefirst opened this issue Jul 16, 2020 · 0 comments

Comments

@luithefirst
Copy link
Member

There are 3 OpenGlApplications: WinForms, WPF, Slim

The cleanup is work in progress and here is the documentation of the changes:

  1. Each has a slightly different initialization routine. The WPF one initializes lazy when a RenderControl is created, while the others also have the lazy initialization mechanism, but do not use them -> unify

  2. The construction of an application will always create a default shader cache folder -> constructor argument

  3. Construction of Runtime always uses a null Context, the setter of Context will also initialize the GLVM, which is redundant to the initialization in the Applications -> remove Context from the constructor and move everything to the unified initialization method

  4. Add validation of OpenGl version and error handling (Improve error reporting when library function cannot be loaded #64) -> unified initialization method

@luithefirst luithefirst changed the title Cleanup of OpenGlApplication/Runtime intialization Cleanup of OpenGlApplication/Runtime initialization Jul 16, 2020
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

No branches or pull requests

1 participant