The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Rubik::View - The view module for Rubik's cube simulator

VERSION

version 0.94

DESCRIPTION

This module is responsible for using OpenGL to render the cube. It's also responsible for storing positions of vertices and current rotation angle and current move and the width/height of the viewport.

rotate_face()

This method recevies as parameter the face to rotate, and draws all the cubies but puts the cubies to be rotate aside, and afterwards it draws those also at the rotated angle $self->spin.

AUTHOR

Stefan Petrea, <stefan.petrea at gmail.com>