How does Qt replace GLUT?
-
I've asked numerous people about using OpenGL with GLUT in Qt and they all told me Qt does exactly what GLUT does. Since then I've been looking for tutorials about Qt's 3d thing but found exactly zero. How should I use Qt instead of GLUT? I wanted to render a sphere and glut has the glutSolidSphere() function - but Qt doesn't seem to have such a thing! Am I missing something? Why does Qt's 3d thing lack even the basic functions?
-
Check opengl examples maybe?
https://doc.qt.io/qt-5/qtopengl-hellogles3-example.html# -
@Forfunckle said in How does Qt replace GLUT?:
Why does Qt's 3d thing lack even the basic functions?
Because it doesnt. Have a look here:
https://doc.qt.io/archives/qt-5.5/qt3d-sphere.html
https://doc.qt.io/qt-5/qt3d-basicshapes-cpp-example.html -
@Forfunckle said in How does Qt replace GLUT?:
wanted to render a sphere and glut has the glutSolidSphere() function - but Qt doesn't seem to have such a thing! Am I missing something? Why does Qt's 3d thing lack even the basic functions?
I think maybe you are confused about what glut is. It is a convenience library, primarily to add basic user interface capabilities to an openGL scene. By that definition Qt is a better replacement. As for the fluff (glutSphere, etc) I think many openGL programmers would probably write their own anyways. It's not rocket science.