Skip to content
Incorporate "Cube OpenGL ES 2.0 example" from Qt 6.4

Include features that are present in the "Cube OpenGL ES 2.0 example"
part of the Qt 6.4 documentation for the Qt OpenGL module:

  https://doc.qt.io/qt-6/qtopengl-cube-example.html
  https://code.qt.io/cgit/qt/qtbase.git/tree/examples/opengl/cube?h=6.4

Those features include rotating the cube (via model transformation
matrix) with the mouse, use indexed drawing method glDrawElements() at
least for the cube itself, extracting drawing polygons of shapes in
various *GeometryEngine classes, and painting each face of the cube with
a different image in the image of 6-sided dice.