[wxMax] Feature request: glcanvas for cocoa

0 views
Skip to first unread message

Mathieu Malaterre

unread,
Sep 21, 2004, 9:36:00 PM9/21/04
to wx-...@lists.wxwidgets.org
Hello,

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

David Elliott

unread,
Sep 27, 2004, 3:47:06 PM9/27/04
to wx-...@lists.wxwidgets.org

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


Mathieu Malaterre

unread,
Sep 27, 2004, 6:31:49 PM9/27/04
to wx-...@lists.wxwidgets.org

Thanks !

Reply all
Reply to author
Forward
0 new messages