Petrea Corneliu Ştefan > CM-Permutation-0.94 > Rubik::View

Download:
CM-Permutation-0.94.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.94   Source  

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>

syntax highlighting: