|Project:||The Open Toolkit library|
Is it possible to add a "pre-constructor" configuration for GLControl? Something like:
// "Form.cs" GLControl.DefaultSettings = // mode, version, flags, etc. // "Form.Designer.cs" ... new GLControl(); // creates a new GLControl with the "default" settings specified above.
This way it won't be necessary to update the constructor line each time Visual Studio rewrites the
I know it is possible to programmatically add a GLControl to a form, but AFAIK you loose the comfort of the Designer that way.
Such a mechanism would help a lot in case of complicated GUIs with two or more OpenGL 3+ GLControls. Currently, I'm using about six of them and maintenance is becoming a nightmare.