wxWidgets Installation Notes

Ashwin Nanjappa

http://www.comp.nus.edu.sg/~ashwinna/

Installation

Usage

In your Visual Studio project, make these changes:

Multisampling support for wxGLCanvas

(Only if you want to use multisampling.)

From:

https://sourceforge.net/tracker/?func=detail&atid=309863&aid=1915804&group_id=9863

Patch these files:

In the source file add the following lines:

int attribList[] = {WX_GL_RGBA,
                    WX_GL_DOUBLEBUFFER,
                    WX_GL_SAMPLE_BUFFERS, GL_TRUE, // Required only for multi-sampling (AA)
                    WX_GL_SAMPLES, 4,              // Required only for supersampling
                    WX_GL_DEPTH_SIZE, 16,
                    0, 0};

Change the constructor to:

wxGLCanvas(..., attribList)

Note that all the attributes need to be set in the attribList. Just setting the interesting values of GL_SAMPLE_BUFFERS do not work causing glewInit() to fail.