#include <RubiksCube.h>
Public Methods | |
RubiksCube () | |
The constructor. More... | |
~RubiksCube () | |
Destructs the 27 cubes. | |
void | render () |
Renders the cubes. More... | |
void | rotateX (unsigned int block, int degrees) |
Rotates the designated block around the x-axis. | |
void | rotateY (unsigned int block, int degrees) |
Rotates the designated block around the y-axis. | |
void | rotateZ (unsigned int block, int degrees) |
Rotates the designated block around the z-axis. |
This class manages the 27 cubes that make up a Rubik's Cube.
|
The constructor. Memory will be allocated for the 27 cubes. |
|
Renders the cubes. This will make the necessary calls to OpenGL to render the 27 cubes. You shouldn't call render() between calls to glBegin() ... glEnd(). |