Tels > Games-Console > Games::Console::OpenGL

Download:
games/Games-Console-0.04.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

Games::Console::OpenGL - provide a 2D quake style in-game console via OpenGL

SYNOPSIS ^

        use Games::Console::OpenGL;

        my $console = Games::Console::OpenGL->new(
          font => Games::OpenGL::Font::2D->new( file => 'font.bmp' ),
          background_color => [ 1,1,0],
          background_alpha => 0.4,
          text_color => [ 1,1,1 ],
          text_alpha => 1,
          speed => 50,          # in percent per second
          height => 50,         # fully opened, in percent of screen
          width => 100,         # fully opened, in percent of screen
        );

        $console->toggle($current_time);
        $console->message('Hello there!', $loglevel);

EXPORTS ^

Exports nothing on default.

DESCRIPTION ^

This package provides you with a quake-style console for your games. The console can parse input, log to a logfile, and gather messages.

This package renders the console via OpenGL. Please see Games::Console for a full documentation.

KNOWN BUGS ^

None yet.

AUTHORS ^

(c) 2003 Tels <http://bloodgate.com/>

SEE ALSO ^

Games::3D, SDL:App::FPS, and SDL::OpenGL.

syntax highlighting: