SDL.blitSurface(3kaya)

SDL.blitSurface3kaya

Copy from one surface to another

Usage

Void blitSurface( SDLSurface src, Rect srcrect, SDLSurface dest, Rect destrect )

Arguments

src The source surface

srcrect The portion of the source surface to copy

dest The destination surface

destrect The location on the destination surface to copy to (the width and height of this rectangle are ignored)

Overview

Copy a rectangle of pixels from one surface to another, for example from a loaded image to the screen.

screen = newSurface(640,480,BPP24,false);
pic = loadSurface("mypic.bmp");
blitSurface(pic,Rect(0,0,40,40),screen,Rect(200,200,px,py));
updateScreen(screen);

If you are copying to the screen surface, remember that these updates will not be displayed until you call SDL.updateScreen (3kaya)

Releases

4 releases since Debian 5.0 (Lenny); the text changed 3 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8

Authors

Kaya standard library by Edwin Brady, Chris Morris and others ([email protected]). For further information see http://kayalang.org/

License

The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.

From libkaya-sdl-dev 0.4.4-6.2 in Debian 8 (Jessie). Parsed by carta from the page's man source.