Ok I have now switched to the use of GetHandle from wxWidgets instead
of my mess, and I get a bus error. Apparently I need to setup the opengl
context properly.
Anyway I am trying to compile the opengl sample in the cocoa part, is
there some reason why the glcanvas is not done ? I am volonterring to
test it, if somebody could thrown some skeleton implementation.
Hopefully this shouldn't be too much different from the carbon
implementation
Thanks a bunch
Mathieu
Actually it would be entirely different from the Carbon version.
However, it would also be extremely simple. There are no events to
process from Cocoa so you merely need to write the code to implement
wxGLCanvas in terms of NSOpenGLView and NSOpenGLContext. One of the
wxStatic* implementations would probably be an excellent starting
point.
I will try to do this some time in the next couple of days as it looks
like no more than a 30 minute job.
-Dave
Thanks !