rotating_cube_display_opengl


rotating_cube_display_opengl, a C++ code which displays a cube with colored corners that slowly rotates. By clicking the left, middle, or right mouse buttons, the user can change the axis of rotation.

Usage:

rotating_cube_display_opengl
displays the rotating cube. Successive mouse clicks alternate the axis of rotation from the X, to the Y, to the Z axis and back again.

Licensing:

The information on this web page is distributed under the MIT license.

Languages:

rotating_cube_display_opengl is available in a C++ version.

Related Data and Programs:

rotating_cube_display_opengl_test

opengl_test, a C++ code which uses opengl() to display graphic images on the screen;

Reference:

  1. Edward Angel,
    Interactive Computer Graphics, a Top-Down Approach with OpenGL,
    Addison-Wesley, 2000,
    ISBN: 0-201-38597-X,
    LC: T385.A514.

Source Code:


Last revised on 19 May 2023