Main Page   Compound List   File List   Compound Members  

RubiksCube Class Reference

A Rubik's Cube. More...

#include <RubiksCube.h>

List of all members.

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.


Detailed Description

A Rubik's Cube.

This class manages the 27 cubes that make up a Rubik's Cube.


Constructor & Destructor Documentation

RubiksCube::RubiksCube  
 

The constructor.

Memory will be allocated for the 27 cubes.


Member Function Documentation

void RubiksCube::render  
 

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().


The documentation for this class was generated from the following files:
Generated on Mon Jan 14 11:23:22 2002 for rubik by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001