Hey all,
I have a class (without entry point (static main)) that extends the GLCanvas class. Now, I want to change the GLCapabilities the GLCanvas uses. Looking at the API, the only way I can do this is
super(capabilities);
[color=green]
But using this, I can’t change the values of the GLCapabilities, since the super call must be the first statement in the constructor. Also, GLCanvas has no method such as setGLCapabilities, so how can I change the capabilities.
Since it’s for an engine, I want to keep it simple, so passing it as a parameter is not an option, in my opinion.
Thanks,
~Matt