SDL::Video

SDL::Video is a SDL perl extension.
Download

SDL::Video Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • David J. Goehrig
  • Publisher web site:
  • http://search.cpan.org/~dgoehrig/SDL_Perl-2.1.3/lib/SDL/Color.pm

SDL::Video Tags


SDL::Video Description

SDL::Video is a SDL perl extension. SDL::Video is a SDL perl extension.SYNOPSIS $video = new SDL::Video ( -name => 'pr0n.mpg' );SDL::Video adds support for MPEG video to your SDL Perl application. Videos are objects bound to surfaces, whose playback is controled through the object's interface.METHODSSDL::Video::error() returns any error messages associated with playbackSDL::Video::audio(bool) enables or disables audio playback, (on by default)SDL::Video::video(bool) enables or disable video playback, (on by default)SDL::Video::loop(bool) enables or disable playback looping (off by default)SDL::Video::volume(int) set the volume as per the mixer volumeSDL::Video:display(surface) binds the clip to a display surfaceSDL::Video::scale(||int) scales the clip by either x,y factors, scales to the image dimensions, or a single scalar.SDL::Video::play() plays the video clip, call SDL::Video::display() before playingSDL::Video::pause() pauses video playbackSDL::Video::stop() stops video playbackSDL::Video::rewind() resets the clip to the beginningSDL::Video::seek(offset) seeks to a particular byte offsetSDL::Video::skip(time) skips to a particular timeSDL::Video::region(rect) takes a SDL::Rect and defines the display areaSDL::Video::frame(int) renders a specific frame to the screenSDL::Video::info() returns a new SDL::MPEG object reflecting the current statusSDL::Video::status() returns either SMPEG_PLAYING or SMPEG_STOPPED or SMPEG_ERROR Requirements: · Perl


SDL::Video Related Software