NAME

SDL::Tutorial::3DWorld::Console - A text-mode overlay for the world

SYNOPSIS

$world->{console} = SDL::Tutorial::3DWorld::Console->new;

DESCRIPTION

A Console is a text-mode diagnostic overlay for the world.

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.

SUPPORT

Bugs should be reported via the CPAN bug tracker at

http://rt.cpan.org/NoAuth/ReportBug.html?Queue=SDL-Tutorial-3DWorld

AUTHOR

Adam Kennedy <adamk@cpan.org>

SEE ALSO

SDL, OpenGL

COPYRIGHT

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.