Timm Murray > UAV-Pilot-0.8 > UAV::Pilot::SDL::VideoOverlay

Download:
UAV-Pilot-0.8.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  2
View/Report Bugs
Source  

NAME ^

  UAV::Pilot::SDL::VideoOverlay

DESCRIPTION ^

A role for objects to draw on top of a video. Requires a process_video_overlay() method, which will be passed the UAV::Pilot::SDL::Window object that the video is drawing to.

Where $video is an UAV::Pilot::SDL::Video object, you can set an $overlay object with:

    $video->register_video_overlay( $overlay );

NOTE: This is still experimental. Lines tend to flicker and show up as black. This is probably due to the SDL YUV hardware overlay.

syntax highlighting: