NAME
Games::3D::Model::MD2 - load/render 3D models based on the .md2 file format
SYNOPSIS
use Games::3D::Model::MD2;
my $model = Games::3D::Model::MD2->new( 'ogre.md2' );
$model->render_frame(0);
EXPORTS
Exports nothing on default.
DESCRIPTION
This package let's you load and render (via OpenGL) models based on the popular .md2 file format.
METHODS
- new()
-
my $model = Games::3D::Model::MD2->new( $filename );
Load a model into memory and return an object reference.
- render_frame()
-
$model->render_frame($frame_num);
Render one frame from the model.
- frames()
-
$model->frames();
Return the number of frames in the model.
BUGS
- states
-
The states are hardcoded and corrospond (probably) to the states for Quake 2 models, which might not necc. be right for other models. There is currently no way to override the state and frame list.
AUTHORS
(c) 2003 Tels <http://bloodgate.com/>
SEE ALSO
Games::3D, SDL:App::FPS, and SDL::OpenGL.