wxGLCanvas and OpenGL 3.x/4.x

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Vexator
I live to help wx-kind
I live to help wx-kind
Posts: 187
Joined: Sun Jan 30, 2005 2:50 pm
Location: Heidelberg, Germany

wxGLCanvas and OpenGL 3.x/4.x

Post by Vexator »

Does it still make sense to use wxGLCanvas for OpenGL rendering if I want to create a 3.x or 4.x context? Is that even supported? Or, if I would want to create my own canvas class, where would I have to start?

Thank you!

Matthias
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Post by doublemax »

I'm not an OpenGL expert, but from looking at the wx sources, i'd say the wxGLContext ctor in /wx/src/msw/glcanvas.cpp looks like a good start.

It's the only place where wglCreateContext is called.
Use the source, Luke!
Post Reply