QGLCube ClassThe QGLCube class represents the geometry of simple six-sided cube in 3D space. More... #include <QGLCube> This class was introduced in Qt 4.8. Public Functions
Detailed DescriptionThe QGLCube class represents the geometry of simple six-sided cube in 3D space. The following example adds a cube of 2 units on a side to a geometry builder, and draws it at (10, 25, 0) in a QGLPainter: QGLBuilder list; list.newSection(QGL::Faceted); list << QGLCube(2); painter->translate(10, 25, 0); list.draw(painter); QGLCube will create a default set of texture coordinates that shows the same texture of all six faces. |