NAME
Room.pm - describes a "room" in portal-render (rooms are connectd by portals)
SYNOPSIS
use Games::3D::Room;
my $room_a = Games::3D::Room->new( );
$room_a->add_faces( $face );
...
my $room_b = Games::3D::Room->new( );
$room_a->add_portals( { portal => $face, room => $room_b } );
$room_a->render($camera,$with_portals);
EXPORTS
Exports nothing on default.
DESCRIPTION
This package provides a class for representing a room for a portal renderer.
METHODS
It features all the methods of Games::3D::Area (namely: new(), _init(), x(), y(), z(), width(), height(), length(), pos(), size() and pos()) plus:
- render()
-
$room->render($camera);
Renders the room plus all visible portals (e.g. faces looking into other rooms).
- default_texture()
-
$room->default_texture(); $room->default_texture( $texture );
Get/set the default texture as OpenGL texture object. Also possible as parameter to new().
AUTHORS
(c) 2003, Tels <http://bloodgate.com/>
SEE ALSO
Games::3D::Area as well as SDL:App::FPS, SDL::App and SDL.