![]() You find a class called QGLShader, which seems to help, but it doesn't have any documentation, so you should try another class that might have documentation like QGLShaderProgram. Like "I'm going to use a shader, so let's see if Qt has any helper classes". You basically have to look for a class when you need it. ![]() ![]() That's the biggest change going from GLUT to Qt besides the setup stuff.īesides that, everything is pretty much tacked on as little bonus utilities and classes. When moving from GLUT to Qt, for example, you move GLUT's reshape code into the QGLWidget's resizeGL function and GLUT's display function into QGLWidget's paintGL function. Porting OpenGL code between languages and GUI frameworks shouldn't change the code much.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |