Skip to content

Rubik Cube in C++ using OpenGL/glut. Supports rotations for complete visualization and cube movements across all axes. Accepts input from both mouse and keyboard.

License

Notifications You must be signed in to change notification settings

lmarchesoti/rubik_cube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenGL/glut Rubik Cube

Rubik Cube in C++ with OpenGL/glut

Documentation

This project was done for a Computer Graphics course in my last graduation period at Universidade Federal de Uberlândia along with 3 mates.

Everything is in one file just because.

Compile with: make

Run with: ./rubik_cube

Commands

Commands are case-insensitive

Cube visualization

L: rotate right

J: rotate left

I: rotate down

K: rotate up

+: zoom in

-: zoom out

mouse left click: zoom in

mouse right click: zoom out

Face selection(for moving parts)

There is no face selection feedback. (Consider left-bottom as origin)

Along x axis

Q: select 1st layer

W: select 2nd layer

E: select 3rd layer

Along y axis

A: select 1st layer

S: select 2nd layer

D: select 3rd layer

Along z axis

Z: select 1st layer

X: select 2nd layer

C: select 3rd layer

Face rotation

O: rotate selected face clockwise

U: rotate selected face counter-clockwise

About

Rubik Cube in C++ using OpenGL/glut. Supports rotations for complete visualization and cube movements across all axes. Accepts input from both mouse and keyboard.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published