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

Extend the AWTGLCanvas context creation interface to allow trying different parameters. #68

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dolda2000
Copy link

My particular use-case for this is going through different OpenGL versions and see which one sticks.

It introduces the ContextData class to allow passing the context back through an override of the createContext method in a way that can be extended into the future, and also puts the effective GLData in there.

It does perhaps to some extent call into question the role of the data and effective fields in AWTGLCanvas, but I wanted this change to be backward compatible, for obvious reasons.

@dolda2000
Copy link
Author

In case it wasn't obvious, by the way, the intention is to let subclasses of AWTGLCanvas override the createContext() method, and be able to call createContext(GLData) multiple times.

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