I am making an application that has a lot of animations going on and would like to make "pure" opengl calls to do this.
Right now I am using the GraphicsView framework and add a bunch of items to the scene. Some items are simple, like buttons. Others are rotating images, for example I have 25 fans rotating on the screen. For this I am using the time line stuff.
I already set the viewport to qglwidget but the hardware I run this on still gets bogged down a bit.
Could I do something like this:
MyQGraphicsItem::paint()
{
quad(x1,y1,...)
glRotatef(...)
}
MyQGraphicsItem::paint()
{
quad(x1,y1,...)
glRotatef(...)
}
To copy to clipboard, switch view to plain text mode
Or would I have to overpaint in a QGLWidget to do this and not use the graphics view framework?
Bookmarks