Module occSDL - Interface to foreign library occSDL

Interface to foreign library occSDL. Generated automatically using SWIG 1.3.31.

Index

Declarations

occSDLhelpers.inc:20Process occ.SDL.make.surface

INLINE PROC occ.SDL.make.surface (VAL [][]INT pixels, RESULT SDL.Surface surface)

Turn an occam array into an SDL surface. This is a wrapper around SDL.CreateRGBSurfaceFrom.

Parameters:

VAL [][]INT pixels Array of pixels. The first dimension is Y; the second is X. Each INT is a single pixel in #00RRGGBB format.
RESULT SDL.Surface surface The resulting surface. This contains a pointer to pixels, so you must free it with SDL.FreeSurface before whatever you passed as pixels goes out of scope.

occSDLhelpers.occ:29Process occ.SDL.zero.terminate

PROC occ.SDL.zero.terminate (VAL []BYTE in, RESULT MOBILE []BYTE out)

Zero-terminate a string. This works around a bug in SWIG: strings passed to C functions aren't currently terminated properly.

occSDLhelpers.occ:38Process occ.SDL.set.rect

PROC occ.SDL.set.rect (SDL.Rect rect, VAL INT x, y, w, h)

Set the values in an SDL.Rect structure.

occSDLhelpers.occ:48Process occ.SDL.blit

PROC occ.SDL.blit (SDL.Surface from, VAL INT from.x, from.y, w, h, SDL.Surface to, VAL INT to.x, to.y)

Blit a rectangle from one surface to another.

occSDLhelpers.occ:65Process occ.SDL.blit.raster

PROC occ.SDL.blit.raster (VAL [][]INT raster, VAL INT from.x, from.y, w, h, SDL.Surface surface, VAL INT to.x, to.y)

Blit a rectangle from a raster onto a surface.

occSDL.inc:16Constant SDL.INIT.TIMER

VAL INT SDL.INIT.TIMER

Foreign int constant SDL_INIT_TIMER.

occSDL.inc:18Constant SDL.INIT.AUDIO

VAL INT SDL.INIT.AUDIO

Foreign int constant SDL_INIT_AUDIO.

occSDL.inc:20Constant SDL.INIT.VIDEO

VAL INT SDL.INIT.VIDEO

Foreign int constant SDL_INIT_VIDEO.

occSDL.inc:22Constant SDL.INIT.CDROM

VAL INT SDL.INIT.CDROM

Foreign int constant SDL_INIT_CDROM.

occSDL.inc:24Constant SDL.INIT.JOYSTICK

VAL INT SDL.INIT.JOYSTICK

Foreign int constant SDL_INIT_JOYSTICK.

occSDL.inc:26Constant SDL.INIT.NOPARACHUTE

VAL INT SDL.INIT.NOPARACHUTE

Foreign int constant SDL_INIT_NOPARACHUTE.

occSDL.inc:28Constant SDL.INIT.EVENTTHREAD

VAL INT SDL.INIT.EVENTTHREAD

Foreign int constant SDL_INIT_EVENTTHREAD.

occSDL.inc:30Constant SDL.INIT.EVERYTHING

VAL INT SDL.INIT.EVERYTHING

Foreign int constant SDL_INIT_EVERYTHING.

occSDL.inc:36Process SDL.Init

INLINE PROC SDL.Init (RESULT INT return.value, VAL INT flags)

Foreign function SDL_Init.

Parameters:

RESULT INT return.value Function return value with type int.
VAL INT flags Argument with type Uint32.

occSDL.inc:45Process occ.SDL.Init

INLINE PROC occ.SDL.Init (RESULT INT return.value, VAL INT flags)

Foreign function occ_SDL_Init.

Parameters:

RESULT INT return.value Function return value with type int.
VAL INT flags Argument with type Uint32.

occSDL.inc:54Process SDL.InitSubSystem

INLINE PROC SDL.InitSubSystem (RESULT INT return.value, VAL INT flags)

Foreign function SDL_InitSubSystem.

Parameters:

RESULT INT return.value Function return value with type int.
VAL INT flags Argument with type Uint32.

occSDL.inc:62Process SDL.QuitSubSystem

INLINE PROC SDL.QuitSubSystem (VAL INT flags)

Foreign function SDL_QuitSubSystem.

Parameters:

VAL INT flags Argument with type Uint32.

occSDL.inc:71Process SDL.WasInit

INLINE PROC SDL.WasInit (RESULT INT return.value, VAL INT flags)

Foreign function SDL_WasInit.

Parameters:

RESULT INT return.value Function return value with type Uint32.
VAL INT flags Argument with type Uint32.

occSDL.inc:78Process SDL.Quit

