Qt Creator + OpenGL
Uploader Comments (josuehmachado)
All Comments (8)
-
Thanks so much!
-
glut doesn't work on windows 7 :@
i get this error: C:\Users\DirectGamex10\Qtprogs
\glut-build-desktop\debug\glut .exe exited with code -1073741515 -
@xu4510014 Try this code:
void GLWidget::resizeGL(int width, int height)
{ glViewport(0, 0, width, height); glMatrixMode(GL_PROJECTION); glLoadIdentity(); GLfloat x = GLfloat(width) / height; glFrustum(-x, +x, -1.0, +1.0, 0.0, 15.0); glMatrixMode(GL_MODELVIEW);
}
-
this is great, would it be possible to do a similar openCL tutorial?
-
hello,thank for your help.
now,I can use glut in Qt.
but,i still have question about Qt.
i can change color of background.
but the TRIANGLES or Teapot only display in the lower left corner of window.
-
Hi ,this video is very helpful who like to learn how to interface Qt + glut . thanks lot
please put more and more videos.
-
Hello,I have some question about QT
How do you link glut to QT?
I try to do it by the step
but the code still error that can't link to GL/glut.h
error message is 'C1083' No such file or directory'
thx for your hlep
at 7:36 is the link to GL/glut.h
maybe freeglut not installed yet
$ sudo apt-get install freeglut3-dev
josuehmachado 4 months ago