X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2FSDL-Overlay.html-inc;h=c8e66beb6347665b8de6cfee6686db81ff87c332;hb=c8ad4fe9f211e727310a1ce6d23ffb1d7822d71f;hp=ec92f0349f4979b18b7461d2294287f20599fa07;hpb=60f74f6f8f641636a03bd789ede09bebe208108b;p=sdlgit%2FSDL-Site.git diff --git a/pages/SDL-Overlay.html-inc b/pages/SDL-Overlay.html-inc index ec92f03..c8e66be 100644 --- a/pages/SDL-Overlay.html-inc +++ b/pages/SDL-Overlay.html-inc @@ -10,10 +10,16 @@
  • DESCRIPTION
  • METHODS
    @@ -42,11 +48,13 @@

    Create a display to use.

    -
       my $display = SDL::SetVideoMore(640, 480, 32, SDL_SWSURFACE);
    +
       my $display = SDL::Video::set_video_mode(640, 480, 32, SDL_SWSURFACE);
    +
    +
    +

    Create and attach the display to a new overlay

    +
       my $overlay = SDL::Overlay->new( 100, 100, SDL_YV12_OVERLAY, $display);
     
     
    -

    Create and attach the display to a new overlay - my $overlay = SDL::Overlay->new( 100, 100, SDL_YV12_OVERLAY, $display);

    DESCRIPTION

    Top

    @@ -84,5 +92,45 @@ SDL_UYVY_OVERLAY 0x59565955 /* Packed mode: U0+Y0+V0+Y1 */ SDL_YVYU_OVERLAY 0x55595659 /* Packed mode: Y0+V0+Y1+U0 */ + + + + + +

    format

    +
    +

    Overlay format (see YUV_Flags)

    + +
    +

    w, h

    +
    +

    Width and height of overlay

    + +
    +

    planes

    +
    +

    Number of planes in the overlay. Usually either 1 or 3

    + +
    +

    pitches

    +
    +

    An array of pitches, one for each plane. Pitch is the length of a row in bytes.

    + +
    +

    pixels

    +
    +

    As of release 2.3 direct right to overlay is disable.

    +

    An array of pointers to the data of each plane. The overlay should be locked before these pointers are used.

    +

    see SDL::Video::lock_YUV_overlay, SDL::Video::unload_YUV_overlay

    + +
    +

    hw_overlay

    +
    +

    This will be set to 1 if the overlay is hardware accelerated.

    + + + + +
    \ No newline at end of file