PDA

View Full Version : Smooth integration of OGL3.x and OGL4.x core profiles and Qt.



przemo_li
24th August 2010, 18:26
I've found posts that say how to enable 1.2+ OGL in Qt (including glew.h or glee.h before qglwidget.h should do), however when it comes to OGL 3.0+ it wont work since OGL3+ require to create OGL3+ context. How to do that? Inherit Qt OGL context change it and then use in my own oglwidgets? Can you post code for that?

I'm interested in OGL4.0 but OGL3.0 should do. I have drivers and hardware to run OGL4.0. And I'm programming on Linux, and do not need Win compatible solution.