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.
-
Vexator
- I live to help wx-kind

- Posts: 187
- Joined: Sun Jan 30, 2005 2:50 pm
- Location: Heidelberg, Germany
Post
by Vexator » Thu Feb 17, 2011 1:15 pm
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
-
doublemax
- Moderator

- Posts: 15850
- Joined: Fri Apr 21, 2006 8:03 pm
- Location: $FCE2
Post
by doublemax » Thu Feb 17, 2011 5:38 pm
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!