INLINE PROC SDL.Quit ()

Foreign function SDL_Quit.

occSDL.inc:82Data type SDL.bool

DATA TYPE SDL.bool

occSDL.inc:83Group SDL.bool

Foreign enumeration SDL_bool.

occSDL.inc:88Data type SDL.DUMMY.ENUM

DATA TYPE SDL.DUMMY.ENUM

occSDL.inc:89Group SDL.DUMMY.ENUM

Foreign enumeration SDL_DUMMY_ENUM.

occSDL.inc:93Group arbitrary.name0

Foreign enumeration .

occSDL.inc:99Constant SDL.ALPHA.OPAQUE

VAL INT SDL.ALPHA.OPAQUE

Foreign int constant SDL_ALPHA_OPAQUE.

occSDL.inc:101Constant SDL.ALPHA.TRANSPARENT

VAL INT SDL.ALPHA.TRANSPARENT

Foreign int constant SDL_ALPHA_TRANSPARENT.

occSDL.inc:103Data type SDL.Rect

DATA TYPE SDL.Rect

Foreign structure pointer type SDL_Rect.

occSDL.inc:108Process create.SDL.Rect

INLINE PROC create.SDL.Rect (RESULT SDL.Rect ptr)

Allocate foreign structure SDL.Rect.

Parameters:

RESULT SDL.Rect ptr Pointer to newly-allocated structure.

occSDL.inc:114Process delete.SDL.Rect

INLINE PROC delete.SDL.Rect (SDL.Rect ptr)

Free foreign structure SDL.Rect.

Parameters:

SDL.Rect ptr Pointer to structure to free.

occSDL.inc:121Process get.SDL.Rect.x

INLINE PROC get.SDL.Rect.x (RESULT INT16 value, VAL SDL.Rect ptr)

Get value of member x of foreign structure SDL.Rect.

Parameters:

RESULT INT16 value Contents of the member x.
VAL SDL.Rect ptr Pointer to foreign structure SDL.Rect.

occSDL.inc:128Process set.SDL.Rect.x

INLINE PROC set.SDL.Rect.x (VAL INT16 value, VAL SDL.Rect ptr)

Set value of member x of foreign structure SDL.Rect.

Parameters:

VAL INT16 value New contents of the member x.
VAL SDL.Rect ptr Pointer to foreign structure SDL.Rect.

occSDL.inc:135Process get.SDL.Rect.y

INLINE PROC get.SDL.Rect.y (RESULT INT16 value, VAL SDL.Rect ptr)

Get value of member y of foreign structure SDL.Rect.

Parameters:

RESULT INT16 value Contents of the member y.
VAL SDL.Rect ptr Pointer to foreign structure SDL.Rect.

occSDL.inc:142Process set.SDL.Rect.y

INLINE PROC set.SDL.Rect.y (VAL INT16 value, VAL SDL.Rect ptr)

Set value of member y of foreign structure SDL.Rect.

Parameters:

VAL INT16 value New contents of the member y.
VAL SDL.Rect ptr Pointer to foreign structure SDL.Rect.

occSDL.inc:149Process get.SDL.Rect.w

INLINE PROC get.SDL.Rect.w (RESULT INT16 value, VAL SDL.Rect ptr)

Get value of member w of foreign structure SDL.Rect.

Parameters:

RESULT INT16 value Contents of the member w.
VAL SDL.Rect ptr Pointer to foreign structure SDL.Rect.

occSDL.inc:156Process set.SDL.Rect.w

INLINE PROC set.SDL.Rect.w (VAL INT16 value, VAL SDL.Rect ptr)

Set value of member w of foreign structure SDL.Rect.

Parameters:

VAL INT16 value New contents of the member w.
VAL SDL.Rect ptr Pointer to foreign structure SDL.Rect.

occSDL.inc:163Process get.SDL.Rect.h

INLINE PROC get.SDL.Rect.h (RESULT INT16 value, VAL SDL.Rect ptr)

Get value of member h of foreign structure SDL.Rect.

Parameters:

RESULT INT16 value Contents of the member h.
VAL SDL.Rect ptr Pointer to foreign structure SDL.Rect.

occSDL.inc:170Process set.SDL.Rect.h

INLINE PROC set.SDL.Rect.h (VAL INT16 value, VAL SDL.Rect ptr)

Set value of member h of foreign structure SDL.Rect.

Parameters:

VAL INT16 value New contents of the member h.
VAL SDL.Rect ptr Pointer to foreign structure SDL.Rect.

occSDL.inc:175Data type SDL.Color

DATA TYPE SDL.Color

Foreign structure pointer type SDL_Color.

occSDL.inc:180Process create.SDL.Color

