Under the 'Fundamentals' section of 'Documentation' you have the following code:
// Get a reference to the OpenGL object.
OpenGL gl = openGLCtrl1.OpenGL;
Where in the world did openGLCtrl1 come from?
I have no access to that object. It doesn't exist.
Comments: ** Comment from web user: AORD **
// Get a reference to the OpenGL object.
OpenGL gl = openGLCtrl1.OpenGL;
Where in the world did openGLCtrl1 come from?
I have no access to that object. It doesn't exist.
Comments: ** Comment from web user: AORD **
openGLCtrl is a control on your form (like a button or combobox etc). But you have to add the project template.
Try http://www.codeproject.com/Articles/749543/OpenGL-in-NET-Getting-Started
or https://github.com/dwmkerr/sharpgl/releases.
What you do is install the project template (I think for Visual Studio 2010 and 2012 only)
When you start a new C# project by clicking "New Project",
you then select "SharpGL Windows Forms Application" instead of "Windows Form Application".
This sets up all the basic openGL stuff for you!!!!
You will then see OpenGL gl = openGLControl.OpenGL; in the SharpGLForm.
If you can't get that working try downloading an existing SharpGL project and opening it and have a play to see how it works.