Adam Kennedy > SDL-Tutorial-3DWorld-0.33 > SDL::Tutorial::3DWorld::Actor::GridCube

Download:
SDL-Tutorial-3DWorld-0.33.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.33   Source  

NAME ^

SDL::Tutorial::3DWorld::Actor::GridCube - A grid-snapping 3D wireframe cube

DESCRIPTION ^

The GridCube is a 1 metre white wireframe cube which will track it's position in float terms and can be moved around the game world like any other actor, but which will draw itself snapped to an imaginary 1 metre grid.

The position of the cube will be moved to ensure that the actual floating point location of the actor is inside the cube.

If the location of the cube is an exact integer, the cube will be located on the positive axis side (in all three dimension) of the actor position.

SUPPORT ^

Bugs should be reported via the CPAN bug tracker at

http://rt.cpan.org/NoAuth/ReportBug.html?Queue=SDL-Tutorial-3DWorld

AUTHOR ^

Adam Kennedy <adamk@cpan.org>

SEE ALSO ^

SDL, OpenGL

COPYRIGHT ^

Copyright 2010 Adam Kennedy.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.

syntax highlighting: