Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xracer::bvrml(3pm) [debian man page]

BVRML(3pm)						User Contributed Perl Documentation						BVRML(3pm)

NAME
XRacer::BVRML - Parser for a tiny subset of VRML generated by Blender SYNOPSIS
use XRacer::BVRML; DESCRIPTION
This is a parser for a tiny subset of VRML generated by Blender, so called Blender-VRML or BVRML. In fact, this parser is by no means guaranteed to be able to parse everything that Blender could generate. I will add parsing capability to it as I see the need. "XRacer::BVRML" parses a Blender VRML file, and stores it in an internal world representation, which can be inspected and manipulated. "XRacer::BVRML" can also write out a C function containing GL commands which render this world object, and this function can then be used inside an XRacer track or craft file. CLASS METHODS
$world = XRacer::BVRML->parse ($filename [, $world]); This function parses a BVRML file called $filename, and generates a $world object. If the second optional $world parameter is given, then the BVRML file is parsed and the results are merged with the existing $world object. If the parsing fails, then this function will print an error message and return "undef". WORLD OBJECT METHODS
$nr_vertices = $world->nr_vertices; Return the total number of vertices in the world. $nr_faces = $world->nr_faces; Return the total number of faces in the world. @vertices = $world->vertices; Aggregate all vertices in the world, and return it as a list. @faces = $world->faces; Aggregate all faces in the world, and return it as a list. ($smallest_x, $largest_x, $smallest_y, $largest_y, $smallest_z, $largest_z) = $world->bbox; Return the bounding box (or bounding cuboid, to be more precise) of this world. $world->write_display_function ([name => $function_name,] [filehandle => $filehandle,] [decl => $decl]); Write out a C function containing GL calls which, when invoked, will display this world object. The C function is called $function_name and will be written to the file specified by the $filehandle. The function will be declared as "void function_name (void)" unless the $decl parameter is given, which gives the return declaration. The C function is suitable for directly linking into XRacer craft and track files. However, it requires some support. In particular, you will need to include the header file GL/gl.h, and probably xracer.h before the function. AUTHOR
Richard W.M. Jones, <rich@annexia.org> COPYRIGHT
XRacer is copyright (C) 1999-2000 Richard W.M. Jones (rich@annexia.org) and other contributors listed in the AUTHORS file. SEE ALSO
perl(1), xracer(6). perl v5.14.2 2000-01-07 BVRML(3pm)

Check Out this Related Man Page

xracer(6)							   Games Manual 							 xracer(6)

NAME
xracer - A racing game in the style of Psygnosis' WipeOut SYNOPSIS
xracer [ -h | --help ] [ -V | --version ] [ -v | --verbose ] [ [ -s | --size ] WIDTHxHEIGHT ] [ [ -p | --position ] LEFTxTOP ] [ -f | --fullscreen ] [ [ -j | --joystick ] DEVICE ] [ -L | --nomipmap ] DESCRIPTION
xracer is a 3D arcade game in the style of the Psygnosis game WipeOut. You have to fly around the track without crashing, shooting opposing craft where necessary, and arriving in first place. xracer requires a supported 3D hardware accelerator card and OpenGL or a compatible library such as Brian Paul's Mesa. OPTIONS
-h, --help Display the options and exit. -V, --version Print the current version number and exit. -v, --verbose Print verbose messages to stdout about the progress of the game. This can be a useful aid to debugging. -s, --size WIDTHxHEIGHT Set the initial screen size. -p, --position LEFTxTOP Set the position for the initial window placement. -f, --fullscreen This option puts the game into full screen mode. In this mode, the game takes over the screen and keyboard. -j, --joystick DEVICE Set joystick device name. -L, --nomipmap Disable mipmapping. FILES
/usr/share/games/xracer BUGS
The fullscreen option is currently broken on 3Dfx Voodoo Graphics and Voodoo2 accelerator cards. Set the MESA_FX_GLX environment to get fullscreen on those boards. AUTHOR
Maintainer: Richard W. M. Jones <rich@annexia.org>. Please see the AUTHORS file for a full list of people who have contributed to the game. SEE ALSO
rain(6) VERSION
This manual page documents xracer version 0.96.9. COPYRIGHT
XRacer is copyright (C) 1999-2000 Richard W. M. Jones and the other authors who have contributed to the game. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. WEBSITE
http://xracer.annexia.org/ Dec 21, 1999 xracer(6)
Man Page