Skip to content

Latest commit

 

History

History
69 lines (36 loc) · 974 Bytes

README.md

File metadata and controls

69 lines (36 loc) · 974 Bytes

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