SDL::Tutorial::3DWorld::Console - A text-mode overlay for the world
$world->{console} = SDL::Tutorial::3DWorld::Console->new;
A Console is a text-mode diagnostic overlay for the world.
Console
It is most commonly used for the display of values like frames per second count, status, and other diagnostic information. It is not particularly useful for proper "Heads Up Display" style overlays as the drawing is done entirely with the glutBitmapCharacter() function.
However it does provide quite a simple and easy way to push general information to the screen in private or scientific applications, or to display debugging information in games and such.
This demonstration implementation generates one line of text containing the frames-per-second cound and displays it at the bottom of the screen.
The main SDL::Tutorial::3DWorld render loop considers the console to be optional, allowing you to display and hide the console on the fly.
Bugs should be reported via the CPAN bug tracker at
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=SDL-Tutorial-3DWorld
Adam Kennedy <adamk@cpan.org>
SDL, OpenGL
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.
To install SDL::Tutorial::3DWorld, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SDL::Tutorial::3DWorld
CPAN shell
perl -MCPAN -e shell install SDL::Tutorial::3DWorld
For more information on module installation, please visit the detailed CPAN module installation guide.