INLINE PROC create.SDL.Color (RESULT SDL.Color ptr)

Allocate foreign structure SDL.Color.

Parameters:

RESULT SDL.Color ptr Pointer to newly-allocated structure.

occSDL.inc:186Process delete.SDL.Color

INLINE PROC delete.SDL.Color (SDL.Color ptr)

Free foreign structure SDL.Color.

Parameters:

SDL.Color ptr Pointer to structure to free.

occSDL.inc:193Process get.SDL.Color.r

INLINE PROC get.SDL.Color.r (RESULT BYTE value, VAL SDL.Color ptr)

Get value of member r of foreign structure SDL.Color.

Parameters:

RESULT BYTE value Contents of the member r.
VAL SDL.Color ptr Pointer to foreign structure SDL.Color.

occSDL.inc:200Process set.SDL.Color.r

INLINE PROC set.SDL.Color.r (VAL BYTE value, VAL SDL.Color ptr)

Set value of member r of foreign structure SDL.Color.

Parameters:

VAL BYTE value New contents of the member r.
VAL SDL.Color ptr Pointer to foreign structure SDL.Color.

occSDL.inc:207Process get.SDL.Color.g

INLINE PROC get.SDL.Color.g (RESULT BYTE value, VAL SDL.Color ptr)

Get value of member g of foreign structure SDL.Color.

Parameters:

RESULT BYTE value Contents of the member g.
VAL SDL.Color ptr Pointer to foreign structure SDL.Color.

occSDL.inc:214Process set.SDL.Color.g

INLINE PROC set.SDL.Color.g (VAL BYTE value, VAL SDL.Color ptr)

Set value of member g of foreign structure SDL.Color.

Parameters:

VAL BYTE value New contents of the member g.
VAL SDL.Color ptr Pointer to foreign structure SDL.Color.

occSDL.inc:221Process get.SDL.Color.b

INLINE PROC get.SDL.Color.b (RESULT BYTE value, VAL SDL.Color ptr)

Get value of member b of foreign structure SDL.Color.

Parameters:

RESULT BYTE value Contents of the member b.
VAL SDL.Color ptr Pointer to foreign structure SDL.Color.

occSDL.inc:228Process set.SDL.Color.b

INLINE PROC set.SDL.Color.b (VAL BYTE value, VAL SDL.Color ptr)

Set value of member b of foreign structure SDL.Color.

Parameters:

VAL BYTE value New contents of the member b.
VAL SDL.Color ptr Pointer to foreign structure SDL.Color.

occSDL.inc:235Process get.SDL.Color.unused

INLINE PROC get.SDL.Color.unused (RESULT BYTE value, VAL SDL.Color ptr)

Get value of member unused of foreign structure SDL.Color.

Parameters:

RESULT BYTE value Contents of the member unused.
VAL SDL.Color ptr Pointer to foreign structure SDL.Color.

occSDL.inc:242Process set.SDL.Color.unused

INLINE PROC set.SDL.Color.unused (VAL BYTE value, VAL SDL.Color ptr)

Set value of member unused of foreign structure SDL.Color.

Parameters:

VAL BYTE value New contents of the member unused.
VAL SDL.Color ptr Pointer to foreign structure SDL.Color.

occSDL.inc:247Data type SDL.Palette

DATA TYPE SDL.Palette

Foreign structure pointer type SDL_Palette.

occSDL.inc:252Process create.SDL.Palette

INLINE PROC create.SDL.Palette (RESULT SDL.Palette ptr)

Allocate foreign structure SDL.Palette.

Parameters:

RESULT SDL.Palette ptr Pointer to newly-allocated structure.

occSDL.inc:258Process delete.SDL.Palette

INLINE PROC delete.SDL.Palette (SDL.Palette ptr)

Free foreign structure SDL.Palette.

Parameters:

SDL.Palette ptr Pointer to structure to free.

occSDL.inc:265Process get.SDL.Palette.ncolors

INLINE PROC get.SDL.Palette.ncolors (RESULT INT value, VAL SDL.Palette ptr)

Get value of member ncolors of foreign structure SDL.Palette.

Parameters:

RESULT INT value Contents of the member ncolors.
VAL SDL.Palette ptr Pointer to foreign structure SDL.Palette.

occSDL.inc:272Process set.SDL.Palette.ncolors

INLINE PROC set.SDL.Palette.ncolors (VAL INT value, VAL SDL.Palette ptr)

Set value of member ncolors of foreign structure SDL.Palette.

Parameters:

VAL INT value New contents of the member ncolors.
VAL SDL.Palette ptr Pointer to foreign structure SDL.Palette.

occSDL.inc:279Process get.SDL.Palette.colors

