Using glbinding with wxWidgets >= 3.2

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
heinermueller
Earned some good credits
Earned some good credits
Posts: 100
Joined: Sat Oct 26, 2013 11:54 am

Using glbinding with wxWidgets >= 3.2

Post by heinermueller »

Hi all,

did anyone here successfully use glbinding https://github.com/cginternals/glbinding together with wxGLCanvas? It looks like a modern, well maintained opengl loader library that supports multithreading and multicontext.

Unfortunately there is a conflict, since <wx/glcanvas.h> includes <GL/gl.h> (from windows) and glbinding also has a <glbinding/gl/gl.h> that throws an error when the system gl.h is already included.

Greetings
Heiner
Manolo
Can't get richer than this
Can't get richer than this
Posts: 828
Joined: Mon Apr 30, 2012 11:07 pm

Re: Using glbinding with wxWidgets >= 3.2

Post by Manolo »

Yes, including gl.h is (almost) a must for OGL programs. But yu can include it later, not at the very beginning.
Take a look at yourwxdir/samples/opengl/pyramid/pyramid.cpp In its first lines you find how this issue is worked out.
Post Reply