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 API to let users pick OpenGL version #921

Merged
merged 19 commits into from Jun 8, 2019
Merged

Add API to let users pick OpenGL version #921

merged 19 commits into from Jun 8, 2019

Conversation

devvoid
Copy link
Contributor

@devvoid devvoid commented May 30, 2019

Purpose of this PR

  • Currently, GLFW windows default to creating the newest API possible. This will allow a user to specify the actual OpenGL version they want.
  • Affects Windowing.
  • Inline documentation provided.

Testing status

  • No testing yet, beyond it working.

Comments

  • No other comments.

Copy link
Contributor

@Perksey Perksey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mentioned this in Discord, but thought I'd mention it here.

Don't forget we changed the way we bake profiles in 4.0.

  • OpenToolkit.OpenGL contains OpenGL 1.0 through OpenGL 4.6
  • OpenToolkit.OpenGL.Core contains OpenGL 1.0 through OpenGL 4.6, core profile
  • OpenToolkit.OpenGLES contains OpenGLES 1.0 through OpenGLES 3.2

Obsolete functions are marked as such, except in core profile where obsolete functions are removed. This GLVersion would be used for windowing only, and no way affect the bindings.

@devvoid devvoid changed the title [WIP] Add API to let users pick OpenGL version Add API to let users pick OpenGL version May 31, 2019
@devvoid
Copy link
Contributor Author

devvoid commented Jun 1, 2019

This is ready for review.

Copy link
Contributor

@Perksey Perksey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, Void. I have a few comments, nothing too major.

@devvoid
Copy link
Contributor Author

devvoid commented Jun 1, 2019

Done.

Copy link
Contributor

@Perksey Perksey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome stuff Void, we're getting close now.

@devvoid
Copy link
Contributor Author

devvoid commented Jun 2, 2019

Done!

Copy link
Member

@varon varon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking great, almost there. Just a a few tiny changes!

@devvoid
Copy link
Contributor Author

devvoid commented Jun 2, 2019

Finished.

@varon varon merged commit cc68f54 into opentk:master Jun 8, 2019
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.

None yet

4 participants