From: Tobias Leich Date: Sat, 28 Nov 2009 21:58:31 +0000 (+0100) Subject: docs for video X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b968d0e8b4498cf586ccb6b429800486dbc8556c;p=sdlgit%2FSDL-Site.git docs for video --- diff --git a/pages/SDL-Overlay.html-inc b/pages/SDL-Overlay.html-inc index ec92f03..b1cc65b 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

    @@ -82,6 +90,44 @@ SDL_YUY2_OVERLAY 0x32595559 /* Packed mode: Y0+U0+Y1+V0 */ 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.

    +
    diff --git a/pages/SDL-Video.html-inc b/pages/SDL-Video.html-inc index ac7fc6f..6d6a9b4 100644 --- a/pages/SDL-Video.html-inc +++ b/pages/SDL-Video.html-inc @@ -15,10 +15,33 @@
  • +
  • convert_surface(surface,format,flags)
  • +
  • display_format
  • +
  • display_format_alpha
  • +
  • load_BMP(filename)
  • +
  • save_BMP(surface,filename)
  • +
  • set_color_key(surface,flag,key)
  • +
  • set_alpha(surface,flag,key)
  • +
  • fill_rect(dest,dest_rect,pixel)
  • + + +
  • Surface locking and unlocking + +
  • +
  • Screen Updating Functions + +
  • +
  • Palette, Color and Pixel Functions +
  • GL Methods @@ -57,6 +67,15 @@
  • display_YUV_overlay(overlay,dstrect)
  • +
  • Window Management Functions + +
  • SEE ALSO