[Mono-osx] Porting OpenGL to work with WinForms on OSX

kanato eylvisaker at physics.ucdavis.edu
Thu Dec 4 01:38:17 EST 2008


Hello all,
I'm trying to port the OpenTK project http://www.opentk.com/ to OS X.  I am
having some issues and I hope someone here can help.  OpenTK has two code
paths for creating a GL context, one is "GLFW-like" where a window with a GL
context is creating through native OS calls without using WinForms or GTK#
or anything like that.  This part I have working; it creates a window with
Carbon and constructs an AGL context.

The part I'm having problems with is WinForms integration.  OpenTK has a
WinForms control (GLControl) for rendering into; this works on Windows and
Linux and I am trying to make it work on OSX.  I don't know what's wrong;
all I get is a blank GLControl.  The code which creates the AGL context is
basically the same as what is done when constructing a window through native
calls in OpenTK.  AGL doesn't seem to report any errors when it comes to
creating the context for a WinForms control.  I feel like there's something
I'm not understanding about how mono creates WinForms controls on OS X that
is relevant, but I don't really know.

The code wrapping Carbon, AGL and related libraries is here, if anyone wants
to take a look:
http://opentk.svn.sourceforge.net/viewvc/opentk/branches/macos/Source/OpenTK/Platform/MacOS/

If anyone has any suggestions or pointers on what to try, please let me
know.
-- 
View this message in context: http://www.nabble.com/Porting-OpenGL-to-work-with-WinForms-on-OSX-tp20828157p20828157.html
Sent from the Mono - OSX mailing list archive at Nabble.com.



More information about the Mono-osx mailing list