[Qt-interest] OpenGL inside QT with accelaration
Nathan Carter
nathancarter5 at gmail.com
Thu Jul 2 20:33:21 CEST 2009
Dear Mic,
If you want to do OpenGL in Qt, just use a QGLWidget. You subclass it
and put inside it all OpenGL code you write yourself, 95% of which
should be portable to just about any other OpenGL situation. (See
QGLWidget docs for where to put what kind of code.)
Hardware acceleration is not something you need to set up within your
app; it's something you need to set up on your system. If your system
OS/hardware can use OpenGL hardware acceleration, Qt will use it. Is
this what you were asking?
Nathan
On Jul 2, 2009, at 1:30 PM, Mic J wrote:
> Hi
>
> I have researched that i can use the Qpainter
> class to create OpenGL drawings.
> And using that class it will automatically use the OpenGL hardware
> accelaration if it exists.
>
> however i want to use OpenGL API, and not QTOpenGL API
> So i can learn OpenGL so i can use it in contexts where i will not
> use QT.
> But if i use OpenGL commands/functions directly.
> How do i ensure that HW accelaration is used.
> Shouldnt OpenGL just be compiled with the driver support.
> And then it will use it automatically?
>
>
> regards mic
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list