I have been using a very old version of opentk (0.3.14) with GLWidget for quite a while in some software Im writing. Yesterday I hit a bug in this old version so decided to upgrade. I downloaded 0.9.8.1 and built it ok on opensuse 11.1. Thought everything would be ok if I just swapped the dlls in my project, I renamed the imports to OpenTK.Graphics.OpenGL; etc and built my project. No compilation errors. However when I run I get
Unhandled Exception: System.InvalidOperationException: No GraphicsContext available in the calling thread.
at OpenTK.Graphics.GL.LoadAll () [0x00000]
So could someone tell me how things have changed or how to solve my problem? Looking at your example code I also suspect that GL.LoadAll() is deprecated but again dont know what the changes are. I saw your example using windows forms + GLcontrol. However I have a lot of time invested in my Gtk based project so swapping over to windows forms would be impossible. I am not writing a major 3D game or anything like that I just want a Gdk window to display some simple 3D paths so have not spent any time on openGL other than to learn the basics. I am prepared to change over to GLControl if that can be embedded in a Gtk Widget so my question is can it? I use monodevelop and tried browsing the opentk dll but couldnt see any reference to the control. Also monodevelop reported nothing available when I tried to add items to the toolbox from opentk.dll and opentk.utilities.dll.
I would rather progress than go back to the earlier versions so any help would be appreciated.