/Rubikscube

Computer Graphics Project using OpenGL

Primary LanguageC

Rubik's Cube

This is a simulation of a fully functional Rubik's cube through Computer Graphics using OpenGL in C language.
The keys for different operations can be seen by right-clicking on the output screen. We can select the operations right there or press the keys mentioned in it.
We can also click and drag around to change the orientation of the cube.

Initiation and Execution

To execute this in a Linux terminal, the commands are:

  • To open the file: gedit RCube.c
  • To compile the file: gcc RCube.c -lGL -lGLU -lglut -lm
  • To execute the file: ./a.out

Make sure OpenGL is installed in the system to run this program.