Next: , Previous: , Up: The (sdl *) Modules   [Contents][Index]


2 General SDL

The external representation of a Pixel Format object is:

#<SDL-Pixel-Format palette depth ck a chan>

where palette is the number of colors in the palette, or ‘-1’ if no palette is available; depth is the bits per pixel; ck is the hex value of the colorkey; a is the alpha value (0-255, inclusive); and chan is a concatenation of ‘R’ when there is a red mask, ‘G’ when there is a green mask, ‘B’ when there is a blue mask, and ‘A’ when there is an alpha mask.

Procedure: init sel

Initialize SDL and the subsystems/configuration represented by sel (see init flags).

Procedure: init-subsystem sel

Initialize the SDL subsystems represented by sel. sel is a list of flags (symbols) from the same set useful for init.

Procedure: quit

Shut down all SDL subsystems. Return #t.

Procedure: quit-subsystem sel

Shut down the SDL subsystems represented by sel. sel is a list of flags (symbols) from the same set useful for init. Return #t.

Procedure: was-init sel

Check if the SDL subsystems represented by sel have been initialized. sel is a list of flags (symbols) from the same set useful for init. Return a list likewise composed.

Procedure: get-ticks

Return the number of milliseconds since the SDL library initialization.

Procedure: delay ms

Wait ms milliseconds.

Procedure: get-error

Return the current SDL error string.


Next: Video, Previous: Introduction, Up: The (sdl *) Modules   [Contents][Index]