00001 00002 #ifndef RUBIKSCUBE_H 00003 #define RUBIKSCUBE_H 00004 00005 #include <config.h> 00006 #include "RoundedCube.h" 00007 00010 class RubiksCube { 00011 private: 00012 RoundedCube *cubes[3][3][3]; 00013 int rot_x[3], rot_y[3], rot_z[3]; 00014 int total_x, total_y, total_z; 00015 public: 00017 RubiksCube(); 00018 00020 ~RubiksCube(); 00021 00025 void render(); 00026 00028 void rotateX(unsigned int block, int degrees); 00030 void rotateY(unsigned int block, int degrees); 00032 void rotateZ(unsigned int block, int degrees); 00033 }; 00034 00035 #endif