Changeset 32987 in project


Ignore:
Timestamp:
12/17/15 07:06:01 (4 years ago)
Author:
John Croisant
Message:

sdl2: Added rotate-surface-90 and flip-surface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/sdl2

    r32970 r32987  
    4040The sdl2 egg requires [[http://libsdl.org/|Simple DirectMedia Layer]]
    4141version 2.0.0 or higher. It will not work with older versions of SDL.
     42
     43This egg requires CHICKEN Scheme 4.8 or higher.
     44Please file an issue or contact the maintainer if you need to use this library with an earlier version of CHICKEN Scheme.
    4245
    4346The unit tests depend on the [[/egg/test|test]] egg, and many demos
     
    13161319Enable RLE acceleration if {{enable?}} is #t, or disable RLE acceleration if {{enable?}} is #f.
    13171320See [[https://wiki.libsdl.org/SDL_SetSurfaceRLE|SDL_SetSurfaceRLE]].
     1321
     1322Signals an exception of kind {{(exn sdl2)}} if an error occurs.
     1323
     1324
     1325<procedure>(rotate-surface-90 surface turns) → sdl2:surface</procedure>
     1326
     1327Return a copy of the given surface rotated by the given number of 90º clockwise turns.
     1328{{turns}} must be an integer.
     1329For example:
     1330
     1331* {{turns}} 0 means no rotation
     1332* {{turns}} 1 means 90º clockwise rotation
     1333* {{turns}} 2 means 180º rotation
     1334* {{turns}} 3 (or -1) means 270º clockwise (i.e. 90º counter-clockwise) rotation
     1335
     1336If the given surface has a palette, the new surface will share the same palette.
     1337
     1338All the procedures signal an exception of kind {{(exn sdl2)}} if an error occurs.
     1339
     1340
     1341<procedure>(flip-surface surface flip-x? flip-y?) → sdl2:surface</procedure>
     1342
     1343Return a copy of the given surface flipped on the X (horizontal) and/or Y (vertical) axes.
     1344If the given surface has a palette, the new surface will share the same palette.
    13181345
    13191346Signals an exception of kind {{(exn sdl2)}} if an error occurs.
     
    33083335<procedure>(user-event-data1-raw event) → pointer or #f</procedure>
    33093336<setter>(set! (user-event-data1-raw event) val)</setter>
    3310 <setter>(user-event-data1-rawset! event val)</setter>
     3337<setter>(user-event-data1-raw-set! event val)</setter>
    33113338
    33123339Get or set the event's "data1" field, as a raw pointer or #f.
Note: See TracChangeset for help on using the changeset viewer.