As ONEEYEMAN told, the best is that you upgrade to wx 3.1
Anyhow, wx 3.0 branch allows some OpenGL context features. The really important is that you (almost for sure) want a "OpenGL Core Profile" context (as opposed to compatibility with old "fixed pipeline" context). For this, you need to tell so at context parameters.
Then your parameters list should be:
Code: Select all
int attr[] = {
WX_GL_CORE_PROFILE,
WX_GL_MAJOR_VERSION, 4,
WX_GL_MINOR_VERSION, 0,
0
};
which include defaults parameters
RGBA,
Z-depth 16 bits, and
double buffering.
Using attributes list is also allowed in wx 3.1, but it's strongly encouraged to use
wxGLAttributes and
wxGLContextAttrs which also allow more context options.