
Custom GlControl creation with Visual Studio editor
Posted Monday, 19 October, 2009 - 21:37 by iliak| Project: | The Open Toolkit library |
| Version: | all versions |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (invalid) |
Jump to:
Description
For my project, I need to enable Stencil buffer. By default, it's not activated. So I need the following code (not yet sure about argument values) :
// Commented the following code from "InitializeComponent();" : // "this.RenderControl = new OpenTK.GLControl();" // Added the following to the constructor of my form : GraphicsMode mode = new GraphicsMode(new ColorFormat(32), 24, 8); RenderControl = new OpenTK.GLControl(mode);
This way I can create a custom GlControl.
But now, when I want to edit my form in the Form Editor, I have a nice error


Comments
#1
Oops, bad click, can you remove this post please ?
#2
Double post of #1256: Custom GlControl creation with Visual Studio editor