qt-interest@trolltech.com
[Top] [All Lists]

Re: [Qt-interest] OpenGL inside QT with accelaration

Subject: Re: [Qt-interest] OpenGL inside QT with accelaration
From: Nathan Carter
Date: Thu, 2 Jul 2009 14:33:21 -0400
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@xxxxxxxxxxxxx
> http://lists.trolltech.com/mailman/listinfo/qt-interest

_______________________________________________
Qt-interest mailing list
Qt-interest@xxxxxxxxxxxxx
http://lists.trolltech.com/mailman/listinfo/qt-interest

<Prev in Thread] Current Thread [Next in Thread>