Fixed, briefly instead of using qt based QGLWidget::paintEvent, I used directly OpenGL to draw my frames.
sample would be:
::initializeGL(){
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
}
::paintGL(){
glRasterPos2i(0,0);
glDrawPixels(pImg->width(), pImg->height(), GL_BGRA, GL_UNSIGNED_BYTE, pImg->bits());
glPixelZoom(1.0,-1.0);
glFlush();
}
::initializeGL(){
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
}
::paintGL(){
glRasterPos2i(0,0);
glDrawPixels(pImg->width(), pImg->height(), GL_BGRA, GL_UNSIGNED_BYTE, pImg->bits());
glPixelZoom(1.0,-1.0);
glFlush();
}
To copy to clipboard, switch view to plain text mode
For more interesting way google for "OpenGL programming guide (AKA OpenGL RedBook)"
salutations a tous qui m'aider!!
firas
Bookmarks