The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.


OpenGL::RWX - Provides support for loading 3D models from RWX files


  # Create the object but don't load anything
  my $model = OpenGL::RWX->new(
      file => 'mymodel.rwx',
  # Load the model into OpenGL
  # Render the model into the current scene


OpenGL::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 <>




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.