INLINE PROC get.SDL.Palette.colors (RESULT SDL.Color value, VAL SDL.Palette ptr)

Get value of member colors of foreign structure SDL.Palette.

Parameters:

RESULT SDL.Color value Contents of the member colors.
VAL SDL.Palette ptr Pointer to foreign structure SDL.Palette.

occSDL.inc:284Data type SDL.PixelFormat

DATA TYPE SDL.PixelFormat

Foreign structure pointer type SDL_PixelFormat.

occSDL.inc:289Process create.SDL.PixelFormat

INLINE PROC create.SDL.PixelFormat (RESULT SDL.PixelFormat ptr)

Allocate foreign structure SDL.PixelFormat.

Parameters:

RESULT SDL.PixelFormat ptr Pointer to newly-allocated structure.

occSDL.inc:295Process delete.SDL.PixelFormat

INLINE PROC delete.SDL.PixelFormat (SDL.PixelFormat ptr)

Free foreign structure SDL.PixelFormat.

Parameters:

SDL.PixelFormat ptr Pointer to structure to free.

occSDL.inc:302Process get.SDL.PixelFormat.palette

INLINE PROC get.SDL.PixelFormat.palette (RESULT SDL.Palette value, VAL SDL.PixelFormat ptr)

Get value of member palette of foreign structure SDL.PixelFormat.

Parameters:

RESULT SDL.Palette value Contents of the member palette.
VAL SDL.PixelFormat ptr Pointer to foreign structure SDL.PixelFormat.

occSDL.inc:309Process get.SDL.PixelFormat.BitsPerPixel

INLINE PROC get.SDL.PixelFormat.BitsPerPixel (RESULT BYTE value, VAL SDL.PixelFormat ptr)

Get value of member BitsPerPixel of foreign structure SDL.PixelFormat.

Parameters:

RESULT BYTE value Contents of the member BitsPerPixel.
VAL SDL.PixelFormat ptr Pointer to foreign structure SDL.PixelFormat.

occSDL.inc:316Process set.SDL.PixelFormat.BitsPerPixel

INLINE PROC set.SDL.PixelFormat.BitsPerPixel (VAL BYTE value, VAL SDL.PixelFormat ptr)

Set value of member BitsPerPixel of foreign structure SDL.PixelFormat.

Parameters:

VAL BYTE value New contents of the member BitsPerPixel.
VAL SDL.PixelFormat ptr Pointer to foreign structure SDL.PixelFormat.

occSDL.inc:323Process get.SDL.PixelFormat.BytesPerPixel

INLINE PROC get.SDL.PixelFormat.BytesPerPixel (RESULT BYTE value, VAL SDL.PixelFormat ptr)

Get value of member BytesPerPixel of foreign structure SDL.PixelFormat.

Parameters:

RESULT BYTE value Contents of the member BytesPerPixel.
VAL SDL.PixelFormat ptr Pointer to foreign structure SDL.PixelFormat.

occSDL.inc:330Process set.SDL.PixelFormat.BytesPerPixel

INLINE PROC set.SDL.PixelFormat.BytesPerPixel (VAL BYTE value, VAL SDL.PixelFormat ptr)

Set value of member BytesPerPixel of foreign structure SDL.PixelFormat.

Parameters:

VAL BYTE value New contents of the member BytesPerPixel.
VAL SDL.PixelFormat ptr Pointer to foreign structure SDL.PixelFormat.

occSDL.inc:337Process get.SDL.PixelFormat.Rloss

INLINE PROC get.SDL.PixelFormat.Rloss (RESULT BYTE value, VAL SDL.PixelFormat ptr)

Get value of member Rloss of foreign structure SDL.PixelFormat.

Parameters:

RESULT BYTE value Contents of the member Rloss.
VAL SDL.PixelFormat ptr Pointer to foreign structure SDL.PixelFormat.

occSDL.inc:344Process set.SDL.PixelFormat.Rloss

INLINE PROC set.SDL.PixelFormat.Rloss (VAL BYTE value, VAL SDL.PixelFormat ptr)

Set value of member Rloss of foreign structure SDL.PixelFormat.

Parameters:

VAL BYTE value New contents of the member Rloss.
VAL SDL.PixelFormat ptr Pointer to foreign structure SDL.PixelFormat.

occSDL.inc:351Process get.SDL.PixelFormat.Gloss

INLINE PROC get.SDL.PixelFormat.Gloss (RESULT BYTE value, VAL SDL.PixelFormat ptr)

Get value of member Gloss of foreign structure SDL.PixelFormat.

Parameters:

</
RESULT BYTE value Contents of the member Gloss.
VAL SDL.PixelFormat ptr Pointer to foreign structure SDL.PixelFormat.