SDL::Tutorial::3DWorld::RWX - Support for loading 3D models from RWX files
# Create the object but don't load anything my $model = SDL::Tutorial::3DWorld::RWX->new( file => 'mymodel.rwx', ); # Load the model into OpenGL $model->init; # Render the model into the current scene $model->display;
SDL::Tutorial::3DWorld::RWX provides a basic implementation of a RWX file parser.
Given a file name, it will load the file and parse the contents directly into a compiled OpenGL display list.
The OpenGL display list can then be executed directly from the RWX object.
The current implementation is extremely preliminary and functionality will be gradually fleshed out over time.
In this initial test implementation, the model will only render as a set of points in space using the pre-existing material settings.
Bugs should be reported via the CPAN bug tracker at
Adam Kennedy <email@example.com>
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.