Using wxWidgets with OpenGL

wxWidgets can be used with Silicon Graphic's OpenGL language for 3D graphics programming. This is a low-level API (compared with VRML, for example) but is high-performance and portable. wxGLCanvas is a wrapper available on Unix and Windows platforms. It allows you to use OpenGL on SGI and Windows platforms, or Mesa (a free OpenGL clone) on most Unix systems, including Linux.

The image on the left shows Wolfram Gloger's isosurf example running under OpenGL for Windows. You can move the image with the mouse, and on an MMX-enabled PC it's very fast.


What you need

OpenGL and Mesa: Classes interfacing OpenGL/Mesa and wxWidgets:

wxWidgets 1.xx:

wxWidgets 2:

See also wxOIWrapper, a wrapper class to incorporate OpenInventor SoXt widgets into wxWidgets 1.

Related Web links