[Qt-interest] QtOpenGL and VBO

Eirik Ulvik eiriku at simsurgery.com
Thu May 6 07:56:47 CEST 2010


Den 05.05.2010 22:22, skrev Krzysztof Szewczyk:
> Hello,
> I have problem with using vbo in Qt, to be honest i don't know how to 
> use it, I tried to include to my project glew.h but I got error:
> 
> /usr/include/GL/glew.h:84: error: #error gl.h included before glew.h
> If anyone how to deal with vbo i Qt please help.
> 
> Best Regards
> Krzysztof Szewczyk 

Your problem is not related to Qt, it is however common place for people
using glew. You will run into it from time to time. You just have to
make sure that gl.h has not been included before glew.h. Sounds simple,
but in real life it might not be simple.
To use VBO's in Qt have a look at Qt's QGLWidget,
http://doc.qt.nokia.com/4.6/qglwidget.html. Using that gives you access
to regular OpenGL commands.

Regards,
Eirik

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 551 bytes
Desc: OpenPGP digital signature
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100506/2d81b55c/attachment.bin 


More information about the Qt-interest-old mailing list