pony

Transparent networking library for occam-pi programs.

The documentation for pony has not yet been converted into OccamDoc format. For an introduction to pony, please see "pony - The occam-pi Network Environment".

To use this library:

`#INCLUDE "pony.module"`

Transparent networking library for occam-pi programs
course.networks

Demonstration networks.

This is part of the course library. To use this library:

`#INCLUDE "course.module"`

Demonstration networks
numbers
demo_nets.occ
35

Generate a stream of integers from 0 upwards.

Generate a stream of integers from 0 upwards
CHAN INT
PROC numbers (CHAN INT out!)
integrate
demo_nets.occ
46

Integrate a stream of numbers.

Integrate a stream of numbers
CHAN INT
CHAN INT
PROC integrate (CHAN INT in?, out!)
pairs
demo_nets.occ
57

Add pairs of numbers in a stream.

Add pairs of numbers in a stream
CHAN INT
CHAN INT
PROC pairs (CHAN INT in?, out!)
squares
demo_nets.occ
69

Generate the square numbers from 1 upwards.

Generate the square numbers from 1 upwards
CHAN INT
PROC squares (CHAN INT out!)
fibonacci
demo_nets.occ
80

Generate the Fibonacci sequence.

Generate the Fibonacci sequence
CHAN INT
PROC fibonacci (CHAN INT out!)
times
demo_nets.occ
92

Generate a stream of output times in microseconds.

Generate a stream of output times in microseconds
CHAN INT
PROC times (CHAN INT out!)
course

Course library.

The course library provides various simple utilities for occam programmers.

Strings (as handled by this library) are `BYTE` arrays left-justified with trailing s. It is usually preferably to use mobile byte arrays (`MOBILE []BYTE`) to represent strings in modern occam-pi programs; the string features in this library exist for backwards compatibility.

To use this library:

`#INCLUDE "course.module"`

Course library
ASCII
consts.inc
37

Character values.

Character values
NULL
consts.inc
38

ASCII NUL

ASCII NUL
VAL BYTE NULL
BELL
consts.inc
39

ASCII BEL - terminal bell

ASCII BEL - terminal bell
VAL BYTE BELL
BACK
consts.inc
40

ASCII BS - backspace key

ASCII BS - backspace key
VAL BYTE BACK
ESCAPE
consts.inc
41

ASCII ESC - escape key

ASCII ESC - escape key
VAL BYTE ESCAPE
DELETE
consts.inc
42

ASCII DEL - delete key

ASCII DEL - delete key
VAL BYTE DELETE
FLUSH
consts.inc
46

Flush output buffer

Flush output buffer
VAL BYTE FLUSH
END.OF.FILE
consts.inc
47

End of file

End of file
VAL BYTE END.OF.FILE
COMPARE.STRING
consts.inc
50

Return values from .

Return values from
string.less
consts.inc
51

Left less than right

Left less than right
VAL INT string.less
string.same
consts.inc
52

Left and right the same

Left and right the same
VAL INT string.same
string.more
consts.inc
53

Left more than right

Left more than right
VAL INT string.more
random
random.occ
43

Pseudorandom number generator. This is an implementation by David Morse of the "minimal standard" described in "Random number generators: Good ones are hard to find", Park, K.P. & Miller, K.W. (1988), Comm. ACM, 31(10), 1192-1201.

The routine must be called with a valid seed: an integer of between 1 and 2 147 483 647. The value of the seed must be preserved from one call of the function to the next. This implementation of the random number generator returns an integer lying between 0 and (`upto` - 1) inclusive as its first result, the seed is the second result.

The random number is full period, with a period of 2 ** 31, that is 2 147 483 647.

Pseudorandom number generator
VAL INT

The upper bound (exclusive) of the output value

VAL INT

The input seed

INT

The output value

INT

The output seed

INT, INT FUNCTION random (VAL INT upto, seed)
out.repeat
utils.occ
34

Write a character repeatedly to a channel. This outputs `ch` down the channel `out` `n` times. If `n` is negative, nothing happens.

Write a character repeatedly to a channel
VAL BYTE

Character

VAL INT

Number of times to output (negative values result in no output)

CHAN BYTE

Channel to write to

PROC out.repeat (VAL BYTE ch, VAL INT n, CHAN BYTE out!)
out.ch
utils.occ
55

Write a character to a channel. This outputs `ch` in a fieldwidth `field` down `out`. If the fieldwidth is too wide for `ch`, it right-justifies `ch` with spaces on the left. If the field is not wide enough, it prints the `ch` anyway. These rules for fieldwidth are the same as those used by the Pascal write procedure.

Write a character to a channel
VAL BYTE

Character

VAL INT

Field width to right-justify in

CHAN BYTE

Channel to write to

PROC out.ch (VAL BYTE ch, VAL INT field, CHAN BYTE out!)
out.string
utils.occ
69

Write a string to a channel. This outputs `s` in a fieldwidth `field` down `out`.

Write a string to a channel
VAL []BYTE

String

VAL INT

Field width to right-justify in

CHAN BYTE

Channel to write to

PROC out.string (VAL []BYTE s, VAL INT field, CHAN BYTE out!)
out.byte
utils.occ
89

Write a byte in decimal to a channel. This outputs `b` in a fieldwidth `field` down `out`. If the fieldwidth is too wide for `b`, it right-justifies `b` with spaces on the left. If the field is not wide enough, it prints the `b` anyway. These rules for fieldwidth are the same as those used by the Pascal write procedure.

Write a byte in decimal to a channel
VAL BYTE

Byte

VAL INT

Field width to right-justify in

CHAN BYTE

Channel to write to

PROC out.byte (VAL BYTE b, VAL INT field, CHAN BYTE out!)
out.int
utils.occ
121

Write an integer in decimal to a channel. This outputs `n` in a fieldwidth `field` down `out`. The rules for fieldwidth are as .

Write an integer in decimal to a channel
VAL INT

Integer

VAL INT

Field width to right-justify in

CHAN BYTE

Channel to write to

PROC out.int (VAL INT n, VAL INT field, CHAN BYTE out!)
out.hex
utils.occ
186

Write an integer in hexadecimal to a channel. Aside from the output base, this behaves like .

Write an integer in hexadecimal to a channel
VAL INT

Integer

VAL INT

Field width to right-justify in

CHAN BYTE

Channel to write to

PROC out.hex (VAL INT n, VAL INT field, CHAN BYTE out!)
out.bool
utils.occ
223

Write a Boolean value to a channel (as TRUE/FALSE). This outputs `b` as the string TRUE or FALSE in a fieldwidth `field` down `out`.

Write a Boolean value to a channel (as TRUE / FALSE )
VAL BOOL

Boolean

VAL INT

Field width to right-justify in

CHAN BYTE

Channel to write to

PROC out.bool (VAL BOOL b, VAL INT field, CHAN BYTE out!)
out.yes.no
utils.occ
240

Write a Boolean value to a channel (as yes/no). This outputs `b` as the string yes or no in a fieldwidth `field` down `out`.

Write a Boolean value to a channel (as yes / no )
VAL BOOL

Boolean

VAL INT

Field width to right-justify in

CHAN BYTE

Channel to write to

PROC out.yes.no (VAL BOOL b, VAL INT field, CHAN BYTE out!)
flush
utils.occ
257

Flush an output channel. If `out` is (ultimately) connected to the external stdout or stderr channel, this forces UNIX to flush all outstanding output to that file descriptor. UNIX normally buffers this character output on a line-by-line basis.

Flush an output channel
CHAN BYTE

Channel to write to

PROC flush (CHAN BYTE out!)
in.skip
utils.occ
271

Discard whitespace. This inputs from `in` until a non-space character is found. The non-space character is returned in `ch`.

Discard whitespace
BYTE

The non-whitespace character

CHAN BYTE

Channel to read from

PROC in.skip (BYTE ch, CHAN BYTE in?)
in.digit
utils.occ
288

Read a digit. This inputs a digit from `in` into `d`. Non-digit characters are ignored and the `out` channel is beeped. The accepted digit is not echoed down `out`.

Read a digit
BYTE

The digit read

CHAN BYTE

Channel to read from

CHAN BYTE

Channel to write to

PROC in.digit (BYTE d, CHAN BYTE in?, out!)
in.string
utils.occ
314

Read a string. This inputs a string of up to `max` characters from `in` into `s`. Input is terminated by a carriage-return or new-line (which is not included in `s`. The number of characters actually input is recorded in `length`. The string `s` is padded on the right with s if necessary. All characters are echoed on `out`. The backspace () and delete () characters are processed sensibly.

Read a string
[]BYTE

Buffer to read into

INT

Number of bytes read

VAL INT

Maximum number of bytes to read

CHAN BYTE

Channel to read from

CHAN BYTE

Channel to write to

PROC in.string ([]BYTE s, INT length, VAL INT max, CHAN BYTE in?, out!)
in.bool
utils.occ
388

Read a boolean. This reads a Boolean value as the characters y or n (or Y or N). Any other characters result in a being sent to `out`. The value read is echoed as yes or no.

Read a boolean
BOOL

The Boolean read

CHAN BYTE

Channel to read from

CHAN BYTE

Channel to write to

PROC in.bool (BOOL b, CHAN BYTE in?, out!)
in.byte
utils.occ
515

Read a byte value in decimal. This routine is used for inputting a BYTE value expressed as decimal digits. It inputs a string of up to `max` digits from `in` into `s`. If `max` is more than 3, it is truncated to 3. Input is terminated by a carriage-return, new-line or space. Input strings converting to values greater than 255 are rejected.

Read a byte value in decimal
BYTE

Value read

VAL INT

Maximum number of bytes to read

CHAN BYTE

Channel to read from

CHAN BYTE

Channel to write to

PROC in.byte (BYTE b, VAL INT max, CHAN BYTE in?, out!)
in.int
utils.occ
735

Read an integer value in decimal. This routine is used for inputting an INT value expressed as decimal digits. It inputs a string of up to `max` characters from `in` into `s`. If `max` is more than 20, it is truncated to 20. The first character may be + or -. Input is terminated by a carriage-return, new-line or space. It does guard against overflow.

Read an integer value in decimal
INT

Value read

VAL INT

Maximum number of bytes to read

CHAN BYTE

Channel to read from

CHAN BYTE

Channel to write to

PROC in.int (INT n, VAL INT max, CHAN BYTE in?, out!)
black.hole
utils.occ
783

Discard characters forever. This inputs characters from `in` forever. It is used to mask off unwanted `BYTE` streams.

Discard characters forever
CHAN BYTE

Channel to read from

PROC black.hole (CHAN BYTE in?)
ask.string
utils.occ
802

Read a string with a prompt. This prints a prompt, calls , then prints a newline.

Read a string with a prompt
VAL []BYTE

Prompt to print

[]BYTE

Buffer to read into

INT

Number of bytes read

VAL INT

Maximum number of bytes to read

CHAN BYTE

Channel to read from

CHAN BYTE

Channel to write to

PROC ask.string (VAL []BYTE prompt, []BYTE s, INT length, VAL INT max, CHAN BYTE in?, out!)
ask.bool
utils.occ
822

Read a boolean with a prompt. This prints a prompt, calls , then prints a newline.

Read a boolean with a prompt
VAL []BYTE

Prompt to print

BOOL

The Boolean read

CHAN BYTE

Channel to read from

CHAN BYTE

Channel to write to

PROC ask.bool (VAL []BYTE prompt, BOOL b, CHAN BYTE in?, out!)
ask.byte
utils.occ
842

Read a byte value in decimal with a prompt. This prints a prompt, calls , then prints a newline.

Read a byte value in decimal with a prompt
VAL []BYTE

Prompt to print

BYTE

Value read

VAL INT

Maximum number of bytes to read

CHAN BYTE

Channel to read from

CHAN BYTE

Channel to write to

PROC ask.byte (VAL []BYTE prompt, BYTE b, VAL INT max, CHAN BYTE in?, out!)
ask.int
utils.occ
861

Read an integer value in decimal with a prompt. This prints a prompt, calls , then prints a newline.

Read an integer value in decimal with a prompt
VAL []BYTE

Prompt to print

INT

Value read

VAL INT

Maximum number of bytes to read

CHAN BYTE

Channel to read from

CHAN BYTE

Channel to write to

PROC ask.int (VAL []BYTE prompt, INT n, VAL INT max, CHAN BYTE in?, out!)
cursor.x.y
utils.occ
881

Place the cursor. This outputs a VT220 control sequence down channel `out` to place the cursor at screen coordinates (`x`, `y`).

Place the cursor
VAL BYTE

X coordinate

VAL BYTE

Y coordinate

CHAN BYTE

Channel to write to

PROC cursor.x.y (VAL BYTE x, y, CHAN BYTE out!)
cursor.up
utils.occ
899

Move the cursor up. This outputs a VT220 control sequence down channel `out` to move the cursor up `n` positions.

Move the cursor up
VAL BYTE

Number of positions to move

CHAN BYTE

Channel to write to

PROC cursor.up (VAL BYTE n, CHAN BYTE out!)
cursor.down
utils.occ
915

Move the cursor down. This outputs a VT220 control sequence down channel `out` to move the cursor down `n` positions.

Move the cursor down
VAL BYTE

Number of positions to move

CHAN BYTE

Channel to write to

PROC cursor.down (VAL BYTE n, CHAN BYTE out!)
cursor.right
utils.occ
931

Move the cursor right. This outputs a VT220 control sequence down channel `out` to move the cursor right `n` positions.

Move the cursor right
VAL BYTE

Number of positions to move

CHAN BYTE

Channel to write to

PROC cursor.right (VAL BYTE n, CHAN BYTE out!)
cursor.left
utils.occ
947

Move the cursor left. This outputs a VT220 control sequence down channel `out` to move the cursor left `n` positions.

Move the cursor left
VAL BYTE

Number of positions to move

CHAN BYTE

Channel to write to

PROC cursor.left (VAL BYTE n, CHAN BYTE out!)
erase.eol
utils.occ
962

Erase to end of line. This outputs a VT220 control sequence to erase characters from the current cursor position to the end of the screen line.

Erase to end of line
CHAN BYTE

Channel to write to

PROC erase.eol (CHAN BYTE out!)
erase.bol
utils.occ
977

Erase to beginning of line. This outputs a VT220 control sequence to erase characters from the current cursor position to the beginning of the screen line.

Erase to beginning of line
CHAN BYTE

Channel to write to

PROC erase.bol (CHAN BYTE out!)
erase.line
utils.occ
992

Erase whole line. This outputs a VT220 control sequence to erase all characters on the current screen line.

Erase whole line
CHAN BYTE

Channel to write to

PROC erase.line (CHAN BYTE out!)
erase.eos
utils.occ
1007

Erase to end of screen. This outputs a VT220 control sequence to erase characters from the current cursor position to the end of the screen.

Erase to end of screen
CHAN BYTE

Channel to write to

PROC erase.eos (CHAN BYTE out!)
erase.bos
utils.occ
1022

Erase to beginning of screen. This outputs a VT220 control sequence to erase characters from the current cursor position backwards to the start of the screen.

Erase to beginning of screen
CHAN BYTE

Channel to write to

PROC erase.bos (CHAN BYTE out!)
erase.screen
utils.occ
1037

Erase whole screen. This outputs a VT220 control sequence to erase all characters from the screen.

Erase whole screen
CHAN BYTE

Channel to write to

PROC erase.screen (CHAN BYTE out!)
cursor.visible
utils.occ
1051

Make cursor visible. This outputs a VT220 control sequence to make the cursor visible.

Make cursor visible
CHAN BYTE

Channel to write to

PROC cursor.visible (CHAN BYTE out!)
cursor.invisible
utils.occ
1067

Make cursor invisible. This outputs a VT220 control sequence to make the cursor invisible.

Make cursor invisible
CHAN BYTE

Channel to write to

PROC cursor.invisible (CHAN BYTE out!)
pos.int
utils.occ
1089

Move cursor and write an integer. This outputs a VT220 control sequence to place the cursor at screen coordinates (`col`, `row`) and output `n` in a fieldwidth of `field`.

Move cursor and write an integer
VAL INT

X coordinate

VAL INT

Y coordinate

VAL INT

Integer

VAL INT

Field width to right-justify in

CHAN BYTE

Channel to write to

PROC pos.int (VAL INT col, row, n, field, CHAN BYTE out!)
pos.yes.no
utils.occ
1107

Move cursor and write a Boolean value (as yes/no). This outputs a VT220 control sequence to place the cursor at screen coordinates (`col`, `row`) and output `b` in a fieldwidth of `field`.

Move cursor and write a Boolean value (as yes/no)
VAL INT

X coordinate

VAL INT

Y coordinate

VAL BOOL

Boolean

VAL INT

Field width to right-justify in

CHAN BYTE

Channel to write to

PROC pos.yes.no (VAL INT col, row, VAL BOOL b, VAL INT field, CHAN BYTE out!)
out.number
utils.occ
1122

Synonym for .

Synonym for
VAL INT
VAL INT
CHAN BYTE
PROC out.number (VAL INT n, w, CHAN BYTE o!)
goto.x.y
utils.occ
1127

Synonym for .

Synonym for
VAL INT
VAL INT
CHAN BYTE
PROC goto.x.y (VAL INT x, y, CHAN BYTE o!)
course.REAL32TOSTRING
float_io.occ
47

Format a `REAL32` number as a decimal string.

`Ip` and `Dp` control how the number is formatted. If `Ip > 0` and `Dp > 0`, fixed-point format will be used with `Ip` digits before the point and `Dp` digits after the point. If `Ip = 0` and `Dp > 0`, exponential format will be used with `Dp` digits in the fraction. If `Ip = 0` and `Dp = 0`, a "reasonable" format will be chosen automatically.

Format a REAL32 number as a decimal string
RESULT INT

The number of characters (`BYTE`s) of string occupied by the formatted decimal representation of the real number

RESULT []BYTE

An array containing the formatted decimal representation of the real number in the first `len` bytes, the remaining bytes being undefined

VAL REAL32

The real number, in IEEE format, to be converted

VAL INT

The first of two formatting values

VAL INT

The second of two formatting values

PROC course.REAL32TOSTRING (RESULT INT len, RESULT []BYTE string, VAL REAL32 X, VAL INT Ip, Dp)
buffer.set.string
stringbuf.occ
31

Adds a string to a string buffer.

Adds a string to a string buffer
[]BYTE

String buffer.

INT

Length of valid data in buffer.

VAL []BYTE

String to add.

PROC buffer.set.string ([]BYTE buf, INT len, VAL []BYTE to.add)
buffer.set.int
stringbuf.occ
51

Adds an integer to a string buffer.

Adds an integer to a string buffer
[]BYTE

String buffer.

INT

Length of valid data in buffer.

VAL INT

Value of integer.

PROC buffer.set.int ([]BYTE buf, INT len, VAL INT n)
buffer.set.hex
stringbuf.occ
115

Adds an integer to a string buffer in hexadecimal format.

Adds an integer to a string buffer in hexadecimal format
[]BYTE

String buffer.

INT

Length of valid data in buffer.

VAL INT

Value of integer.

PROC buffer.set.hex ([]BYTE buf, INT len, VAL INT n)
buffer.set.bin8
stringbuf.occ
159

Adds a BYTE-sized integer to a string buffer in binary format.

Adds a BYTE-sized integer to a string buffer in binary format
[]BYTE

String buffer.

INT

Length of valid data in buffer.

VAL BYTE

Value of byte.

PROC buffer.set.bin8 ([]BYTE buf, INT len, VAL BYTE n)
buffer.set.real32
stringbuf.occ
185

Adds a REAL32 value to a string buffer.

Adds a REAL32 value to a string buffer
[]BYTE

String buffer.

INT

Length of valid data in buffer.

VAL INT

integer portion alignment.

VAL INT

decimal portion alignment.

VAL REAL32

Value to put in buffer.

PROC buffer.set.real32 ([]BYTE buf, INT len, VAL INT ip, dp, VAL REAL32 n)
file.in.string
file_in.occ
31

Read a string from a channel non-interactively. Lines are terminated by newline characters.

Read a string from a channel non-interactively
[]BYTE

Buffer to read into

INT

Number of bytes read

VAL INT

Maximum number of bytes to read

CHAN BYTE

Channel to read from

PROC file.in.string ([]BYTE s, INT length, VAL INT max, CHAN BYTE in?)
file.in.token
file_in.occ
84

Read a token from a channel non-interactively. Tokens are terminated by whitespace.

Read a token from a channel non-interactively
[]BYTE

Buffer to read into

INT

Number of bytes read

VAL INT

Maximum number of bytes to read

CHAN BYTE

Channel to read from

PROC file.in.token ([]BYTE t, INT length, VAL INT max, CHAN BYTE in?)
file.in.int
file_in.occ
229

Read an integer from a channel non-interactively.

Read an integer from a channel non-interactively
INT

Integer read

VAL INT

Maximum number of bytes to read

BOOL

Whether a number was successfully read

CHAN BYTE

Channel to read from

PROC file.in.int (INT n, VAL INT max, BOOL ok, CHAN BYTE in?)
file.in.number
file_in.occ
257

Synonym for .

Synonym for
INT
VAL INT
BOOL
CHAN BYTE
PROC file.in.number (INT n, VAL INT max, BOOL ok, CHAN BYTE in?)
make.string
string.occ
34

Converts a `BYTE` array into a string. This is needed for strings that have been input using a counted-array protocol (where we know the length, but the string characters have been left-justified and the elements of the array after the string need setting to ).

Converts a BYTE array into a string
[]BYTE

Array to convert

VAL INT

Length of string in `a`

PROC make.string ([]BYTE a, VAL INT length)
copy.string
string.occ
52

Copy a string. This copies the string from `a` into `b`. If `a` is shorter than `b`, the string gets padded with s. If `b` is shorter than `a`, the string gets truncated.

Copy a string
VAL []BYTE

Source string

[]BYTE

Destination string

PROC copy.string (VAL []BYTE a, []BYTE b)
equal.string
string.occ
78

Compare two strings for equality.

Compare two strings for equality
VAL []BYTE

One string

VAL []BYTE

Other string

BOOL

Whether the two strings are equal

BOOL FUNCTION equal.string (VAL []BYTE a, b)
compare.string
string.occ
127

Compares two strings for lexicographic ordering.

Compares two strings for lexicographic ordering
VAL []BYTE

Left string

VAL []BYTE

Right string

INT

if `a` < `b`; if `a` = `b`; otherwise

INT FUNCTION compare.string (VAL []BYTE a, b)
starts.with.string
string.occ
191

Check if one string is a prefix of another.

Check if one string is a prefix of another
VAL []BYTE

Possible prefix

VAL []BYTE

String to test

BOOL

`TRUE` if `needle` is prefix of `haystack`, `FALSE` otherwise

BOOL FUNCTION starts.with.string (VAL []BYTE needle, haystack)
ends.with.string
string.occ
212

Check if one string is a suffix of another.

Check if one string is a suffix of another
VAL []BYTE

Possible suffix

VAL []BYTE

String to test

BOOL

`TRUE` if `needle` is suffix of `haystack`, `FALSE` otherwise

BOOL FUNCTION ends.with.string (VAL []BYTE needle, haystack)
byte.in.string
string.occ
233

Check if a string contains the given byte.

Check if a string contains the given byte
VAL BYTE

Byte to search for

VAL []BYTE

String to search

BOOL

`TRUE` if `needle` is in `haystack`, `FALSE` otherwise

BOOL FUNCTION byte.in.string (VAL BYTE needle, VAL []BYTE haystack)
string.to.int
string.occ
251

Convert a string containing a decimal integer to an `INT`.

Convert a string containing a decimal integer to an INT
VAL []BYTE

String to convert

BOOL

`TRUE` if the conversion succeeded, `FALSE` otherwise

INT

The decimal number represented by the string, or `0` if the string could not be converted

BOOL, INT FUNCTION string.to.int (VAL []BYTE s)
write.string
string.occ
275

Write a -padded string to a channel. This is similar to , but correctly right-justifies the string when trailing s are present.

Write a -padded string to a channel
VAL []BYTE

String to write

VAL INT

Field width to right-justify in

CHAN BYTE

Channel to write to

PROC write.string (VAL []BYTE a, VAL INT field, CHAN BYTE out!)
video

V4L(2) frame-grabber interface.

This library allows an application to open a V4L(2) device and interact with it. This currently only supports frame-grabbing from devices.

To use this library:

`#INCLUDE "video.module"`

V4L(2) frame-grabber interface
video.server
video.occ
61

This process implements a video server for a particular V4L device. Once initialised, this will output either 'ok' or 'error' to the client.

This process implements a video server for a particular V4L device
CT.VIDEO?
VAL []BYTE
PROC video.server (CT.VIDEO? vsvr, VAL []BYTE device)
VIDEO.IDENTITY.NAMEMAX
video.inc
42

Maximum length of a video identity.

Maximum length of a video identity
VAL INT VIDEO.IDENTITY.NAMEMAX
VIDEO.IDENTITY
video.inc
45

Generic video device identity

Generic video device identity
DATA TYPE VIDEO.IDENTITY
VIDEO.INPUT.NAMEMAX
video.inc
54

Maximum length of a input name.

Maximum length of a input name
VAL INT VIDEO.INPUT.NAMEMAX
VIDEO.INPUT
video.inc
57

Generic video input information.

Generic video input information
DATA TYPE VIDEO.INPUT
VIDEO.PICTURE
video.inc
73

Generic video picture information/settings.

Generic video picture information/settings
DATA TYPE VIDEO.PICTURE
VIDEO.FRAMEINFO
video.inc
84

Generic video frame information/settings.

Generic video frame information/settings
DATA TYPE VIDEO.FRAMEINFO
P.VIDEO.REQ
video.inc
127

Protocol used for communicating with a video-server process.

Protocol used for communicating with a video-server process
PROTOCOL P.VIDEO.REQ
P.VIDEO.RESP
video.inc
144

Protocol used for communicating with a video-server process.

Protocol used for communicating with a video-server process
PROTOCOL P.VIDEO.RESP
CT.VIDEO
video.inc
159

Channel-type used for communicating with a video-server process.

Channel-type used for communicating with a video-server process
REC CHAN TYPE CT.VIDEO
file

File library.

This library provides a subset of the standard POSIX file-handling functions, with some additions. Many of the provided processes (, , ...) are implemented as direct C calls rather than as blocking calls, as they are unlikely to block in the OS kernel.

This may be used as a replacement for the hostio/hostsp libraries when writing applications for POSIX platforms.

To use this library:

`#INCLUDE "file.module"`

File library
file.check.access
filelib.occ
92

Check access to a filesystem object.

Check access to a filesystem object
VAL []BYTE

The filename to check

VAL INT

Bitwise OR of permissions to test (see )

BOOL

`TRUE` if the access check succeeded, else `FALSE`

PROC file.check.access (VAL []BYTE filename, VAL INT what, BOOL result)
file.size
filelib.occ
108

Get the size of a filesystem object.

Get the size of a filesystem object
VAL []BYTE

The filename to examine

INT

The size of the object in bytes, or `-1` if it does not exist

PROC file.size (VAL []BYTE filename, INT result)
file.open
filelib.occ
119

Open a file descriptor. This form should be used when is not among the modes.

Open a file descriptor
VAL []BYTE

The filename to open

VAL INT

Bitwise OR of the file descriptor's modes (see )

INT

The file descriptor, or `-1` if it cannot be opened

PROC file.open (VAL []BYTE filename, VAL INT mode, INT fd)
file.open3
filelib.occ
131

Open a file descriptor. This form should be used when is among the modes.

Open a file descriptor
VAL []BYTE

The filename to open

VAL INT

Bitwise OR of the file descriptor's modes (see )

VAL INT

The permissions of `filename` after creation

INT

The file descriptor, or `-1` if it cannot be opened

PROC file.open3 (VAL []BYTE filename, VAL INT mode, VAL INT perm, INT fd)
file.pipe
filelib.occ
163

Create a pipe.

Example that copies a string by sending it through a pipe:

`INT fd.read, fd.write: INT result, result.rd, result.wr: VAL []BYTE string IS "hello world!": [(SIZE string)]BYTE buffer: SEQ file.pipe (fd.read, fd.write, result) ASSERT (result = 0) PAR file.blocking.read (fd.read, buffer, (SIZE string), result.rd) file.write (fd.write, string, (SIZE string), result.wr) file.close (fd.read, result) ASSERT (result = 0) file.close (fd.write, result) ASSERT (result = 0)`

See if you're creating several pipes.

Create a pipe
INT

File descriptor for the read end of the pipe

INT

File descriptor for the write end of the pipe

INT

`0` if the pipe was created, or `-1` if an error occurred

PROC file.pipe (INT fd.0, fd.1, result)
file.dup2
filelib.occ
174

Make a copy of a file descriptor. `new.fd` will be closed first if it is already open.

Make a copy of a file descriptor
VAL INT

The source descriptor

VAL INT

The destination descriptor

INT

`0` if successful, `-1` if an error occurred

PROC file.dup2 (VAL INT old.fd, VAL INT new.fd, INT result)
file.read
filelib.occ
191

Read from a file descriptor into a buffer. No more than `SIZE buffer` bytes will be read from the descriptor.

Note: `file.read` assumes that data is available (e.g. reading from a file), and is not a blocking call; if the read could block, use instead.

Read from a file descriptor into a buffer
VAL INT

The file descriptor

[]BYTE

The buffer

INT

The number of bytes read; or `0` if at end of file; or `-1` if an error occurred

PROC file.read (VAL INT fd, []BYTE buffer, INT result)
file.blocking.read
filelib.occ
204

Read from a file descriptor into a buffer without blocking the occam system. No more than `SIZE buffer` bytes will be read from the descriptor.

Read from a file descriptor into a buffer without blocking the occam system
VAL INT

The file descriptor

[]BYTE

The buffer

INT

The number of bytes read; or `0` if at end of file; or `-1` if an error occurred

PROC file.blocking.read (VAL INT fd, []BYTE buffer, INT result)
file.write
filelib.occ
221

Write from a buffer to a file descriptor. No more than `SIZE buffer` bytes will be written.

Note: `file.write` assumes that data can always be written (e.g. writing to a file), and is not a blocking call; if the write could block, use instead.

Write from a buffer to a file descriptor
VAL INT

The file descriptor

VAL []BYTE

The buffer

INT

The number of bytes written, or `-1` if an error occurred

PROC file.write (VAL INT fd, VAL []BYTE buffer, INT result)
file.blocking.write
filelib.occ
233

Write from a buffer to a file descriptor without blocking the occam system. No more than `SIZE buffer` bytes will be written.

Write from a buffer to a file descriptor without blocking the occam system
VAL INT

The file descriptor

VAL []BYTE

The buffer

INT

The number of bytes written, or `-1` if an error occurred

PROC file.blocking.write (VAL INT fd, VAL []BYTE buffer, INT result)
file.seek
filelib.occ
245

Move the read/write offset of a file descriptor.

Move the read/write offset of a file descriptor
VAL INT

The file descriptor

VAL INT

The offset from the location in `whence`

VAL INT

The base location; one of the constants

INT

The new absolute file offset, or `-1` if an error occurred

PROC file.seek (VAL INT fd, VAL INT offset, VAL INT whence, INT result)
file.close
filelib.occ
254

Close a file descriptor.

Close a file descriptor
VAL INT

The file descriptor

RESULT INT

`0` upon success; `-1` if an error occurred

PROC file.close (VAL INT fd, RESULT INT result)
file.mkdir
filelib.occ
264

Create a directory.

Create a directory
VAL []BYTE

Name of the directory

VAL INT

Permissions (see )

INT

`0` upon success; `-1` if an error occurred

PROC file.mkdir (VAL []BYTE pathname, VAL INT perm, INT result)
file.rmdir
filelib.occ
274

Remove a directory. The directory must be empty before it can be removed.

Remove a directory
VAL []BYTE

Name of the directory

INT

`0` upon success; `-1` if an error occurred

PROC file.rmdir (VAL []BYTE pathname, INT result)
file.unlink
filelib.occ
284

Unlink a filesystem object. This can be used to remove anything that isn't a directory.

Unlink a filesystem object
VAL []BYTE

Name of the object

INT

`0` upon success; `-1` if an error occurred

PROC file.unlink (VAL []BYTE filename, INT result)
file.fd.fd.copy
filelib.occ
300

Copy bytes between file descriptors. The copy is performed in the background to reduce overhead.

Copy bytes between file descriptors
VAL INT

The source file descriptor

VAL INT

The destination file descriptor

VAL INT

The number of bytes to copy, or `0` to copy until end of file on `src.fd`

INT

`0` if the copy completed successfully, or `count` was `0` and `src.fd` was at end of file; `-1` if an error occurred; `-3` if `src.fd` reached end of file before `count` bytes had been copied

PROC file.fd.fd.copy (VAL INT src.fd, dst.fd, count, INT result)
file.sendfile
filelib.occ
317

Copy bytes between file descriptors efficiently. This uses the sendfile(2) system call to avoid copying data between userspace and kernelspace. Either or both descriptors may refer to a socket.

Copy bytes between file descriptors efficiently
VAL INT

The source file descriptor

VAL INT

The destination file descriptor

VAL INT

The number of bytes to copy

INT

The offset (in `src.fd`) to start copying from. After a successful copy, this is updated to point at the byte following the last one read.

INT

The number of bytes written, or `-1` if an error occurred.

PROC file.sendfile (VAL INT src.fd, dst.fd, count, INT offset, result)
file.npipes
filelib.occ
328

Create several pipes using .

Create several pipes using
[]INT

The read ends of the pipes

[]INT

The write ends of the pipes

INT

`0` if the pipes were created, or `-1` if an error occurred

PROC file.npipes ([]INT readers, writers, INT result)
file.altable.read
filelib.occ
358

`ALT`able equivalent of .

ALT able equivalent of
CHAN OF BOOL
CHAN OF INT
VAL INT
[]BYTE
INT
PROC file.altable.read (CHAN OF BOOL kill, CHAN OF INT response, VAL INT fd, []BYTE buffer, INT result)
file.altable.write
filelib.occ
390

`ALT`able equivalent of .

ALT able equivalent of
CHAN OF BOOL
CHAN OF INT
VAL INT
VAL []BYTE
INT
PROC file.altable.write (CHAN OF BOOL kill, CHAN OF INT response, VAL INT fd, VAL []BYTE buffer, INT result)
file.altable.fd.fd.copy
filelib.occ
422

`ALT`able equivalent of .

ALT able equivalent of
CHAN OF BOOL
CHAN OF INT
VAL INT
VAL INT
VAL INT
INT
PROC file.altable.fd.fd.copy (CHAN OF BOOL kill, CHAN OF INT response, VAL INT src.fd, dst.fd, count, INT result)
file.array.select
filelib.occ
472

Wait for one of a set of file descriptors to become ready. This performs the `select(2)` system call.

After `file.array.select` returns, the file descriptors in the sets that are not ready are changed to `-1`. Any file descriptors passed that are already `-1` are ignored.

Wait for one of a set of file descriptors to become ready
[]INT

The set of reading file descriptors

[]INT

The set of writing file descriptors

[]INT

The set of exception-watching file descriptors

VAL INT

The highest file descriptor in all three sets, plus one; you can use to calculate this

VAL INT

The time to wait for a file descriptor to become ready; or `0` to return immediately if none are ready; or `-1` to wait indefinitely

RESULT INT

The number of ready file descriptors in the three sets (which may be `0` if the timeout passed before any were ready), or `-1` if an error occurred

PROC file.array.select ([]INT read.set, write.set, except.set, VAL INT high.fd, timeout, RESULT INT result)
file.high.fd
filelib.occ
485

Find the highest file descriptor in three sets. This is for use with .

Find the highest file descriptor in three sets
VAL []INT

The set of reading file descriptors

VAL []INT

The set of writing file descriptors

VAL []INT

The set of exception-watching file descriptors

INT

The highest file descriptor in the sets; add one to this to get the value to pass to

INT FUNCTION file.high.fd (VAL []INT read.set, write.set, except.set)
file.fcntl0
filelib.occ
513

Perform various operations on file descriptors. This allows occam-pi programs to make a fcntl(2) system call with no optional parameter. See the fcntl(2) manual page for more information.

Perform various operations on file descriptors
VAL INT

The (source) file descriptor

VAL INT

The command (one of , such as or )

RESULT INT

The result of the operation

PROC file.fcntl0 (VAL INT fd, cmd, RESULT INT result)
file.fcntl1
filelib.occ
528

Perform various operations on file descriptors. This allows occam-pi programs to make a fcntl(2) system call with one optional parameter. See the fcntl(2) manual page for more information.

Perform various operations on file descriptors
VAL INT

The (source) file descriptor

VAL INT

The command (one of , such as , or )

VAL INT

A parameter for the operation

RESULT INT

The result of the operation

PROC file.fcntl1 (VAL INT fd, cmd, arg, RESULT INT result)
file.num.args
filelib.occ
538

Get number of program arguments. This is the equivalent of argc in C. Programs always have at least one argument: their own name.

Get number of program arguments
RESULT INT

The number of arguments the program was given

PROC file.num.args (RESULT INT n)
file.nth.arg
filelib.occ
565

Get a program argument. This is the equivalent of argv[n] in C.

For example, if the occam-pi program was invoked as ./argtest foo "bar foo", then argument 1 will be foo, argument 2 will be bar foo, and will return 3.

If you want to parse Unix-style command-line options, use instead.

Get a program argument
VAL INT

The number of the argument to fetch

RESULT []BYTE

The buffer to copy the argument into

RESULT INT

The length of the argument in bytes, or `SIZE arg` if the argument was too long to fit in the buffer

PROC file.nth.arg (VAL INT n, RESULT []BYTE arg, RESULT INT len)
file.get.long.options
filelib.occ
620

Parse command-line options. This is intended to behave like GNU getopt_long(3), but without support for permuting options.

The `options` argument is an array of strings listing the possible options for the program. Options that can take an argument should be followed by an equals sign.

Example, for a program which can take -v/--verbose and -h/--host HOST arguments:

`CHAN GETOPT.LONG opts: PAR INITIAL MOBILE []MOBILE []BYTE spec IS MOBILE [4]MOBILE []BYTE: SEQ spec[0] := "v" spec[1] := "verbose" spec[2] := "h=" spec[3] := "host=" file.get.long.options (spec, opts!) INITIAL BOOL running IS TRUE: WHILE running MOBILE []BYTE o, a: opts ? CASE opt; o IF same.string (o, "v") OR same.string (o, "verbose") ... handle -v option opt.arg; o; a IF same.string (o, "h") OR same.string (o, "host") ... handle -h option; argument is in a arg; a ... handle non-option argument a bad; o ... print usage message and exit done running := FALSE`

Parse command-line options
MOBILE []MOBILE []BYTE

List of options that this program can take

CHAN GETOPT.LONG

Channel down which options are reported (using )

PROC file.get.long.options (MOBILE []MOBILE []BYTE options, CHAN GETOPT.LONG out!)
file.get.options
filelib.occ
889

Parse command-line options. This is intended to behave like POSIX (not GNU) getopt(3). If you want to handle long options, use instead; this `PROC` will report all long options as `bad`.

The `options` argument is a string listing the possible (single-character) options for the program. Options that can take an argument should be followed by a colon.

Example, for a program which can take -v and -h HOST arguments:

`CHAN GETOPT opts: PAR file.get.options ("vh:", opts!) INITIAL BOOL running IS TRUE: WHILE running BYTE o: MOBILE []BYTE a: opts ? CASE opt; o CASE o 'v' ... handle -v option opt.arg; o; a CASE o 'h' ... handle -h option; argument is in a arg; a ... handle non-option argument a bad; o ... print usage message and exit done running := FALSE`

Parse command-line options
VAL []BYTE

List of options that this program can take

CHAN GETOPT

Channel down which options are reported (using )

PROC file.get.options (VAL []BYTE options, CHAN GETOPT out!)
file.stat
filelib.occ
949

Get information about a filesystem object. Symbolic links will be followed.

Get information about a filesystem object
VAL []BYTE

The filename to examine

RESULT STAT

The returned information (see )

RESULT INT

`0` on success, `-1` on error

PROC file.stat (VAL []BYTE name, RESULT STAT info, RESULT INT res)
file.lstat
filelib.occ
959

Get information about a filesystem object or link. Symbolic links will not be followed.

Get information about a filesystem object or link
VAL []BYTE

The filename to examine

RESULT STAT

The returned information (see )

RESULT INT

`0` on success, `-1` on error

PROC file.lstat (VAL []BYTE name, RESULT STAT info, RESULT INT res)
file.fstat
filelib.occ
968

Get information about an open filesystem object.

Get information about an open filesystem object
VAL INT

The file descriptor to examine

RESULT STAT

The returned information (see )

RESULT INT

`0` on success, `-1` on error

PROC file.fstat (VAL INT fd, RESULT STAT info, RESULT INT res)
file.opendir
filelib.occ
976

Open a directory.

Open a directory
VAL []BYTE

The directory path

RESULT INT

The returned directory descriptor, or `-1` on error

PROC file.opendir (VAL []BYTE filename, RESULT INT dd)
file.readdir
filelib.occ
986

Read the next directory entry from a directory.

Read the next directory entry from a directory
VAL INT

The directory descriptor

RESULT DIRENT

The returned directory entry (see )

RESULT INT

`0` on success, `-1` on error

PROC file.readdir (VAL INT dd, RESULT DIRENT info, RESULT INT res)
file.closedir
filelib.occ
994

Close a directory descriptor.

Close a directory descriptor
VAL INT

The directory descriptor

RESULT INT

`0` on success, `-1` on error

PROC file.closedir (VAL INT dd, RESULT INT res)
file.chmod
filelib.occ
1004

Change the permissions of a filesystem object.

Change the permissions of a filesystem object
VAL []BYTE

The filename to change

INT

The new permissions of the object (see )

RESULT INT

`0` on success, `-1` on error

PROC file.chmod (VAL []BYTE filename, INT mode, RESULT INT res)
file.fsync
filelib.occ
1013

Force changes to an open file to be written to disk.

Force changes to an open file to be written to disk
VAL INT

The file descriptor

RESULT INT

`0` on success, `-1` on error

PROC file.fsync (VAL INT fd, RESULT INT result)
ACCESS
filelib.inc
22

Constants for .

Constants for
R.OK
filelib.inc
23

Check read permission

Check read permission
VAL R.OK
W.OK
filelib.inc
24

Check write permission

Check write permission
VAL W.OK
X.OK
filelib.inc
25

Check execute permission

Check execute permission
VAL X.OK
F.OK
filelib.inc
26

Check existance

Check existance
VAL F.OK
OPEN.MODE
filelib.inc
28

Constants for .

Constants for
O.RDONLY
filelib.inc
31

Open for reading

Open for reading
VAL O.RDONLY
O.WRONLY
filelib.inc
33

Open for writing

Open for writing
VAL O.WRONLY
O.RDWR
filelib.inc
35

Open for reading and writing

Open for reading and writing
VAL O.RDWR
O.CREAT
filelib.inc
37

Create if not already present

Create if not already present
VAL O.CREAT
O.EXCL
filelib.inc
39

Fail if is given and the file already exists

Fail if is given and the file already exists
VAL O.EXCL
O.NOCTTY
filelib.inc
41

Don't become controlling terminal

Don't become controlling terminal
VAL O.NOCTTY
O.TRUNC
filelib.inc
43

Truncate to zero length after opening

Truncate to zero length after opening
VAL O.TRUNC
O.APPEND
filelib.inc
45

Position file pointer at EOF before each write

Position file pointer at EOF before each write
VAL O.APPEND
O.NONBLOCK
filelib.inc
47

Make operations on this FD not block

Make operations on this FD not block
VAL O.NONBLOCK
O.NDELAY
filelib.inc
50

Synonym for

Synonym for
VAL O.NDELAY
O.SYNC
filelib.inc
52

Open for synchronous IO

Open for synchronous IO
VAL O.SYNC
O.ASYNC
filelib.inc
54

Generate a signal when IO becomes possible

Generate a signal when IO becomes possible
VAL O.ASYNC
O.DIRECT
filelib.inc
56

Don't cache data for this file

Don't cache data for this file
VAL O.DIRECT
O.LARGEFILE
filelib.inc
58

Allow the file to be larger than 2GB

Allow the file to be larger than 2GB
VAL O.LARGEFILE
O.DIRECTORY
filelib.inc
60

Fail if not opening a directory

Fail if not opening a directory
VAL O.DIRECTORY
O.NOFOLLOW
filelib.inc
62

Don't follow symbolic links when opening

Don't follow symbolic links when opening
VAL O.NOFOLLOW
SEEK
filelib.inc
64

Constants for .

Constants for
SEEK.SET
filelib.inc
65

Relative to start of file

Relative to start of file
VAL SEEK.SET
SEEK.CUR
filelib.inc
66

Relative to current location

Relative to current location
VAL SEEK.CUR
SEEK.END
filelib.inc
67

Relative to end of file

Relative to end of file
VAL SEEK.END
FCNTL
filelib.inc
69

Constants for and .

Constants for and
F.DUPFD
filelib.inc
70

Duplicate file descriptor

Duplicate file descriptor
VAL F.DUPFD
F.GETFD
filelib.inc
71

Read the close-on-exec flag

Read the close-on-exec flag
VAL F.GETFD
F.SETFD
filelib.inc
72

Set the close-on-exec flag

Set the close-on-exec flag
VAL F.SETFD
F.GETFL
filelib.inc
75

Get file descriptor flags. See .

Get file descriptor flags
VAL F.GETFL
F.SETFL
filelib.inc
78

Set file descriptor flags. See .

Set file descriptor flags
VAL F.SETFL
F.GETLK
filelib.inc
81

Get flock structure. Not fully supported.

Get flock structure
VAL F.GETLK
F.SETLK
filelib.inc
84

Set file lock. Not fully supported.

Set file lock
VAL F.SETLK
F.SETLKW
filelib.inc
87

Set file lock with wait. Not fully supported.

Set file lock with wait
VAL F.SETLKW
F.SETOWN
filelib.inc
92

Set process ID that will receive SIGIO and SIGURG signals. Use a negative ID for a process group. Not fully supported.

Set process ID that will receive SIGIO and SIGURG signals
VAL F.SETOWN
F.GETOWN
filelib.inc
96

Get process ID receiving SIGIO and SIGURG signals. Returns a negative ID for a process group. Not fully supported.

Get process ID receiving SIGIO and SIGURG signals
VAL F.GETOWN
F.SETSIG
filelib.inc
100

Get signal sent when I/O becomes available on the descriptor. `0` means SIGIO. SA_SIGINFO may be available. Not fully supported.

Get signal sent when I/O becomes available on the descriptor
VAL F.SETSIG
F.GETSIG
filelib.inc
104

Set signal sent when I/O becomes available on the descriptor. `0` means SIGIO. SA_SIGINFO may be available. Not fully supported.

Set signal sent when I/O becomes available on the descriptor
VAL F.GETSIG
F.GETLK64
filelib.inc
108

Get flock64 structure. Not fully supported.

Get flock64 structure
VAL F.GETLK64
F.SETLK64
filelib.inc
111

Set 64-bit file lock. Not fully supported.

Set 64-bit file lock
VAL F.SETLK64
F.SETLKW64
filelib.inc
114

Set 64-bit file lock with wait. Not fully supported.

Set 64-bit file lock with wait
VAL F.SETLKW64
FD.CLOEXEC
filelib.inc
116

Close-on-exec flag for /

Close-on-exec flag for /
VAL FD.CLOEXEC
F.RDLCK
filelib.inc
117

Obtain read lock

Obtain read lock
VAL F.RDLCK
F.WRLCK
filelib.inc
118

Obtain write lock

Obtain write lock
VAL F.WRLCK
F.UNLCK
filelib.inc
119

Release lock

Release lock
VAL F.UNLCK
FILE.MODE
filelib.inc
123

Constants for file modes.

Constants for file modes
S.IRWXU
filelib.inc
124

User may read, write and execute

User may read, write and execute
VAL S.IRWXU
S.IRUSR
filelib.inc
125

User may read

User may read
VAL S.IRUSR
S.IWUSR
filelib.inc
126

User may write

User may write
VAL S.IWUSR
S.IXUSR
filelib.inc
127

User may execute

User may execute
VAL S.IXUSR
S.IRWXG
filelib.inc
128

Group may read, write and execute

Group may read, write and execute
VAL S.IRWXG
S.IRGRP
filelib.inc
129

Group may read

Group may read
VAL S.IRGRP
S.IWGRP
filelib.inc
130

Group may write

Group may write
VAL S.IWGRP
S.IXGRP
filelib.inc
131

Group may execute

Group may execute
VAL S.IXGRP
S.IRWXO
filelib.inc
132

Others may read, write and execute

Others may read, write and execute
VAL S.IRWXO
S.IROTH
filelib.inc
133

Others may read

Others may read
VAL S.IROTH
S.IWOTH
filelib.inc
134

Others may write

Others may write
VAL S.IWOTH
S.IXOTH
filelib.inc
135

Others may execute

Others may execute
VAL S.IXOTH
S.I644
filelib.inc
136

User may write; all may read

User may write; all may read
VAL S.I644
S.I755
filelib.inc
137

User may write; all may read and execute

User may write; all may read and execute
VAL S.I755
S.IFMT
filelib.inc
138

Bitmask for the file type bitfields

Bitmask for the file type bitfields
VAL INT32 S.IFMT
S.IFSOCK
filelib.inc
139

Socket

Socket
VAL INT32 S.IFSOCK
S.IFLNK
filelib.inc
140

Symbolic link

Symbolic link
VAL INT32 S.IFLNK
S.IFREG
filelib.inc
141

Regular file

Regular file
VAL INT32 S.IFREG
S.IFBLK
filelib.inc
142

Block device

Block device
VAL INT32 S.IFBLK
S.IFDIR
filelib.inc
143

Directory

Directory
VAL INT32 S.IFDIR
S.IFCHR
filelib.inc
144

Character device

Character device
VAL INT32 S.IFCHR
S.IFIFO
filelib.inc
145

FIFO

FIFO
VAL INT32 S.IFIFO
S.ISUID
filelib.inc
146

Set-UID

Set-UID
VAL INT32 S.ISUID
S.ISGID
filelib.inc
147

Set-GID

Set-GID
VAL INT32 S.ISGID
S.ISVTX
filelib.inc
148

Sticky

Sticky
VAL INT32 S.ISVTX
GETOPT
filelib.inc
157

Responses from .

Responses from
PROTOCOL GETOPT
opt
filelib.inc
161

An option (such as -a).

An option (such as -a )
BYTE

The option

opt; BYTE
opt.arg
filelib.inc
165

An option with an argument (such as -a foo).

An option with an argument (such as -a foo )
BYTE

The option

MOBILE []BYTE

The argument

opt.arg; BYTE; MOBILE []BYTE
arg
filelib.inc
168

A non-option argument (such as foo).

A non-option argument (such as foo )
MOBILE []BYTE

The argument

arg; MOBILE []BYTE
bad
filelib.inc
172

An unrecognised option. This will be followed immediately by `done`.

An unrecognised option
BYTE

The option

bad; BYTE
done
filelib.inc
174

No more options.

No more options
done
GETOPT.LONG
filelib.inc
179

Responses from .

Responses from
PROTOCOL GETOPT.LONG
opt
filelib.inc
183

An option (such as -a or --arg).

An option (such as -a or --arg )
MOBILE []BYTE

The option (e.g. a or arg)

opt; MOBILE []BYTE
opt.arg
filelib.inc
187

An option with an argument (such as -a foo or --arg foo).

An option with an argument (such as -a foo or --arg foo )
MOBILE []BYTE

The option (e.g. a or arg)

MOBILE []BYTE

The argument

opt.arg; MOBILE []BYTE; MOBILE []BYTE
arg
filelib.inc
190

A non-option argument (such as foo).

A non-option argument (such as foo )
MOBILE []BYTE

The argument

arg; MOBILE []BYTE
bad
filelib.inc
194

An unrecognised option. This will be followed immediately by `done`.

An unrecognised option
MOBILE []BYTE

The option

bad; MOBILE []BYTE
done
filelib.inc
196

No more options.

No more options
done
STAT
filelib.inc
207

Information about a filesystem object. This is the result from , and . See the stat(2) manual page for more information on the meaning of the fields.

Information about a filesystem object
DATA TYPE STAT
dev
filelib.inc
209

Device number

Device number
INT64
ino
filelib.inc
210

Inode number

Inode number
INT64
mode
filelib.inc
211

Object type and permissions

Object type and permissions
INT32
nlink
filelib.inc
212

Number of links

Number of links
INT32
uid
filelib.inc
213

Owner's uid

Owner's uid
INT32
gid
filelib.inc
214

Group's gid

Group's gid
INT32
rdev
filelib.inc
215

Device type

Device type
INT64
size
filelib.inc
216

Size in bytes

Size in bytes
INT32
blksize
filelib.inc
217

Block size for filesystem IO

Block size for filesystem IO
INT32
blocks
filelib.inc
218

Number of blocks allocated

Number of blocks allocated
INT32
atime
filelib.inc
219

Access time

Access time
INT32
mtime
filelib.inc
220

Modification time

Modification time
INT32
ctime
filelib.inc
221

Change time

Change time
INT32
DIRENT
filelib.inc
229

Information about a directory entry. This is the result from .

Information about a directory entry
DATA TYPE DIRENT
filename
filelib.inc
231

Filename, terminated with `'*0'`

Filename, terminated with '*0'
[256]BYTE
useful

General utilities.

This module contains miscellaneous utilities for occam-pi programs. The aim is to provide somewhere to collect code that should obviously be in the standard library (that is: it's been needed by more than one occam-pi program), but where there isn't an existing module that it should obviously go into.

General utilities
delay
time.occ
25

Wait for a period of time.

Wait for a period of time
VAL INT

The delay in microseconds

PROC delay (VAL INT us)
seed.from.timer
random.occ
26

Initialise a random number generator's seed using a timer.

Initialise a random number generator's seed using a timer
TIMER
RESULT INT
PROC seed.from.timer (TIMER tim, RESULT INT seed)
random.real32
random.occ
35

Generate a random `REAL32`. The resulting value will be selected from the range `0.0 .. range`.

Generate a random REAL32
VAL REAL32
VAL INT
REAL32
INT
REAL32, INT FUNCTION random.real32 (VAL REAL32 range, VAL INT seed)
out.vector2
vector.occ
28

Print a .

Print a
VAL VECTOR2
CHAN BYTE
PROC out.vector2 (VAL VECTOR2 v, CHAN BYTE out!)
normalise2
vector.occ
42

Normalise a .

Normalise a
VAL VECTOR2

Input vector

VECTOR2

Unit vector parallel to `v`

VECTOR2 FUNCTION normalise2 (VAL VECTOR2 v)
out.vector3
vector.occ
47

Print a .

Print a
VAL VECTOR3
CHAN BYTE
PROC out.vector3 (VAL VECTOR3 v, CHAN BYTE out!)
normalise3
vector.occ
64

Normalise a .

Normalise a
VAL VECTOR3

Input vector

VECTOR3

Unit vector parallel to `v`

VECTOR3 FUNCTION normalise3 (VAL VECTOR3 v)
cross.product3
vector.occ
68

Compute the cross product of two s.

Compute the cross product of two s
VAL VECTOR3
VAL VECTOR3
VECTOR3
VECTOR3 FUNCTION cross.product3 (VAL VECTOR3 a, b)
normal3
vector.occ
80

Compute the normal to the plane defined by the two given vectors.

Compute the normal to the plane defined by the two given vectors
VAL VECTOR3
VAL VECTOR3
VECTOR3
VECTOR3 FUNCTION normal3 (VAL VECTOR3 a, b)
matrix.multiply
matrix.occ
33

Compute the ordinary product of two matrices. The number of columns in `a` must be the same as the number of rows in `b`. `result` must have the same number of rows as `a` and the same number of columns as `b`.

Compute the ordinary product of two matrices
VAL [][]REAL32

First matrix

VAL [][]REAL32

Second matrix

[][]REAL32

Product

PROC matrix.multiply (VAL [][]REAL32 a, b, [][]REAL32 result)
matrix.add
matrix.occ
53

Add two matrices. `a`, `b` and `result` must all be the same size.

Add two matrices
VAL [][]REAL32

First matrix

VAL [][]REAL32

Second matrix

[][]REAL32

Product

PROC matrix.add (VAL [][]REAL32 a, b, [][]REAL32 result)
* (VECTOR2, [2][2]REAL32)
matrix.occ
67

Multiply a by a transformation matrix.

Multiply a by a transformation matrix
VAL VECTOR2
VAL [2][2]REAL32
VECTOR2
VECTOR2 FUNCTION "**" (VAL VECTOR2 v, VAL [2][2]REAL32 m)
* (VECTOR3, [3][3]REAL32)
matrix.occ
77

Multiply a by a transformation matrix.

Multiply a by a transformation matrix
VAL VECTOR3
VAL [3][3]REAL32
VECTOR3
VECTOR3 FUNCTION "**" (VAL VECTOR3 v, VAL [3][3]REAL32 m)
rotate2
matrix.occ
90

Generate a transformation matrix that rotates a 2D point around the origin.

Generate a transformation matrix that rotates a 2D point around the origin
VAL REAL32

Angle (in radians)

[2][2]REAL32

Transformation matrix

[2][2]REAL32 FUNCTION rotate2 (VAL REAL32 theta)
rotate3.x
matrix.occ
98

Generate a transformation matrix that rotates a 3D point around the X axis.

Generate a transformation matrix that rotates a 3D point around the X axis
VAL REAL32

Angle (in radians)

[3][3]REAL32

Transformation matrix

[3][3]REAL32 FUNCTION rotate3.x (VAL REAL32 theta)
rotate3.y
matrix.occ
107

Generate a transformation matrix that rotates a 3D point around the Y axis.

Generate a transformation matrix that rotates a 3D point around the Y axis
VAL REAL32

Angle (in radians)

[3][3]REAL32

Transformation matrix

[3][3]REAL32 FUNCTION rotate3.y (VAL REAL32 theta)
rotate3.z
matrix.occ
116

Generate a transformation matrix that rotates a 3D point around the Z axis.

Generate a transformation matrix that rotates a 3D point around the Z axis
VAL REAL32

Angle (in radians)

[3][3]REAL32

Transformation matrix

[3][3]REAL32 FUNCTION rotate3.z (VAL REAL32 theta)
resize.string
string.occ
29

Resize a string, keeping its contents intact.

Resize a string, keeping its contents intact
MOBILE []BYTE

String to resize

VAL INT

New length

PROC resize.string (MOBILE []BYTE s, VAL INT new.size)
append.string
string.occ
37

Append a string to a string.

Append a string to a string
MOBILE []BYTE

String to append to

VAL []BYTE

String that will be appended to `out`

PROC append.string (MOBILE []BYTE out, VAL []BYTE in)
append.int
string.occ
48

Append a number to a string.

Append a number to a string
MOBILE []BYTE

String to which the decimal representation of `n` will be appended

VAL INT

Integer to format

PROC append.int (MOBILE []BYTE out, VAL INT n)
same.string
string.occ
82

Compare two strings for equality.

Compare two strings for equality
VAL []BYTE

Strings to compare

BOOL

`TRUE` if the strings are the same, `FALSE` otherwise

BOOL FUNCTION same.string (VAL []BYTE a, b)
is.whitespace
string.occ
100

Is a character whitespace?

Is a character whitespace?
VAL BYTE

Character to examine

BOOL

`TRUE` if `ch` is a space, tab, carriage-return or line-feed

BOOL FUNCTION is.whitespace (VAL BYTE ch)
rstrip.string
string.occ
113

Remove trailing whitespace from a string.

Remove trailing whitespace from a string
MOBILE []BYTE
PROC rstrip.string (MOBILE []BYTE s)
VECTOR2
useful.inc
33

A two-dimensional vector.

A two-dimensional vector
DATA TYPE VECTOR2
mag.squared2
useful.inc
47

Compute the square of the magnitude of a .

Compute the square of the magnitude of a
VAL VECTOR2
REAL32
REAL32 INLINE FUNCTION mag.squared2 (VAL VECTOR2 v)
VECTOR3
useful.inc
55

A three-dimensional vector.

A three-dimensional vector
DATA TYPE VECTOR3
mag.squared3
useful.inc
69

Compute the square of the magnitude of a .

Compute the square of the magnitude of a
VAL VECTOR3
REAL32
REAL32 INLINE FUNCTION mag.squared3 (VAL VECTOR3 v)
COMPLEX32
useful.inc
78

A 2*32-bit complex number.

A 2*32-bit complex number
DATA TYPE COMPLEX32
COMPLEX64
useful.inc
135

A 2*64-bit complex number.

A 2*64-bit complex number
DATA TYPE COMPLEX64
min.int
math.occ
28

Find the lesser of two integers.

Find the lesser of two integers
VAL INT

Integers to compare

INT

The lesser of `a` and `b`

INT FUNCTION min.int (VAL INT a, b)
max.int
math.occ
43

Find the greater of two integers.

Find the greater of two integers
VAL INT

Integers to compare

INT

The greater of `a` and `b`

INT FUNCTION max.int (VAL INT a, b)
min.real32
math.occ
58

Find the lesser of two reals.

Find the lesser of two reals
VAL REAL32

Reals to compare

REAL32

The lesser of `a` and `b`

REAL32 FUNCTION min.real32 (VAL REAL32 a, b)
max.real32
math.occ
73

Find the greater of two reals.

Find the greater of two reals
VAL REAL32

Reals to compare

REAL32

The greater of `a` and `b`

REAL32 FUNCTION max.real32 (VAL REAL32 a, b)
update.max.int
math.occ
90

Update a running maximum value. If `value` is greater than `max`, `max` will be set to `value`.

Update a running maximum value
INT

The running maximum

VAL INT

The input value

PROC update.max.int (INT max, VAL INT value)
clamp.int
math.occ
106

Limit an integer to a particular range. For example, if you call this with `left = 3` and `width = 3`, then the output value will be in the range `3 .. 5`.

Limit an integer to a particular range
VAL INT

Input value

VAL INT

The lowest value in the range

VAL INT

The width of the range

INT

A value in the range `left .. (left + width - 1)`

INT FUNCTION clamp.int (VAL INT in, left, width)
wrap.int
math.occ
125

Wrap array indexes around. If given `-1`, this will return `max - 1`; if given `max + 1`, this will return `1`. This is not quite the same thing as `\ max`, since that doesn't do the right thing for negative numbers.

Wrap array indexes around
VAL INT
VAL INT
INT
INT FUNCTION wrap.int (VAL INT i, max)
deg.to.rad
math.occ
137

Convert an angle in degrees into radians.

Convert an angle in degrees into radians
VAL REAL32
REAL32
REAL32 FUNCTION deg.to.rad (VAL REAL32 deg)
rad.to.deg
math.occ
141

Convert an angle in radians into degrees.

Convert an angle in radians into degrees
VAL REAL32
REAL32
REAL32 FUNCTION rad.to.deg (VAL REAL32 rad)
streamio
ss.scrstream.to.array
scrtfarr.occ
71

Put the data received on given screen stream channel into given array.

This procedure terminates when st.endstream is read on channel scrn. This terminating st.endstream is stored in buffer as tt.endstream.

Put the data received on given screen stream channel into given array
CHAN OF SS

for input

[]BYTE

the array to which the data received on scrn is placed; the data is stored in the form of TDS2 tt. tags followed as necessary by further data bytes; if buffer overflows then this procedure acts as an invalid process

PROC ss.scrstream.to.array (CHAN OF SS scrn, []BYTE buffer)
ss.scrstream.from.array
scrtfarr.occ
209

Output the data in the given array on the given screen stream channel.

This procedure terminates when tt.endstream is found in buffer. This tt.endstream is not sent out ( as st.endstream or anything else ).

Output the data in the given array on the given screen stream channel
CHAN OF SS

for output

VAL []BYTE

the array from which the data is to be sent on scrn; the data should be in the form of TDS2 tt. tags, followed as necessary by further data bytes.

PROC ss.scrstream.from.array (CHAN OF SS scrn, VAL []BYTE buffer)
ss.scrstream.fan.out
scrfan.occ
35

Copy everything received on the given screen stream input channel to both of the given screen stream output channels.

Receipt of st.endstream on scrn will terminate this procedure, without sending the stream terminator on.

Copy everything received on the given screen stream input channel to both of the given screen stream output channels
CHAN OF SS

for input

CHAN OF SS

for output

CHAN OF SS

for output

PROC ss.scrstream.fan.out (CHAN OF SS scrn, screen.out1, screen.out2)
ss.scrstream.sink
scrsink.occ
30

Ignore all but st.endstream of screen stream protocol, and to terminate when it does receive st.endstream.

Ignore all but st.endstream of screen stream protocol, and to terminate when it does receive st.endstream
CHAN OF SS

for input

PROC ss.scrstream.sink (CHAN OF SS scrn)
ks.keystream.sink
keysink.occ
30

Read word length quantities from the given key stream until ft.terminated is received, at which point this procedure terminates.

Read word length quantities from the given key stream until ft.terminated is received, at which point this procedure terminates
CHAN OF KS

for input

PROC ks.keystream.sink (CHAN OF KS keys)
ss.write.int64
swint64.occ
46

Write to the given screen stream a 64-bit integer as decimal ASCII digits, padded out with leading spaces to the specified field width.

If the field width is too small for the number, then it is widened as necessary; a zero value for the field width will give minimum width; a negative field width is an error.

Write to the given screen stream a 64-bit integer as decimal ASCII digits, padded out with leading spaces to the specified field width
CHAN OF SS

for output

VAL INT64

the 64-bit integer that is desired to be written

VAL INT

the desired field width of the string

PROC ss.write.int64 (CHAN OF SS scrn, VAL INT64 number, VAL INT width )
ss.write.hex.int64
swint64.occ
87

Write a 64-bit integer as hexadecimal ASCII characters preceded by the '#' character to the given screen stream.

Write a 64-bit integer as hexadecimal ASCII characters preceded by the '#' character to the given screen stream
CHAN OF SS

for output

VAL INT64

the 64-bit integer to write out

VAL INT

the field width to use when writing the hex; if width is larger than the size of the number then the number is padded with leading 0's or F's as appropriate; if width is smaller than the size of the number then the number is truncated at the left to width characters; width does not take the '#' into account. A negative field width is an error.

PROC ss.write.hex.int64 (CHAN OF SS scrn, VAL INT64 number, VAL INT width )
ss.scrstream.multiplexor
scrmux.occ
45

Multiplex up to 256 screen stream channels onto a single such channel.

It is an error if there are more than 256 channels in screen.in. It is permissible for screen.in to be a null array. Each change of input channel directs output to the next line of the screen, and each such line is annotated at the left with the array index of the channel used followed by '>'. The tag st.endstream is ignored. To attempt some degree of fairness, let the implementation give priority in a heirarchy from screen.in with index i for SIZE screen.in, using modulo SIZE screen.in on the indexes; starting from 0 and incrementing it by one after each input accepted.

Multiplex up to 256 screen stream channels onto a single such channel
[]CHAN OF SS

an array of input channels

CHAN OF SS

the single output channel

CHAN OF INT

input to this routine; any integer received on this channel will terminate this routine; this channel has highest priority

PROC ss.scrstream.multiplexor ([]CHAN OF SS screen.in, CHAN OF SS screen.out, CHAN OF INT stopper)
ss.scrstream.copy
scrcopy.occ
33

Copy the output of one screen stream to the input of another.

Receipt of st.endstream on scrn.in will terminate this procedure, without the stream terminator being passed on.

Copy the output of one screen stream to the input of another
CHAN OF SS

for input

CHAN OF SS

for output

PROC ss.scrstream.copy (CHAN OF SS scrn.in, scrn.out)
ks.read.char
srchar.occ
36

Obtain the value of the next word length quantity from the given keystream channel.

Obtain the value of the next word length quantity from the given keystream channel
CHAN OF KS

for input

INT

the value of the word obtained

PROC ks.read.char (CHAN OF KS source, INT char)
ks.read.line
srchar.occ
56

Read a line of text from the given keystream channel.

Although characters ( ie BYTE's ) are inserted into line, it is word length quantities that are read from source. The line of text is deemed to be terminated by INT '*c' or any negative value. The word that terminated the line is not included in line. Any word read with a value greater than 255 ( the maximum that a byte can hold ) is ignored. Any '*n' read is ignored. If the array line is filled before a valid termination character is encountered, then all further words are ignored.

Read a line of text from the given keystream channel
CHAN OF KS

for input

INT

the number of characters that have been put into line

[]BYTE

the line that was read is [ line FROM 0 FOR len ]

INT

the word that terminated the line

PROC ks.read.line (CHAN OF KS source, INT len, []BYTE line, INT char)
ss.write.real64
swreal64.occ
37

Format into ASCII characters and then write to the given screen stream a double precision real number.

If Ip, Dp and number are such that the resulting formatted form is longer than 30 characters this procedure will act as an invalid process.

Format into ASCII characters and then write to the given screen stream a double precision real number
CHAN OF SS

for output

VAL REAL64

the IEEE double precision real to format and write out

VAL INT

formatting values; see REAL64TOSTRING for their effect

PROC ss.write.real64 (CHAN OF SS scrn, VAL REAL64 number, VAL INT Ip, Dp)
so.keystream.from.file
kfile.occ
49

Read lines from a text file and output them on the given key stream channel.

The value ft.terminated is sent on keys.out on termination. Termination of this procedure is either when an error occurs or when all characters in the file have been read. A '*c' is output to terminate a text line.

Read lines from a text file and output them on the given key stream channel
CHAN OF SP

from server

CHAN OF SP

to server

CHAN OF KS

for output

VAL []BYTE

the name of the file to be opened. The name of the file must fit exactly into filename, i.e. there are (SIZE filename) characters in the name of the file. A directory specification may form part of filename.

BYTE

spr.ok if the process was successful; otherwise it takes on a value indicating what went wrong: spr.bad.packet.size filename too large: (SIZE filename) > sp.max.openname.size spr.bad.name null file name >=spr.operation.failed the open failed or reading the file failed - see hostio.inc or iserver documentation for further details

PROC so.keystream.from.file (CHAN OF SP fs, ts, CHAN OF KS keys.out, VAL []BYTE filename, BYTE result)
so.keystream.from.stdin
kstdin.occ
43

Read lines from standard input and output them on the given key stream channel.

The value ft.terminated is sent on keys.out on termination. Termination of this procedure is either when an error occurs or when all characters from standard input have been read, ie when end of file from standard input is read. A '*c' is output to terminate a text line.

Read lines from standard input and output them on the given key stream channel
CHAN OF SP

from server

CHAN OF SP

to server

CHAN OF KS

for output

BYTE

spr.ok if the process was successful; otherwise >= spr.operation.failed meaning that reading standard input failed - see hostio.inc or iserver documentation for further details

PROC so.keystream.from.stdin (CHAN OF SP fs, ts, CHAN OF KS keys.out, BYTE result)
so.scrstream.to.ANSI
toansi.occ
39

Convert output in screen stream protocol to output using ANSI screen conventions.

Receipt of st.endstream will terminate this procedure. ANSI screen convertions are set out in ANSI X3.64-1979 "Additional controls for use with american national standard code for information interchange."

Convert output in screen stream protocol to output using ANSI screen conventions
CHAN OF SP

from server

CHAN OF SP

to server

CHAN OF SS

for input

PROC so.scrstream.to.ANSI (CHAN OF SP fs, ts, CHAN OF SS scrn)
ks.read.real32
srreal32.occ
50

Read a single precision real number from the given keystream.

A distinction must be made here between a character held in a byte and a character held in a word length quantity. Here the former is referred to as a character and the latter as a 'character' ( note the quotes ). All input up to a plus sign, a minus sign or a decimal digit is skipped. The real is terminated when anything other than a valid real 'character' is encountered, and it is this 'character' that is returned in char if char is not set to ft.number.error.

Read a single precision real number from the given keystream
CHAN OF KS

for input

REAL32

if char on exit is not ft.number.error or less than zero then the real number read in single precision IEEE format; otherwise undefined

INT

on entry: the first 'character' from the input to be read; on exit: ft.number.error if the 'characters' read did not form an occam syntax real number ( with optional plus or minus sign as first 'character', and permissible INT 'e' rather than INT 'E' ) or there were more than 24 'characters' read or the 'characters' formed an infinity; less than zero ( other than ft.number.error ) if there was an input error ( eg end of file read ); otherwise it is the 'character' that terminated the sequence of 'characters' read

PROC ks.read.real32 (CHAN OF KS source, REAL32 number, INT char)
get.real.string
srreal32.occ
77

Read a string representing a real number from the given keystream.

All input up to a plus sign, a minus sign, or a decimal digit is skipped. The string representing the real is terminated by a word length quantity that cannot form part of a real number. A lower case exponential symbol ( 'e' ) is alllowed.

Read a string representing a real number from the given keystream
CHAN OF KS

for input

INT

the number of characters in str

[]BYTE

the characters read, after initial skipping, are in the first len bytes of this variable, further bytes being undefined

INT

on entry: the first word length quantity of the input to be read; on exit: ft.number.error if the array str would have overflown; less than zero ( other than ft.number.error ) if there was an input error; otherwise the word length quantity that terminated the real number string

PROC get.real.string (CHAN OF KS in, INT len, []BYTE str, INT char)
ks.read.int
srint.occ
53

Read a decimal or hexadecimal integer from the given keystream.

A distinction must be made here between a character held in a byte and a character held in a word length quantity. Here the former is referred to as a character and the latter as a 'character' ( note the quotes ). Upper and lower case letters are permissible in a hexadecimal integer. All input up to a plus sign, a minus sign, a hash symbol, decimal digit, or a negative valued word is skipped. If it is the hash that is encountered first then it is a hexadecimal integer ( in two's complement form ) that is expected. If it is a negative valued word that is encountered then an input error has occurred and that value is returned in char. The integer is terminated when anything other than a valid digit ( hex and/or decimal, as the case may be ) is read, and it is this terminating quantity that is returned in char if the integer read is not invalid.

Read a decimal or hexadecimal integer from the given keystream
CHAN OF KS

for input

INT

if char is not ft.number.error or negative, the value of the integer read; otherwise undefined

INT

on entry: the first 'character' from the input to be read; on exit: ft.number.error if the integer read overflowed the range of INT; a negative value ( other than ft.number.error ) indicating an input error; otherwise the 'character' that terminated the integer

PROC ks.read.int (CHAN OF KS source, INT number, char)
ks.keystream.to.scrstream
keyscr.occ
38

Convert keystream protocol into screen stream protocol.

This procedure is terminated by the receipt of ft.terminated from the keyboard stream. For keystream values above ft.tag, only ft.tag + 1 to ft.tag + 8 are dealt with, values above ft.tag + 8, and ft.tag itself are translated into st.beep. Keystream values which are negative, other than ft.terminated, are ignored. Keystream values in the range [0, ft.tag) are passed straight through, other than '*c' which is translated into '*c' followed by '*n'.

Convert keystream protocol into screen stream protocol
CHAN OF KS

for input

CHAN OF SS

for output

PROC ks.keystream.to.scrstream (CHAN OF KS keyboard, CHAN OF SS scrn)
so.scrstream.to.file
sfile.occ
49

Write the data sent on the given screen stream to a file.

This routine terminates on receipt of st.endstream on scrn. What is written to the file is the bytes that follow tags ( for those tags that have them ), with the exception that the st.out.int tag has its following INT32 truncated to a BYTE.

Write the data sent on the given screen stream to a file
CHAN OF SP

from server

CHAN OF SP

to server

CHAN OF SS

for input

VAL []BYTE

the name of the file to be write to. The name of the file must fit exactly into filename, i.e. there are (SIZE filename) characters in the name of the file. A directory specification may form part of filename. If a file of the same name exists it is overwritten.

BYTE

spr.ok if the data sent on scrn was successfully written to the file filename; otherwise it takes on a value indicating what went wrong: spr.bad.packet.size filename too large (SIZE filename) > sp.max.openname.size spr.bad.name null file name >=spr.operation.failed see hostio.inc or iserver documentation for further details

PROC so.scrstream.to.file (CHAN OF SP fs, ts, CHAN OF SS scrn, VAL []BYTE filename, BYTE result)
ks.read.real64
srreal64.occ
50

Read a double precision real number from the given keystream.

A distinction must be made here between a character held in a byte and a character held in a word length quantity. Here the former is referred to as a character and the latter as a 'character' ( note the quotes ). All input up to a plus sign, a minus sign or a decimal digit is skipped. The real is terminated when anything other than a valid real 'character' is encountered, and it is this 'character' that is returned in char if char is not set to ft.number.error.

Read a double precision real number from the given keystream
CHAN OF KS

for input

REAL64

if char on exit is not ft.number.error or less than zero then the real number read in double precision IEEE format; otherwise undefined

INT

on entry: the first 'character' from the input to be read; on exit: ft.number.error if the 'characters' read did not form an occam syntax real number ( with optional plus or minus sign as first 'character', and permissible INT 'e' rather than INT 'E' ) or there were more than 30 'characters' read or the 'characters' formed an infinity; less than zero ( other than ft.number.error ) if there was an input error ( eg end of file read ); otherwise it is the 'character' that terminated the sequence of 'characters' read

PROC ks.read.real64 (CHAN OF KS source, REAL64 number, INT char)
get.real.string
srreal64.occ
77

Read a string representing a real number from the given keystream.

All input up to a '+', '-', or a decimal digit is skipped. The string representing the real is terminated by a word length quantity that cannot form part of a real number. A lower case exponential symbol ( 'e' ) is alllowed.

Read a string representing a real number from the given keystream
CHAN OF KS

for input

INT

the number of characters in str

[]BYTE

the characters read, after initial skipping, are in the first len bytes of this variable, further bytes being undefined

INT

on entry: the first word length quantity of the input to be read; on exit: ft.number.error if the array str would have overflown; less than zero ( other than ft.number.error ) if there was an input error; otherwise the word length quantity that terminated the real number string

PROC get.real.string (CHAN OF KS in, INT len, []BYTE str, INT char)
ss.write.real32
swreal32.occ
37

Format into ASCII characters and then write to the given screen stream a single precision real number.

If Ip, Dp and number are such that the resulting formatted form is longer than 24 characters this procedure will act as an invalid process.

Format into ASCII characters and then write to the given screen stream a single precision real number
CHAN OF SS

for output

VAL REAL32

the IEEE single precision real to format and write out

VAL INT

formatting values; see REAL32TOSTRING for their effect

PROC ss.write.real32 (CHAN OF SS scrn, VAL REAL32 number, VAL INT Ip, Dp)
ss.write.char
swsimple.occ
32

Send a character to the given screen stream.

Send a character to the given screen stream
CHAN OF SS

for output

VAL BYTE

the byte to send on the channel

PROC ss.write.char (CHAN OF SS scrn, VAL BYTE char)
ss.write.string
swsimple.occ
43

Send the given string on the given screen stream.

Send the given string on the given screen stream
CHAN OF SS

for output

VAL []BYTE

a string all the characters of which are sent on scrn.

PROC ss.write.string (CHAN OF SS scrn, VAL []BYTE str)
ss.write.nl
swsimple.occ
51

Send "*c*n" on the given screen stream.

Send "*c*n" on the given screen stream
CHAN OF SS

for output

PROC ss.write.nl (CHAN OF SS scrn)
ss.write.endstream
swsimple.occ
62

Write a st.endstream tag on the given screen stream

Write a st.endstream tag on the given screen stream
CHAN OF SS

for output

PROC ss.write.endstream (CHAN OF SS scrn)
ss.write.text.line
swsimple.occ
76

Send a text line on the given screen stream.

Send a text line on the given screen stream
CHAN OF SS

for output

VAL []BYTE

the string of characters to send. This string may be terminated by '*c' or not, but in either case, the last two characters written are "*c*n".

PROC ss.write.text.line (CHAN OF SS scrn, VAL []BYTE str)
ss.write.int
swint.occ
47

Write to the given screen stream an integer as decimal ASCII digits, padded out with leading spaces to the specified field width.

If the field width is too small for the number, then it is widened as necessary; a zero value for the field width will give minimum width; a negative field width is an error.

Write to the given screen stream an integer as decimal ASCII digits, padded out with leading spaces to the specified field width
CHAN OF SS

for output

VAL INT

the integer that is desired to be written

VAL INT

the desired field width of the string

PROC ss.write.int (CHAN OF SS scrn, VAL INT number, width )
ss.write.hex.int
swint.occ
88

Write an integer as hexadecimal ASCII characters preceded by the '#' character to the given screen stream.

Write an integer as hexadecimal ASCII characters preceded by the '#' character to the given screen stream
CHAN OF SS

for output

VAL INT

the integer to write out

VAL INT

the field width to use when writing the hex; if width is larger than the size of the number then the number is padded with leading 0's or F's as appropriate; if width is smaller than the size of the number then the number is truncated at the left to width characters; width does not take the '#' into account. A negative field width is an error.

PROC ss.write.hex.int (CHAN OF SS scrn, VAL INT number, width )
so.scrstream.to.stdout
sstdout.occ
43

Write the data sent on the given screen stream to standard out.

This routine terminates on receipt of st.endstream on scrn. What is written to the file is the bytes that follow tags ( for those tags that have them ), with the exception that the st.out.int tag has its following INT32 truncated to a BYTE, and that the st.beep tag is transformed into '*#07'.

Write the data sent on the given screen stream to standard out
CHAN OF SP

from server

CHAN OF SP

to server

CHAN OF SS

for input

BYTE

spr.ok if the data sent on scrn was successfully written to standard out; otherwise is >= spr.operation.failed in which case see hostio.inc or iserver documentation for further details

PROC so.scrstream.to.stdout (CHAN OF SP fs, ts, CHAN OF SS scrn, BYTE result)
so.scrstream.to.TVI920
totvi.occ
36

Convert output in screen stream protocol to output using TVI920 screen conventions.

Receipt of st.endstream will terminate this procedure.

Convert output in screen stream protocol to output using TVI920 screen conventions
CHAN OF SP

from server

CHAN OF SP

to server

CHAN OF SS

for input

PROC so.scrstream.to.TVI920 (CHAN OF SP fs, ts, CHAN OF SS scrn)
ks.read.int64
srint64.occ
53

Read a 64-bit decimal or hexadecimal integer from the given keystream.

A distinction must be made here between a character held in a byte and a character held in a word length quantity. Here the former is referred to as a character and the latter as a 'character' ( note the quotes ). Upper and lower case letters are permissible in a hexadecimal integer. All input up to a plus sign, a minus sign, a hash symbol, decimal digit, or a negative valued word is skipped. If it is the hash that is encountered first then it is a hexadecimal integer ( in two's complement form ) that is expected. If it is a negative valued word that is encountered then an input error has occurred and that value is returned in char. The integer is terminated when anything other than a valid digit ( hex and/or decimal, as the case may be ) is read, and it is this terminating quantity that is returned in char if the integer read is not invalid.

Read a 64-bit decimal or hexadecimal integer from the given keystream
CHAN OF KS

for input

INT64

if char is not ft.number.error, the value of the integer read; otherwise undefined

INT

on entry: the first 'character' from the input to be read; on exit: ft.number.error if the integer read overflowed the range of INT64; otherwise the 'character' that terminated the integer

PROC ks.read.int64 (CHAN OF KS source, INT64 number, INT char)
so.keystream.from.kbd
kkbd.occ
42

Read keys from the keyboard at full speed if they are available, otherwise waiting a given interval between polls of the keyboard, and output them as integers on the given key stream.

On termination, ft.terminated is sent on keys.out.

Read keys from the keyboard at full speed if they are available, otherwise waiting a given interval between polls of the keyboard, and output them as integers on the given key stream
CHAN OF SP

from server

CHAN OF SP

to server

CHAN OF KS

for output

CHAN OF BOOL

for input; FALSE or TRUE received on this channel terminates this procedure

VAL INT

this procedure polls the keyboard at intervals of ticks.per.poll low priority transputer clock cycles if keys are not available; a value of less than or equal to zero is an error

PROC so.keystream.from.kbd (CHAN OF SP fs, ts, CHAN OF KS keys.out, CHAN OF BOOL stopper, VAL INT ticks.per.poll)
graphics3d

A library for programming simple 3D graphics in occam-pi.

This library provides for simple 3D graphics in occam-pi, using simple rasters.

Note: the general [serial] techniques/algorithms used in this library are based on code from lightsrc.cpp and glenz.cpp by Marcus Lindblom.

A library for programming simple 3D graphics in occam-pi
G3D.MAX.POLY.POINTS
graphics3d.inc
41

Maximum number of points in a polygon (see ).

Maximum number of points in a polygon (see )
VAL INT G3D.MAX.POLY.POINTS
G3D.MAX.SCAN.HEIGHT
graphics3d.inc
44

Maximum height of any particular polygon.

Maximum height of any particular polygon
VAL INT G3D.MAX.SCAN.HEIGHT
G3D.RENDER.MODE
graphics3d.inc
46

polygon rendering modes.

polygon rendering modes
G3D.RENDER.MODE.NONE
graphics3d.inc
47

Constant shading.

Constant shading
VAL INT G3D.RENDER.MODE.NONE
G3D.RENDER.MODE.GLENZ
graphics3d.inc
48

Glenz-effect shading.

Glenz-effect shading
VAL INT G3D.RENDER.MODE.GLENZ
G3D.RENDER.MODE.NORM
graphics3d.inc
49

Normal vector based shading.

Normal vector based shading
VAL INT G3D.RENDER.MODE.NORM
G3D.ROTATE.MODE
graphics3d.inc
51

point/polygon rotation modes.

point/polygon rotation modes
G3D.ROTATE.MODE.NONE
graphics3d.inc
52

No rotation.

No rotation
VAL INT G3D.ROTATE.MODE.NONE
G3D.ROTATE.MODE.DEMO
graphics3d.inc
53

Demo-effect rotations.

Demo-effect rotations
VAL INT G3D.ROTATE.MODE.DEMO
G3D.ROTATE.MODE.X
graphics3d.inc
54

Rotate on X axis.

Rotate on X axis
VAL INT G3D.ROTATE.MODE.X
G3D.ROTATE.MODE.NX
graphics3d.inc
55

Negative rotate on X axis.

Negative rotate on X axis
VAL INT G3D.ROTATE.MODE.NX
G3D.ROTATE.MODE.Y
graphics3d.inc
56

Rotate on Y axis.

Rotate on Y axis
VAL INT G3D.ROTATE.MODE.Y
G3D.ROTATE.MODE.NY
graphics3d.inc
57

Negative rotate on Y axis.

Negative rotate on Y axis
VAL INT G3D.ROTATE.MODE.NY
G3D.ROTATE.MODE.Z
graphics3d.inc
58

Rotate on Z axis.

Rotate on Z axis
VAL INT G3D.ROTATE.MODE.Z
G3D.ROTATE.MODE.NZ
graphics3d.inc
59

Negative rotate on Z axis.

Negative rotate on Z axis
VAL INT G3D.ROTATE.MODE.NZ
G3D.POINT3
graphics3d.inc
65

Real point in 3D space (REAL32s).

Real point in 3D space (REAL32s)
DATA TYPE G3D.POINT3
G3D.POINT2.3
graphics3d.inc
71

Integer point in 2D space, retains original Z as a REAL32.

Integer point in 2D space, retains original Z as a REAL32
DATA TYPE G3D.POINT2.3
G3D.POINT2
graphics3d.inc
78

Integer point in 2D space.

Integer point in 2D space
DATA TYPE G3D.POINT2
G3D.POLY
graphics3d.inc
85

General polygon in 2D space, retails original Z as REAL32s.

General polygon in 2D space, retails original Z as REAL32s
DATA TYPE G3D.POLY
G3D.POLY.SCAN
graphics3d.inc
96

Scan-line converted polygon in 2D space.

Scan-line converted polygon in 2D space
DATA TYPE G3D.POLY.SCAN
G3D.TRIG
graphics3d.inc
109

Generator trigger channel-type.

Generator trigger channel-type
CHAN TYPE G3D.TRIG
G3D.GEN.CONTROL
graphics3d.inc
115

Polygon points generator control.

Polygon points generator control
PROTOCOL G3D.GEN.CONTROL
reset
graphics3d.inc
117

Reset generator to default state.

Reset generator to default state
reset
add.scale
graphics3d.inc
118

Add to the current scale.

Add to the current scale
[3]REAL32
add.scale; [3]REAL32
set.scale
graphics3d.inc
119

Absolutely set the scale.

Absolutely set the scale
[3]REAL32
set.scale; [3]REAL32
add.trans
graphics3d.inc
120

Add to the current translation.

Add to the current translation
[3]REAL32
add.trans; [3]REAL32
set.trans
graphics3d.inc
121

Absolutely set the translation.

Absolutely set the translation
[3]REAL32
set.trans; [3]REAL32
set.trigger
graphics3d.inc
122

Set trigger control.

Set trigger control
BOOL
G3D.TRIG?
set.trigger; BOOL; G3D.TRIG?
G3D.ROT.CONTROL
graphics3d.inc
126

Points rotation control.

Points rotation control
PROTOCOL G3D.ROT.CONTROL
reset
graphics3d.inc
128

Reset rotation to default state.

Reset rotation to default state
reset
add.increment
graphics3d.inc
129

Add to the increment.

Add to the increment
REAL32
add.increment; REAL32
set.increment
graphics3d.inc
130

Absolutely set the increment.

Absolutely set the increment
REAL32
set.increment; REAL32
set.angle
graphics3d.inc
131

Absolutely set the angle of rotation.

Absolutely set the angle of rotation
REAL32
set.angle; REAL32
set.mode
graphics3d.inc
132

Set the rotation mode (see ).

Set the rotation mode (see )
INT
set.mode; INT
G3D.PRJ.CONTROL
graphics3d.inc
136

Polygon points 3D-to-2D projection control.

Polygon points 3D-to-2D projection control
PROTOCOL G3D.PRJ.CONTROL
reset
graphics3d.inc
138

Reset projector to default state.

Reset projector to default state
reset
set.scaling
graphics3d.inc
139

Set 2D scaling.

Set 2D scaling
[2]REAL32
set.scaling; [2]REAL32
set.zdepth
graphics3d.inc
140

Set Z depth offset (pushes scene away from camera).

Set Z depth offset (pushes scene away from camera)
REAL32
set.zdepth; REAL32
set.2dshift
graphics3d.inc
141

Set 2D translation.

Set 2D translation
[2]INT
set.2dshift; [2]INT
set.3dshift
graphics3d.inc
142

Set 3D translation (applied before projection).

Set 3D translation (applied before projection)
[3]REAL32
set.3dshift; [3]REAL32
G3D.PGN.CONTROL
graphics3d.inc
146

Polygon generator control.

Polygon generator control
PROTOCOL G3D.PGN.CONTROL
reset
graphics3d.inc
148

Reset polygon generator to default state.

Reset polygon generator to default state
reset
set.trimap
graphics3d.inc
149

Generate triangular polygons only.

Generate triangular polygons only
BOOL
set.trimap; BOOL
set.backfaces
graphics3d.inc
150

Whether back faces of solid objects should be generated.

Whether back faces of solid objects should be generated
BOOL
set.backfaces; BOOL
set.face.colour
graphics3d.inc
151

Set individual face colour.

Set individual face colour
INT
INT
set.face.colour; INT; INT
set.face.colours
graphics3d.inc
152

Set all face colours.

Set all face colours
MOBILE []INT
set.face.colours; MOBILE []INT
G3D.PSC.CONTROL
graphics3d.inc
156

Polygon scan-line generator control.

Polygon scan-line generator control
PROTOCOL G3D.PSC.CONTROL
reset
graphics3d.inc
158

Resets scan-line generator to default state.

Resets scan-line generator to default state
reset
G3D.RDR.CONTROL
graphics3d.inc
162

Polygon render (shader) control.

Polygon render (shader) control
PROTOCOL G3D.RDR.CONTROL
reset
graphics3d.inc
164

Resets shader to default state.

Resets shader to default state
reset
set.mode
graphics3d.inc
165

Set shader mode (see ).

Set shader mode (see )
INT
set.mode; INT
G3D.ALL.CONTROL
graphics3d.inc
169

Overall control for graphics pipeline.

Overall control for graphics pipeline
PROTOCOL G3D.ALL.CONTROL
reset.all
graphics3d.inc
171

Reset all components to default state.

Reset all components to default state
reset.all
G3D.TMR.CONTROL
graphics3d.inc
175

Graphics pipeline speed control.

Graphics pipeline speed control
PROTOCOL G3D.TMR.CONTROL
reset
graphics3d.inc
177

Resets the timer control.

Resets the timer control
reset
pause
graphics3d.inc
178

Pause/unpause the rasters flowing through the network.

Pause/unpause the rasters flowing through the network
pause
faster
graphics3d.inc
179

Go faster.

Go faster
faster
slower
graphics3d.inc
180

Go slower.

Go slower
slower
set.fps
graphics3d.inc
181

Set frames-per-second absolutely.

Set frames-per-second absolutely
INT
set.fps; INT
G3D.RENDER.ENGINE.LINK
graphics3d.inc
190

Graphics pipeline link protocol.

Graphics pipeline link protocol
PROTOCOL G3D.RENDER.ENGINE.LINK
raster
graphics3d.inc
192

Raster to render on and forward.

Raster to render on and forward
RASTER
raster; RASTER
set.next
graphics3d.inc
193

Set the next renderer in the pipeline.

Set the next renderer in the pipeline
INT
G3D.RENDER.ENGINE!
set.next; INT; G3D.RENDER.ENGINE!
link?
graphics3d.inc
200

Link channel.

Link channel
CHAN G3D.RENDER.ENGINE.LINK
raster.buffer
rasterutil.occ
30

Simple raster buffer. Basic raster buffer process.

Simple raster buffer
CHAN RASTER

Rasters in

CHAN RASTER

Rasters out

PROC raster.buffer (CHAN RASTER in?, out!)
raster.timed.buffer
rasterutil.occ
46

Timed raster buffer. Basic raster buffer process, but limits speed through at specified number of frames-per-second.

Timed raster buffer
CHAN RASTER

Rasters in

CHAN RASTER

Rasters out

VAL INT

Frames per second

CHAN G3D.TMR.CONTROL

Control channel

PROC raster.timed.buffer (CHAN RASTER in?, out!, VAL INT fps, CHAN G3D.TMR.CONTROL ctrl?)
raster.fader
rasterutil.occ
104

Fades rasters. Raster buffer that reduces the colour level of each of the components.

Fades rasters
CHAN RASTER

Rasters in

CHAN RASTER

Rasters out

PROC raster.fader (CHAN RASTER in?, out!)
raster.clearer
rasterutil.occ
126

Clears rasters. Raster buffer that clears rasters as they go through.

Clears rasters
CHAN RASTER

Rasters in

CHAN RASTER

Rasters out

PROC raster.clearer (CHAN RASTER in?, out!)
rotate.orchestra1
g3dnets.occ
35

Orchestrates components.

Orchestrates components
CHAN G3D.ROT.CONTROL

Rotation control out.

PROC rotate.orchestra1 (CHAN G3D.ROT.CONTROL rot.out!)
planar.path
g3dnets.occ
71

Moves a 3D object around a plane following an elliptical path.

Moves a 3D object around a plane following an elliptical path
CHAN G3D.PRJ.CONTROL

Projection control.

VAL REAL32

X-radius of path.

VAL REAL32

Z-radius of path.

VAL REAL32

Tilt in XY plane of the path.

VAL REAL32

Tilt in XZ plane of the path.

VAL INT

Slow-down setting

VAL [3]REAL32

Initial position.

PROC planar.path (CHAN G3D.PRJ.CONTROL out!, VAL REAL32 xrad, zrad, pangle, iangle, VAL INT islow, VAL [3]REAL32 pos)
glenz.network
g3dnets.occ
101

Implements a basic "Glenz cube".

Implements a basic "Glenz cube"
G3D.RENDER.ENGINE?

Render link.

VAL INT

Width of raster.

VAL INT

Height of raster.

PROC glenz.network (G3D.RENDER.ENGINE? rlink.in, VAL INT width, height)
glenz.network.spawn
g3dnets.occ
137

Dynamically spawns a new 'glenz.network'.

Dynamically spawns a new 'glenz.network'
VAL INT

Raster width.

VAL INT

Raster height.

CHAN G3D.RENDER.ENGINE!

Channel to communicate new object link.

PROC glenz.network.spawn (VAL INT width, height, CHAN G3D.RENDER.ENGINE! new.link!)
glenz.network2
g3dnets.occ
153

Implements a basic "Glenz cube".

Implements a basic "Glenz cube"
G3D.RENDER.ENGINE?

Render link.

VAL INT

Width of raster.

VAL INT

Height of raster.

PROC glenz.network2 (G3D.RENDER.ENGINE? rlink.in, VAL INT width, height)
cubepoints.generator
graphics3d.occ
88

Cube point generator. Generates a constant stream of points that represent a cube in 3D space.

Cube point generator
CHAN MOBILE []G3D.POINT3

Points generated.

CHAN G3D.GEN.CONTROL

Control channel.

PROC cubepoints.generator (CHAN MOBILE []G3D.POINT3 out!, CHAN G3D.GEN.CONTROL ctrl?)
fbypoints.generator
graphics3d.occ
172

Inmos butterfly logo generator. The pixel positions were generated by tracing from an Inmos promotional video showing the butterflies running on a Transputer network.

Inmos butterfly logo generator
CHAN MOBILE []G3D.POINT3

Points generated.

CHAN G3D.GEN.CONTROL

Control channel.

PROC fbypoints.generator (CHAN MOBILE []G3D.POINT3 out!, CHAN G3D.GEN.CONTROL ctrl?)
points3d.rotate
graphics3d.occ
371

Point rotator. Rotates an arbitrary set of points around the origin, such that it passes through the same sequence of moves repeatedly (e.g. for a spinning cube). Can also be used for static rotation when set with a zero increment.

Point rotator
CHAN MOBILE []G3D.POINT3

3D points in.

CHAN MOBILE []G3D.POINT3

3D points out.

CHAN G3D.ROT.CONTROL

Control channel.

PROC points3d.rotate (CHAN MOBILE []G3D.POINT3 in?, out!, CHAN G3D.ROT.CONTROL ctrl?)
points.3d.to.2d3
graphics3d.occ
501

Projects 3D points into 2D, preserves Z information. Maps a set of 3D points down into a set of 2D points, preserving the Z depth information for later operations.

Projects 3D points into 2D, preserves Z information
CHAN MOBILE []G3D.POINT3

3D points in.

CHAN MOBILE []G3D.POINT2.3

2D3 points out.

CHAN G3D.PRJ.CONTROL

Control channel.

PROC points.3d.to.2d3 (CHAN MOBILE []G3D.POINT3 in?, CHAN MOBILE []G3D.POINT2.3 out!, CHAN G3D.PRJ.CONTROL ctrl?)
cubify.points
graphics3d.occ
753

Generates cube polygons from cube points. Expects to receive 8 points at a time, and from these generates a set of polygons that represent a cube. Characteristics are controllable through the control channel (e.g. skip hidden surfaces).

Generates cube polygons from cube points
CHAN MOBILE []G3D.POINT2.3

Points in (2D with Z-depth).

CHAN MOBILE []G3D.POLY

Polygons out.

CHAN G3D.PGN.CONTROL

Control channel.

PROC cubify.points (CHAN MOBILE []G3D.POINT2.3 in?, CHAN MOBILE []G3D.POLY out!, CHAN G3D.PGN.CONTROL ctrl?)
flutterby.points
graphics3d.occ
773

Generates polygons representing the Inmos style butterfly logo. Expects to receive 30 points at a time, and from these generates a set of polygons that represent the butterfly. Only the colour is controllable through the ctrl? channel.

Generates polygons representing the Inmos style butterfly logo
CHAN MOBILE []G3D.POINT2.3

Points in (2D with Z-depth).

CHAN MOBILE []G3D.POLY

Polygons out.

CHAN G3D.PGN.CONTROL

Control channel.

PROC flutterby.points (CHAN MOBILE []G3D.POINT2.3 in?, CHAN MOBILE []G3D.POLY out!, CHAN G3D.PGN.CONTROL ctrl?)
poly.scanlines
graphics3d.occ
1013

Converts polygons to scan-line data. Expects to receive sets of polygons on its input, which it then transforms into a set of G3D.POLY.SCAN structures.

Converts polygons to scan-line data
CHAN MOBILE []G3D.POLY

Polygons input.

CHAN MOBILE []G3D.POLY.SCAN

Scan-line data output.

CHAN G3D.PSC.CONTROL

Control channel.

PROC poly.scanlines (CHAN MOBILE []G3D.POLY in?, CHAN MOBILE []G3D.POLY.SCAN out!, CHAN G3D.PSC.CONTROL ctrl?)
render.polyscans
graphics3d.occ
1300

Renders polygon scan-line data onto a raster.

Renders polygon scan-line data onto a raster
CHAN MOBILE []G3D.POLY.SCAN

Polygon scan-line data input.

G3D.RENDER.ENGINE?

Raster I/O.

CHAN G3D.RDR.CONTROL

Control channel.

PROC render.polyscans (CHAN MOBILE []G3D.POLY.SCAN data?, G3D.RENDER.ENGINE? rlink.in, CHAN G3D.RDR.CONTROL ctrl?)
render.polyframe
graphics3d.occ
1317

Renders polygons as a series of lines (wireframe).

Renders polygons as a series of lines (wireframe)
CHAN MOBILE []G3D.POLY

Polygons input.

G3D.RENDER.ENGINE?

Raster I/O.

CHAN G3D.RDR.CONTROL

Control channel.

PROC render.polyframe (CHAN MOBILE []G3D.POLY data?, G3D.RENDER.ENGINE? rlink.in, CHAN G3D.RDR.CONTROL ctrl?)
raster.chain.head
graphics3d.occ
1540

Head of the raster render chain.

Head of the raster render chain
CHAN RASTER

Rasters in.

G3D.RENDER.ENGINE!

Head of raster render chain.

CHAN G3D.RENDER.ENGINE!

Channel on which new rendering engines are added.

VAL BOOL

Whether to fade (TRUE) or clear (FALSE) rasters.

PROC raster.chain.head (CHAN RASTER in?, G3D.RENDER.ENGINE! head, CHAN G3D.RENDER.ENGINE! new.link?, VAL BOOL fade)
raster.chain.tail
graphics3d.occ
1582

Tail of the raster render chain.

Tail of the raster render chain
CHAN RASTER

Rasters out.

G3D.RENDER.ENGINE?

Tail of raster render chain.

PROC raster.chain.tail (CHAN RASTER out!, G3D.RENDER.ENGINE? tail)
raster.chain
graphics3d.occ
1603

Implements raster render chain.

Implements raster render chain
CHAN RASTER

Rasters in.

CHAN RASTER

Rasters out.

CHAN G3D.RENDER.ENGINE!

Channel on which new rendering engines are added.

VAL BOOL

Whether to fade (TRUE) or clear (FALSE) rasters.

PROC raster.chain (CHAN RASTER in?, out!, CHAN G3D.RENDER.ENGINE! new.link?, VAL BOOL fade)
g3d.point3.delta
g3dutil.occ
32

Delta for mobile arrays of the type.

Delta for mobile arrays of the type
CHAN MOBILE []G3D.POINT3

Points in.

CHAN MOBILE []G3D.POINT3

Points out.

CHAN MOBILE []G3D.POINT3

Points out.

PROC g3d.point3.delta (CHAN MOBILE []G3D.POINT3 in?, out.0!, out.1!)
g3d.point2.3.delta
g3dutil.occ
49

Delta for mobile arrays of the type.

Delta for mobile arrays of the type
CHAN MOBILE []G3D.POINT2.3

Points in.

CHAN MOBILE []G3D.POINT2.3

Points out.

CHAN MOBILE []G3D.POINT2.3

Points out.

PROC g3d.point2.3.delta (CHAN MOBILE []G3D.POINT2.3 in?, out.0!, out.1!)
g3d.point2.delta
g3dutil.occ
65

Delta for mobile arrays of the type.

Delta for mobile arrays of the type
CHAN MOBILE []G3D.POINT2

Points in.

CHAN MOBILE []G3D.POINT2

Points out.

CHAN MOBILE []G3D.POINT2

Points out.

PROC g3d.point2.delta (CHAN MOBILE []G3D.POINT2 in?, out.0!, out.1!)
g3d.poly.delta
g3dutil.occ
81

Delta for mobile arrays of the type.

Delta for mobile arrays of the type
CHAN MOBILE []G3D.POLY

Polygons in.

CHAN MOBILE []G3D.POLY

Polygons out.

CHAN MOBILE []G3D.POLY

Polygons out.

PROC g3d.poly.delta (CHAN MOBILE []G3D.POLY in?, out.0!, out.1!)
g3d.poly.scan.delta
g3dutil.occ
97

Delta for mobile arrays of the type.

Delta for mobile arrays of the type
CHAN MOBILE []G3D.POLY.SCAN

Polygon scans in.

CHAN MOBILE []G3D.POLY.SCAN

Polygon scans out.

CHAN MOBILE []G3D.POLY.SCAN

Polygon scans out.

PROC g3d.poly.scan.delta (CHAN MOBILE []G3D.POLY.SCAN in?, out.0!, out.1!)
g3d.gen.control.delta
g3dutil.occ
114

Delta for protocol.

Delta for protocol
CHAN G3D.GEN.CONTROL

Commands in.

CHAN G3D.GEN.CONTROL

Commands out.

CHAN G3D.GEN.CONTROL

Commands out.

PROC g3d.gen.control.delta (CHAN G3D.GEN.CONTROL in?, out.0!, out.1!)
g3d.rot.control.delta
g3dutil.occ
161

Delta for protocol.

Delta for protocol
CHAN G3D.ROT.CONTROL

Commands in.

CHAN G3D.ROT.CONTROL

Commands out.

CHAN G3D.ROT.CONTROL

Commands out.

PROC g3d.rot.control.delta (CHAN G3D.ROT.CONTROL in?, out.0!, out.1!)
g3d.prj.control.delta
g3dutil.occ
197

Delta for protocol.

Delta for protocol
CHAN G3D.PRJ.CONTROL

Commands in.

CHAN G3D.PRJ.CONTROL

Commands out.

CHAN G3D.PRJ.CONTROL

Commands out.

PROC g3d.prj.control.delta (CHAN G3D.PRJ.CONTROL in?, out.0!, out.1!)
g3d.pgn.control.delta
g3dutil.occ
233

Delta for protocol.

Delta for protocol
CHAN G3D.PGN.CONTROL

Commands in.

CHAN G3D.PGN.CONTROL

Commands out.

CHAN G3D.PGN.CONTROL

Commands out.

PROC g3d.pgn.control.delta (CHAN G3D.PGN.CONTROL in?, out.0!, out.1!)
g3d.psc.control.delta
g3dutil.occ
269

Delta for protocol.

Delta for protocol
CHAN G3D.PSC.CONTROL

Commands in.

CHAN G3D.PSC.CONTROL

Commands out.

CHAN G3D.PSC.CONTROL

Commands out.

PROC g3d.psc.control.delta (CHAN G3D.PSC.CONTROL in?, out.0!, out.1!)
g3d.rdr.control.delta
g3dutil.occ
285

Delta for protocol.

Delta for protocol
CHAN G3D.RDR.CONTROL

Commands in.

CHAN G3D.RDR.CONTROL

Commands out.

CHAN G3D.RDR.CONTROL

Commands out.

PROC g3d.rdr.control.delta (CHAN G3D.RDR.CONTROL in?, out.0!, out.1!)
fmtout

Formatted output utilities.

Formatted output utilities
sock

Socket library.

The occam socket library uses the blocking system call functionality within KRoC to allow socket operations to be performed asynchronously.

The interfaces in this module are wrappers around the POSIX sockets interface; see socket(2) and related manual pages for more information on their semantics. The wrappers are not complete; in particular, protocols other than IPv4 TCP and UDP are not currently supported.

It is sometimes useful to be able to terminate a blocking call before it finishes, or to `ALT` on its completion. To support this, some `PROC`s are provided in both "normal" and "`ALT`able" versions. The `ALT`able versions have two extra channel parameters which may be used to terminate the call.

To terminate a blocking call, the process running in parallel with the call sends a signal down the `kill` channel. It should then await a response from the `response` channel indicating the outcome of the kill:

- `-2`: the call had completed normally before it received the kill signal
- `-1`: the call had already finished, and the kill had no effect
- `0`: the call was terminated successfully
- `1`: the call was in the process of terminating, and the kill had no effect
- `2`: the call had started terminating, and the kill had no effect

When the call terminates normally, i.e. upon completion, a value of `-2` is sent down the `response` channel. The process should indicate to the blocking call that it may terminate by sending a signal down the `kill` channel. The net result is that however the call terminates, a value should be expected from `response`, and a signal should be sent down `kill`.

A read from a socket, with a timeout, may be implemented thus:

`CHAN OF BOOL kill: CHAN OF INT response: PAR --{{{ blocking call socket.altable.read (kill, response, sock, buffer, bytes, result) --}}} --{{{ wait for response or timeout TIMER tim: INT t: SEQ tim ? t ALT --{{{ incoming response for normal termination INT any: response ? any kill ! TRUE --}}} --{{{ timeout (after 1 second) tim ? AFTER (t PLUS 1000000) INT k.result: SEQ kill ! TRUE response ? k.result -- take action on k.result if necessary --}}} --}}}`

To use this library:

`#INCLUDE "sock.module"`

Socket library
socket.create
socklib.occ
181

Create a socket. If the socket is successfully created, a valid file descriptor will be in the `fd` field of the returned socket, otherwise it will contain `-1`. Example:

`SOCKET sock: SEQ create.socket (sock, PF.INET, SOCK.STREAM, IPPROTO.TCP) IF sock[fd] = -1 SEQ -- failed to create the socket STOP TRUE SKIP`

Create a socket
RESULT SOCKET

The returned socket

VAL INT

Address family (one of )

VAL INT

Socket type (one of )

VAL INT

IP protocol (one of )

PROC socket.create (RESULT SOCKET sock, VAL INT domain, VAL INT type, VAL INT protocol)
socket.close
socklib.occ
194

Close a socket. No result is provided. The socket is shut down before being closed to cause the return of any parallel readers/writers.

Close a socket
SOCKET

The socket to close

PROC socket.close (SOCKET sock)
socket.read
socklib.occ
213

Read from a socket. Read as much data as is currently available from a socket into a buffer.

Read from a socket
SOCKET

Socket to read from

[]BYTE

Buffer to write data to

VAL INT

The maximum amount of data to read

INT

`-1` on error, `0` on end-of-file (remote connection closed), otherwise the number of bytes read into `buffer` (which may be less than `count`)

PROC socket.read (SOCKET sock, []BYTE buffer, VAL INT count, INT result)
socket.fullread
socklib.occ
230

Read a fixed number of bytes from a socket. Read exactly `count` bytes from a socket into a buffer. This is equivalent to repeatedly calling until the requested number of bytes have been read.

Read a fixed number of bytes from a socket
SOCKET

Socket to read from

[]BYTE

Buffer to write data to

VAL INT

The amount of data to read

INT

`-1` on error, `0` on end-of-file (remote connection closed), otherwise the number of bytes read into `buffer`

PROC socket.fullread (SOCKET sock, []BYTE buffer, VAL INT count, INT result)
socket.write
socklib.occ
243

Write to a socket. Write as much data as possible from the buffer to the socket.

Write to a socket
SOCKET

Socket to write to

VAL []BYTE

Buffer to read from

INT

`-1` on error, otherwise the number of bytes written (which may be less than the length of `buffer`)

PROC socket.write (SOCKET sock, VAL []BYTE buffer, INT result)
socket.fullwrite
socklib.occ
258

Write a fixed number of bytes to a socket. Write the entirety of `buffer` to a socket. This is equivalent to repeatedly calling `socket.write` until the entire buffer has been written.

Write a fixed number of bytes to a socket
SOCKET

Socket to write to

VAL []BYTE

Buffer to read from

INT

`-1` on error, otherwise the number of bytes written

PROC socket.fullwrite (SOCKET sock, VAL []BYTE buffer, INT result)
socket.write.addr
socklib.occ
277

Write data from memory to a socket (unsafe). Similar to , but reading data directly from the given memory address.

As this operation accesses memory directly, it is inherently unsafe, and should not be used in most occam programs.

Write data from memory to a socket (unsafe)
SOCKET

Socket to write to

VAL INT

Memory address to read from

VAL INT

Maximum number of bytes to write

INT

`-1` on error, otherwise the number of bytes written (which may be less than `size`)

PROC socket.write.addr (SOCKET sock, VAL INT addr, size, INT result)
socket.fullwrite.addr
socklib.occ
296

Write a fixed amount of data from memory to a socket (unsafe). Similar to , but reading data directly from the given memory address.

As this operation accesses memory directly, it is inherently unsafe, and should not be used in most occam programs.

Write a fixed amount of data from memory to a socket (unsafe)
SOCKET

Socket to write to

VAL INT

Memory address to read from

VAL INT

Number of bytes to write

INT

`-1` on error, otherwise the number of bytes written

PROC socket.fullwrite.addr (SOCKET sock, VAL INT addr, size, INT result)
socket.connect
socklib.occ
315

Connect a socket. Attempt to make a connection to the remote port specified in `sock`.

Connect a socket
SOCKET

Socket to connect

INT

`-1` if an error occured, `0` otherwise

PROC socket.connect (SOCKET sock, INT result)
socket.listen
socklib.occ
333

Make a socket listen for incoming connections. The socket should have already been bound to a host/port combination using . After this, can be used to accept incoming connections.

Make a socket listen for incoming connections
SOCKET

Socket to listen

VAL INT

The number of incoming connections that may be queued by the kernel while the program is not accepting them; most operating systems impose arbitrary limits on this, so changing it will have little effect

INT

`-1` if an error occured, otherwise the file descriptor of the accepted socket

PROC socket.listen (SOCKET sock, VAL INT backlog, INT result)
socket.bind
socklib.occ
347

Bind a socket to a local address. Set the local address of a socket from the fields in `sock`. `sock[local.addr]` should be a valid address for one of the host's interfaces, or the constant `INADDR.ANY` to specify all interfaces.

Bind a socket to a local address
SOCKET

Socket to bind

INT

`-1` if an error occured, `0` otherwise

PROC socket.bind (SOCKET sock, INT result)
socket.accept
socklib.occ
362

Accept an incoming connection on a listening socket. The socket must already have had and called on it successfully. The returned socket `client` is the newly-accepted connection; its fields are filled in with the details of the new connection.

Accept an incoming connection on a listening socket
SOCKET

Socket to accept a connection from

SOCKET

New socket for the accepted connection

INT

`-1` if an error occured, `0` otherwise

PROC socket.accept (SOCKET sock, SOCKET client, INT result)
socket.sendto
socklib.occ
381

Send a datagram message through a socket. This is used to send messages over connectionless protocols like UDP. The destination host and port are specified in the `sock` record; the host can be specified as to broadcast to all hosts on the local network, provided the option has been set on the socket.

Send a datagram message through a socket
SOCKET

Socket to send datagram from

VAL []BYTE

Message to send

VAL INT

Bitwise or of flags (normally either `0` or )

INT

`-1` if an error occured, otherwise the number of bytes sent

PROC socket.sendto (SOCKET sock, VAL []BYTE message, VAL INT flags, INT result)
socket.recvfrom
socklib.occ
399

Receive a datagram from a socket. This is used to receive messages over connectionless protocols like UDP. The socket must have been bound to a local address. The host and port from which the message was received are filled in in the `sock` record.

Receive a datagram from a socket
SOCKET

Socket to receive datagram from

[]BYTE

Buffer for the received datagram

VAL INT

Bitwise or of flags (normally either `0` or )

INT

`-1` if an error occurred, otherwise the number of bytes received

PROC socket.recvfrom (SOCKET sock, []BYTE message, VAL INT flags, INT result)
socket.setsockopt
socklib.occ
415

Set a socket option. This only supports options with integer arguments, such as and .

Set a socket option
SOCKET

Socket to set options upon

VAL INT

Option level (one of )

VAL INT

Option to set (protocol-dependent; usually one of or )

VAL INT

New value for the option

INT

`-1` if an error occured, `0` otherwise

PROC socket.setsockopt (SOCKET sock, VAL INT level, VAL INT option, VAL INT value, INT result)
socket.getsockopt
socklib.occ
431

Get a socket option. This only supports options with integer arguments, such as and .

Get a socket option
SOCKET

Socket to get options from

VAL INT

Option level (one of )

VAL INT

Option to get (protocol-dependent; usually one of or )

INT

The current value of the option

INT

`-1` if an error occured, `0` otherwise

PROC socket.getsockopt (SOCKET sock, VAL INT level, VAL INT option, INT value, INT result)
socket.error
socklib.occ
448

Get last error as a string. This returns a human-readable string describing the last error that occurred upon `sock`.

The "not connected" error (`ENOTCONN`) can come as a result of attempting to use a where the `fd` field is set to `-1`.

Get last error as a string
SOCKET

Socket to get error from

[]BYTE

Buffer to write error string into

INT

The length of the string returned

PROC socket.error (SOCKET sock, []BYTE buffer, INT length)
socket.shutdown
socklib.occ
461

Close a socket in one or both directions. This is like , but allows the socket to be closed only in one direction as well.

Close a socket in one or both directions
SOCKET

Socket to close

VAL INT

Direction(s) to close the socket in (one of )

INT

`-1` if an error occured, `0` otherwise

PROC socket.shutdown (SOCKET sock, VAL INT how, INT result)
socket.getsockname
socklib.occ
473

Get the local address of a connected socket. This fills in the `local.addr` and `local.port` fields of the given .

Get the local address of a connected socket
SOCKET

Socket to get local address of

RESULT INT

`-1` if an error occured, `0` otherwise

PROC socket.getsockname (SOCKET sock, RESULT INT result)
socket.getpeername
socklib.occ
485

Get the remote address of a connected socket. This fills in the `remote.addr` and `remote.port` fields of the given .

Get the remote address of a connected socket
SOCKET

Socket to get remote address of

RESULT INT

`-1` if an error occured, `0` otherwise

PROC socket.getpeername (SOCKET sock, RESULT INT result)
socket.gethostname
socklib.occ
496

Get the hostname of the local machine.

Get the hostname of the local machine
RESULT []BYTE

Buffer to return the name in

RESULT INT

`-1` if an error occurred, otherwise the length of the result in `name`

PROC socket.gethostname (RESULT []BYTE name, RESULT INT result)
socket.sethostname
socklib.occ
507

Set the hostname of the local machine. This typically requires superuser privileges.

Set the hostname of the local machine
VAL []BYTE

The new hostname

RESULT INT

`-1` if an error occured, `0` otherwise

PROC socket.sethostname (VAL []BYTE name, RESULT INT result)
socket.getdomainname
socklib.occ
520

Get the NIS domain name of the local machine. Note that this is not the DNS domain name; on the vast majority of modern machines this will be unset.

Get the NIS domain name of the local machine
RESULT []BYTE

Buffer to return the name in

RESULT INT

`-1` if an error occurred, otherwise the length of the result in `name`

PROC socket.getdomainname (RESULT []BYTE name, RESULT INT result)
socket.setdomainname
socklib.occ
532

Set the NIS domain name of the local machine. This typically requires superuser privileges. Note that this is not the DNS domain name.

Set the NIS domain name of the local machine
VAL []BYTE

The new domain name

RESULT INT

`-1` if an error occured, `0` otherwise

PROC socket.setdomainname (VAL []BYTE name, RESULT INT result)
socket.altable.connect
socklib.occ
542

`ALT`able version of .

ALT able version of
CHAN OF BOOL
CHAN OF INT
SOCKET
INT
PROC socket.altable.connect (CHAN OF BOOL kill, CHAN OF INT response, SOCKET sock, INT result)
socket.altable.read
socklib.occ
574

`ALT`able version of .

ALT able version of
CHAN OF BOOL
CHAN OF INT
SOCKET
[]BYTE
VAL INT
INT
PROC socket.altable.read (CHAN OF BOOL kill, CHAN OF INT response, SOCKET sock, []BYTE buffer, VAL INT count, INT result)
socket.altable.fullread
socklib.occ
606

`ALT`able version of .

ALT able version of
CHAN OF BOOL
CHAN OF INT
SOCKET
[]BYTE
VAL INT
INT
PROC socket.altable.fullread (CHAN OF BOOL kill, CHAN OF INT response, SOCKET sock, []BYTE buffer, VAL INT count, INT result)
socket.altable.write
socklib.occ
638

`ALT`able version of .

ALT able version of
CHAN OF BOOL
CHAN OF INT
SOCKET
VAL []BYTE
INT
PROC socket.altable.write (CHAN OF BOOL kill, CHAN OF INT response, SOCKET sock, VAL []BYTE buffer, INT result)
socket.altable.fullwrite
socklib.occ
670

`ALT`able version of .

ALT able version of
CHAN OF BOOL
CHAN OF INT
SOCKET
VAL []BYTE
INT
PROC socket.altable.fullwrite (CHAN OF BOOL kill, CHAN OF INT response, SOCKET sock, VAL []BYTE buffer, INT result)
socket.altable.accept
socklib.occ
702

`ALT`able version of .

ALT able version of
CHAN OF BOOL
CHAN OF INT
SOCKET
SOCKET
INT
PROC socket.altable.accept (CHAN OF BOOL kill, CHAN OF INT response, SOCKET sock, SOCKET client, INT result)
socket.altable.recvfrom
socklib.occ
734

`ALT`able version of .

ALT able version of
CHAN OF BOOL
CHAN OF INT
SOCKET
[]BYTE
VAL INT
INT
PROC socket.altable.recvfrom (CHAN OF BOOL kill, CHAN OF INT response, SOCKET sock, []BYTE message, VAL INT flags, INT result)
socket.addr.of.host
socklib.occ
777

Find the address of a host given its name. This returns the address of the requested host; when there are several, it will pick an arbitrary one.

Find the address of a host given its name
VAL []BYTE

Hostname to look up; this can either be a DNS-style name, or an IPv4 address in decimal dot notation

INT

The address found

INT

`-1` if an error occured (such as the hostname not being resolvable), `0` otherwise

PROC socket.addr.of.host (VAL []BYTE hostname, INT addr, INT result)
socket.addrs.of.host
socklib.occ
792

Find all the addresses of a host given its name. Like , but this will find all the addresses rather than just the first.

Find all the addresses of a host given its name
VAL []BYTE

Hostname to look up; this can either be a DNS-style name, or an IPv4 address in decimal dot notation

RESULT []INT

The addresses found

RESULT INT

`-1` if an error occured (such as the hostname not being resolvable), otherwise the number of addresses returned

PROC socket.addrs.of.host (VAL []BYTE hostname, RESULT []INT addrs, RESULT INT result)
socket.naddrs.of.host
socklib.occ
808

Find the number of addresses of a host given its name. This finds out how many addresses a host has, so it can be used before -- but bear in mind that the resolver's response might change between the two calls, so the result of this call should only be used as a hint.

Find the number of addresses of a host given its name
VAL []BYTE

Hostname to look up; this can either be a DNS-style name, or an IPv4 address in decimal dot notation

RESULT INT

`-1` if an error occured (such as the hostname not being resolvable), otherwise the number of addresses

PROC socket.naddrs.of.host (VAL []BYTE hostname, RESULT INT result)
socket.host.of.addr
socklib.occ
821

Find the name of a host given its address. This returns the hostname associated with the given address.

Find the name of a host given its address
VAL INT

The address to look up

[]BYTE

Buffer to write the hostname into

INT

Length of the returned hostname

INT

`-1` if an error occured, `0` otherwise

PROC socket.host.of.addr (VAL INT addr, []BYTE hostname, INT length, INT result)
socket.ip.of.addr
socklib.occ
833

Format an IPv4 address as a dotted-decimal string.

Format an IPv4 address as a dotted-decimal string
VAL INT

The address to format

[]BYTE

Buffer to write the decimal address into

INT

Length of the result

INT

`-1` if an error occured, `0` otherwise

PROC socket.ip.of.addr (VAL INT addr, []BYTE ip.addr, INT length, INT result)
socket.create.tcp
socklib.occ
845

Create a TCP socket. On failure, `sock[fd]` will be set to `-1`.

Create a TCP socket
SOCKET

The newly-created socket

PROC socket.create.tcp (SOCKET sock)
socket.create.udp
socklib.occ
855

Create a UDP socket. On failure, `sock[fd]` will be set to `-1`.

Create a UDP socket
SOCKET

The newly-created socket

PROC socket.create.udp (SOCKET sock)
socket.create.connect.tcp
socklib.occ
867

Create a TCP socket and connect it.

Create a TCP socket and connect it
SOCKET

The newly-created socket

VAL INT

IPv4 address to connect to

VAL INT

Port to connect to

INT

`-1` if an error occured, `0` otherwise

PROC socket.create.connect.tcp (SOCKET sock, VAL INT addr, VAL INT port, INT result)
socket.create.listen.tcp
socklib.occ
895

Create a TCP socket and make it listen on a local port. The socket is set to listen with a backlog of 32 connections by default; you can use to change the backlog if necessary.

Create a TCP socket and make it listen on a local port
SOCKET

The newly-created socket

VAL INT

IPv4 address to listen on

VAL INT

Port to listen on

INT

`-1` if an error occured, `0` otherwise

PROC socket.create.listen.tcp (SOCKET sock, VAL INT addr, VAL INT port, INT result)
socket.create.listen.udp
socklib.occ
926

Create a UDP socket and bind it to a local port.

Create a UDP socket and bind it to a local port
SOCKET

The newly-created socket

VAL INT

IPv4 address to bind to

VAL INT

Port to bind to

INT

`-1` if an error occured, `0` otherwise

PROC socket.create.listen.udp (SOCKET sock, VAL INT addr, VAL INT port, INT result)
SOCKET
socklib.inc
36

The information which is known about a socket.

For most purposes, the address family will be for IPv4, the socket type will be either for TCP or for UDP, and the protocol will be for TCP or for UDP.

This structure does not accurately reflect the true types of the two `port` and `addr` members. Ports are typically unsigned 16-bit numbers, while addresses are unsigned 32-bit numbers (for IPV4 at least). They are incorrect for ease of compatability with the corresponding structure in the C code; in addition, occam does not provide unsigned 16-bit or 32-bit types.

The information which is known about a socket
DATA TYPE SOCKET
fd
socklib.inc
38

File descriptor

File descriptor
INT
local.port
socklib.inc
39

Local port number

Local port number
INT
remote.port
socklib.inc
40

Remote port number

Remote port number
INT
local.addr
socklib.inc
41

Local IPv4 address, in host order

Local IPv4 address, in host order
INT
remote.addr
socklib.inc
42

Remote IPv4 address, in host order

Remote IPv4 address, in host order
INT
s.family
socklib.inc
43

Socket family (one of )

Socket family (one of )
INT
s.type
socklib.inc
44

Socket type (one of )

Socket type (one of )
INT
s.proto
socklib.inc
45

IP protocol (one of )

IP protocol (one of )
INT
error
socklib.inc
46

The error code of the last operation on this socket, if it failed

The error code of the last operation on this socket, if it failed
INT
SOCK
socklib.inc
50

Socket types

Socket types
SOCK.STREAM
socklib.inc
53

Stream sockets (like TCP)

Stream sockets (like TCP)
VAL SOCK.STREAM
SOCK.DGRAM
socklib.inc
55

Datagram sockets (like UDP)

Datagram sockets (like UDP)
VAL SOCK.DGRAM
AF
socklib.inc
62

Address families

Address families
AF.INET
socklib.inc
68

IPv4

IPv4
VAL AF.INET
PF
socklib.inc
93

Protocol families

Protocol families
PF.INET
socklib.inc
99

IPv4

IPv4
VAL PF.INET
IPPROTO
socklib.inc
124

IP protocols

IP protocols
IPPROTO.TCP
socklib.inc
132

TCP

TCP
VAL IPPROTO.TCP
IPPROTO.UDP
socklib.inc
136

UDP

UDP
VAL IPPROTO.UDP
IPPORT
socklib.inc
157

Well-known TCP and UDP ports

Well-known TCP and UDP ports
INADDR
socklib.inc
187

IPv4 addresses

IPv4 addresses
INADDR.ANY
socklib.inc
190

Any IPv4 address, when binding

Any IPv4 address, when binding
VAL INADDR.ANY
INADDR.BROADCAST
socklib.inc
192

Broadcast to all reachable hosts

Broadcast to all reachable hosts
VAL INADDR.BROADCAST
INADDR.LOOPBACK
socklib.inc
195

The local machine, via the loopback interface

The local machine, via the loopback interface
VAL INADDR.LOOPBACK
OPTION
socklib.inc
202

Boolean values for

Boolean values for
OPTION.OFF
socklib.inc
205

Boolean option turned off

Boolean option turned off
VAL OPTION.OFF
OPTION.ON
socklib.inc
207

Boolean option turned on

Boolean option turned on
VAL OPTION.ON
SOL
socklib.inc
210

Option levels for

Option levels for
SOL.SOCKET
socklib.inc
214

Options for sockets of all protocols

Options for sockets of all protocols
VAL SOL.SOCKET
SOL.TCP
socklib.inc
216

Options for TCP sockets

Options for TCP sockets
VAL SOL.TCP
SOL.UDP
socklib.inc
218

Options for UDP sockets

Options for UDP sockets
VAL SOL.UDP
SO
socklib.inc
234

Generic options for

Generic options for
SO.DEBUG
socklib.inc
237

Enable debug tracing

Enable debug tracing
VAL SO.DEBUG
SO.REUSEADDR
socklib.inc
239

Allow addresses to be reused when binding

Allow addresses to be reused when binding
VAL SO.REUSEADDR
SO.TYPE
socklib.inc
241

Get socket type

Get socket type
VAL SO.TYPE
SO.ERROR
socklib.inc
243

Get pending error and clear

Get pending error and clear
VAL SO.ERROR
SO.DONTROUTE
socklib.inc
245

Bypass routing table lookup

Bypass routing table lookup
VAL SO.DONTROUTE
SO.BROADCAST
socklib.inc
247

Allow transmission to broadcast addresses

Allow transmission to broadcast addresses
VAL SO.BROADCAST
SO.SNDBUF
socklib.inc
249

Send buffer size

Send buffer size
VAL SO.SNDBUF
SO.RCVBUF
socklib.inc
251

Receive buffer size

Receive buffer size
VAL SO.RCVBUF
SO.KEEPALIVE
socklib.inc
253

Send keep-alive messages periodically

Send keep-alive messages periodically
VAL SO.KEEPALIVE
SO.OOBINLINE
socklib.inc
255

Leave received out-of-band data inline

Leave received out-of-band data inline
VAL SO.OOBINLINE
SO.RCVLOWAT
socklib.inc
263

Receive buffer low-water mark

Receive buffer low-water mark
VAL SO.RCVLOWAT
SO.SNDLOWAT
socklib.inc
265

Send buffer low-water mark

Send buffer low-water mark
VAL SO.SNDLOWAT
TCP
socklib.inc
270

TCP-related options for

TCP-related options for
TCP.NODELAY
socklib.inc
273

Disable Nagle algorithm (don't delay small packets)

Disable Nagle algorithm (don't delay small packets)
VAL TCP.NODELAY
TCP.CORK
socklib.inc
276

While set, pause sending of partial frames

While set, pause sending of partial frames
VAL TCP.CORK
TCP.KEEPINTVL
socklib.inc
279

Seconds between keep-alive messages

Seconds between keep-alive messages
VAL TCP.KEEPINTVL
TCP.DEFER.ACCEPT
socklib.inc
284

Defer accept until data arrives

Defer accept until data arrives
VAL TCP.DEFER.ACCEPT
MSG
socklib.inc
290

Flag constants for and

Flag constants for and
SHUT
socklib.inc
310

Mode constants for

Mode constants for
SHUT.RD
socklib.inc
313

Disallow further receives

Disallow further receives
VAL SHUT.RD
SHUT.WR
socklib.inc
315

Disallow further sends

Disallow further sends
VAL SHUT.WR
SHUT.RDWR
socklib.inc
317

Disallow further sends and receives

Disallow further sends and receives
VAL SHUT.RDWR
rasterio

Support for saving and loading rasters as graphics files.

Support for saving and loading rasters as graphics files
read.raster.png
png.occ
31

Load a PNG file as a raster.

Load a PNG file as a raster
VAL []BYTE
RESULT RASTER
PROC read.raster.png (VAL []BYTE filename, RESULT RASTER raster)
write.raster.png
png.occ
43

Write a raster out as a PNG file.

Write a raster out as a PNG file
VAL []BYTE
VAL [][]INT
PROC write.raster.png (VAL []BYTE filename, VAL [][]INT raster)
write.raster.ppm
ppmwrite.occ
27

Write a raster out as a PPM file.

Write a raster out as a PPM file
VAL []BYTE
VAL [][]INT
PROC write.raster.ppm (VAL []BYTE filename, VAL [][]INT raster)
read.raster
rasterio.occ
37

Load an image file as a raster, with the format determined automatically based on the extension.

The following extensions are currently supported:

- .png
Load an image file as a raster, with the format determined automatically based on the extension
VAL []BYTE
RESULT RASTER
PROC read.raster (VAL []BYTE filename, RESULT RASTER raster)
write.raster
rasterio.occ
55

Write a raster to a file, with the format determined automatically based on the extension.

The following extensions are currently supported:

- .png
- .ppm
Write a raster to a file, with the format determined automatically based on the extension
VAL []BYTE
VAL [][]INT
PROC write.raster (VAL []BYTE filename, VAL [][]INT raster)
write.rasters
rasterio.occ
79

Write rasters to files.

As each raster passes through, it's written to a file named prefix000000suffix, with the number incrementing by one for each frame. The files can be in any format supported by .

You can convert the resulting files into a video using mencoder or a similar tool; see the mencoder manual for more details.

Write rasters to files
VAL []BYTE
VAL []BYTE
CHAN RASTER
CHAN RASTER
PROC write.rasters (VAL []BYTE prefix, suffix, CHAN RASTER in?, out!)
proc

Process library.

The process library provides facilities for running other OS programs and manipulating the environment.

Some `PROC`s are also provided in `ALT`able versions; for more information on how to use these, see the sock module documentation.

To use this library:

`#INCLUDE "proc.module"`

Process library
ENVIRONMENT
proclib.inc
24

An environment variable

An environment variable
DATA TYPE ENVIRONMENT
ident
proclib.inc
26

Variable name

Variable name
[128]BYTE
ident.size
proclib.inc
27

Length of variable name

Length of variable name
INT
value
proclib.inc
28

Variable value

Variable value
[128]BYTE
value.size
proclib.inc
29

Length of variable value

Length of variable value
INT
proc.run
proclib.occ
77

Run an external program.

The `command` array specifies the program name (the first element) and arguments (the remaining elements). The child process is executed using execvp, so the system path will be searched if the program name is not an absolute path to an executable. Elements of `command` must be padded with `'*0'` characters.

If any of the file descriptors are specified as `-1`, that descriptor will be closed in the child process. Since many programs will behave unpredictably if the standard file descriptors are closed when they are invoked, making use of this feature is not recommended.

Run an external program
VAL []ENVIRONMENT

Additional environment variables

VAL [][]BYTE

The process name and arguments

VAL INT

File descriptor to connect to the child process's standard input

VAL INT

File descriptor to connect to the child process's standard output

VAL INT

File descriptor to connect to the child process's standard error

INT

`-1` if an error occurred, otherwise the exit status of the process

PROC proc.run (VAL []ENVIRONMENT env, VAL [][]BYTE command, VAL INT kyb.fd, scr.fd, err.fd, INT result)
proc.altable.run
proclib.occ
86

`ALT`able version of .

ALT able version of
CHAN OF BOOL
CHAN OF INT
VAL []ENVIRONMENT
VAL [][]BYTE
VAL INT
VAL INT
VAL INT
INT
PROC proc.altable.run (CHAN OF BOOL kill, CHAN OF INT response, VAL []ENVIRONMENT env, VAL [][]BYTE command, VAL INT kyb.fd, scr.fd, err.fd, INT result)
proc.wrapper
proclib.occ
140

Run an external program with FDs connected to channels. Like , but the child process's standard input, output and error file descriptors are connected to the given occam channels.

For example:

`PROC lsdemo (CHAN BYTE kyb?, scr!, err!) VAL [][]BYTE command IS ["/bin/ls", ['-', 'a', 'l', 0, 0, 0, 0]]: INT result: SEQ proc.wrapper ([], command, kyb, scr, err, result) :`

Run an external program with FDs connected to channels
VAL []ENVIRONMENT

Additional environment variables

VAL [][]BYTE

The process name and arguments

CHAN OF BYTE

Channel to connect to the child process's standard input

CHAN OF BYTE

Channel to connect to the child process's standard output

CHAN OF BYTE

Channel to connect to the child process's standard error

INT

`-1` if an error occurred, otherwise the exit status of the process

PROC proc.wrapper (VAL []ENVIRONMENT env, VAL [][]BYTE command, CHAN OF BYTE kyb.in, scr.out, err.out, INT result)
proc.altable.wrapper
proclib.occ
230

`ALT`able version of .

ALT able version of
CHAN OF BOOL
CHAN OF INT
VAL []ENVIRONMENT
VAL [][]BYTE
CHAN OF BYTE
CHAN OF BYTE
CHAN OF BYTE
INT
PROC proc.altable.wrapper (CHAN OF BOOL kill, CHAN OF INT response, VAL []ENVIRONMENT env, VAL [][]BYTE command, CHAN OF BYTE kyb.in, scr.out, err.out, INT result)
proc.setenv
proclib.occ
306

Fill in an record. This copies the given values into the record, and also sets the size fields correctly.

Fill in an record
ENVIRONMENT

The to set

VAL []BYTE

The variable name

VAL []BYTE

The variable value

PROC proc.setenv (ENVIRONMENT env, VAL []BYTE ident, value)
proc.os.getenv
proclib.occ
321

Get an environment variable. This reads the environment of the occam program.

Get an environment variable
ENVIRONMENT

Environment variable returned

VAL []BYTE

The variable name to look up

PROC proc.os.getenv (ENVIRONMENT env, VAL []BYTE ident)
proc.os.setenv
proclib.occ
333

Set an environment variable. This sets a variable in the environment of the occam program (and thus in the environment of any programs it runs in the future).

Set an environment variable
VAL ENVIRONMENT

Environment variable to set

PROC proc.os.setenv (VAL ENVIRONMENT env)
proc.os.setenv.array
proclib.occ
345

Set several environment variables. This is semantically equivalent to calling several times, but may be more efficient if you're setting several variables.

Set several environment variables
VAL []ENVIRONMENT

Environment variables to set

PROC proc.os.setenv.array (VAL []ENVIRONMENT env)
occGL

Wrapper library for occGL Generated using swig 1.3.31

Wrapper library for occGL Generated using swig 1.3.31

Swig 1.3.31

GL.VERSION.1.1
occGL.inc
16

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.VERSION.1.1
GL.VERSION.1.2
occGL.inc
18

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.VERSION.1.2
GL.VERSION.1.3
occGL.inc
20

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.VERSION.1.3
GL.ARB.imaging
occGL.inc
22

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ARB.imaging
GL.FALSE
occGL.inc
24

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.FALSE
GL.TRUE
occGL.inc
26

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TRUE
GL.BYTE
occGL.inc
28

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.BYTE
GL.UNSIGNED.BYTE
occGL.inc
30

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.UNSIGNED.BYTE
GL.SHORT
occGL.inc
32

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SHORT
GL.UNSIGNED.SHORT
occGL.inc
34

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.UNSIGNED.SHORT
GL.INT
occGL.inc
36

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.INT
GL.UNSIGNED.INT
occGL.inc
38

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.UNSIGNED.INT
GL.FLOAT
occGL.inc
40

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.FLOAT
GL.DOUBLE
occGL.inc
42

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.DOUBLE
GL.2.BYTES
occGL.inc
44

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.2.BYTES
GL.3.BYTES
occGL.inc
46

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.3.BYTES
GL.4.BYTES
occGL.inc
48

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.4.BYTES
GL.POINTS
occGL.inc
50

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POINTS
GL.LINES
occGL.inc
52

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LINES
GL.LINE.LOOP
occGL.inc
54

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LINE.LOOP
GL.LINE.STRIP
occGL.inc
56

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LINE.STRIP
GL.TRIANGLES
occGL.inc
58

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TRIANGLES
GL.TRIANGLE.STRIP
occGL.inc
60

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TRIANGLE.STRIP
GL.TRIANGLE.FAN
occGL.inc
62

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TRIANGLE.FAN
GL.QUADS
occGL.inc
64

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.QUADS
GL.QUAD.STRIP
occGL.inc
66

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.QUAD.STRIP
GL.POLYGON
occGL.inc
68

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POLYGON
GL.VERTEX.ARRAY
occGL.inc
70

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.VERTEX.ARRAY
GL.NORMAL.ARRAY
occGL.inc
72

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.NORMAL.ARRAY
GL.COLOR.ARRAY
occGL.inc
74

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COLOR.ARRAY
GL.INDEX.ARRAY
occGL.inc
76

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.INDEX.ARRAY
GL.TEXTURE.COORD.ARRAY
occGL.inc
78

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.COORD.ARRAY
GL.EDGE.FLAG.ARRAY
occGL.inc
80

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.EDGE.FLAG.ARRAY
GL.VERTEX.ARRAY.SIZE
occGL.inc
82

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.VERTEX.ARRAY.SIZE
GL.VERTEX.ARRAY.TYPE
occGL.inc
84

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.VERTEX.ARRAY.TYPE
GL.VERTEX.ARRAY.STRIDE
occGL.inc
86

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.VERTEX.ARRAY.STRIDE
GL.NORMAL.ARRAY.TYPE
occGL.inc
88

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.NORMAL.ARRAY.TYPE
GL.NORMAL.ARRAY.STRIDE
occGL.inc
90

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.NORMAL.ARRAY.STRIDE
GL.COLOR.ARRAY.SIZE
occGL.inc
92

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COLOR.ARRAY.SIZE
GL.COLOR.ARRAY.TYPE
occGL.inc
94

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COLOR.ARRAY.TYPE
GL.COLOR.ARRAY.STRIDE
occGL.inc
96

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COLOR.ARRAY.STRIDE
GL.INDEX.ARRAY.TYPE
occGL.inc
98

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.INDEX.ARRAY.TYPE
GL.INDEX.ARRAY.STRIDE
occGL.inc
100

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.INDEX.ARRAY.STRIDE
GL.TEXTURE.COORD.ARRAY.SIZE
occGL.inc
102

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.COORD.ARRAY.SIZE
GL.TEXTURE.COORD.ARRAY.TYPE
occGL.inc
104

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.COORD.ARRAY.TYPE
GL.TEXTURE.COORD.ARRAY.STRIDE
occGL.inc
106

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.COORD.ARRAY.STRIDE
GL.EDGE.FLAG.ARRAY.STRIDE
occGL.inc
108

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.EDGE.FLAG.ARRAY.STRIDE
GL.VERTEX.ARRAY.POINTER
occGL.inc
110

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.VERTEX.ARRAY.POINTER
GL.NORMAL.ARRAY.POINTER
occGL.inc
112

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.NORMAL.ARRAY.POINTER
GL.COLOR.ARRAY.POINTER
occGL.inc
114

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COLOR.ARRAY.POINTER
GL.INDEX.ARRAY.POINTER
occGL.inc
116

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.INDEX.ARRAY.POINTER
GL.TEXTURE.COORD.ARRAY.POINTER
occGL.inc
118

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.COORD.ARRAY.POINTER
GL.EDGE.FLAG.ARRAY.POINTER
occGL.inc
120

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.EDGE.FLAG.ARRAY.POINTER
GL.V2F
occGL.inc
122

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.V2F
GL.V3F
occGL.inc
124

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.V3F
GL.C4UB.V2F
occGL.inc
126

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.C4UB.V2F
GL.C4UB.V3F
occGL.inc
128

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.C4UB.V3F
GL.C3F.V3F
occGL.inc
130

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.C3F.V3F
GL.N3F.V3F
occGL.inc
132

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.N3F.V3F
GL.C4F.N3F.V3F
occGL.inc
134

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.C4F.N3F.V3F
GL.T2F.V3F
occGL.inc
136

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.T2F.V3F
GL.T4F.V4F
occGL.inc
138

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.T4F.V4F
GL.T2F.C4UB.V3F
occGL.inc
140

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.T2F.C4UB.V3F
GL.T2F.C3F.V3F
occGL.inc
142

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.T2F.C3F.V3F
GL.T2F.N3F.V3F
occGL.inc
144

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.T2F.N3F.V3F
GL.T2F.C4F.N3F.V3F
occGL.inc
146

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.T2F.C4F.N3F.V3F
GL.T4F.C4F.N3F.V4F
occGL.inc
148

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.T4F.C4F.N3F.V4F
GL.MATRIX.MODE
occGL.inc
150

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MATRIX.MODE
GL.MODELVIEW
occGL.inc
152

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MODELVIEW
GL.PROJECTION
occGL.inc
154

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PROJECTION
GL.TEXTURE
occGL.inc
156

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE
GL.POINT.SMOOTH
occGL.inc
158

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POINT.SMOOTH
GL.POINT.SIZE
occGL.inc
160

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POINT.SIZE
GL.POINT.SIZE.GRANULARITY
occGL.inc
162

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POINT.SIZE.GRANULARITY
GL.POINT.SIZE.RANGE
occGL.inc
164

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POINT.SIZE.RANGE
GL.LINE.SMOOTH
occGL.inc
166

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LINE.SMOOTH
GL.LINE.STIPPLE
occGL.inc
168

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LINE.STIPPLE
GL.LINE.STIPPLE.PATTERN
occGL.inc
170

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LINE.STIPPLE.PATTERN
GL.LINE.STIPPLE.REPEAT
occGL.inc
172

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LINE.STIPPLE.REPEAT
GL.LINE.WIDTH
occGL.inc
174

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LINE.WIDTH
GL.LINE.WIDTH.GRANULARITY
occGL.inc
176

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LINE.WIDTH.GRANULARITY
GL.LINE.WIDTH.RANGE
occGL.inc
178

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LINE.WIDTH.RANGE
GL.POINT
occGL.inc
180

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POINT
GL.LINE
occGL.inc
182

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LINE
GL.FILL
occGL.inc
184

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.FILL
GL.CW
occGL.inc
186

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CW
GL.CCW
occGL.inc
188

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CCW
GL.FRONT
occGL.inc
190

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.FRONT
GL.BACK
occGL.inc
192

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.BACK
GL.POLYGON.MODE
occGL.inc
194

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POLYGON.MODE
GL.POLYGON.SMOOTH
occGL.inc
196

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POLYGON.SMOOTH
GL.POLYGON.STIPPLE
occGL.inc
198

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POLYGON.STIPPLE
GL.EDGE.FLAG
occGL.inc
200

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.EDGE.FLAG
GL.CULL.FACE
occGL.inc
202

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CULL.FACE
GL.CULL.FACE.MODE
occGL.inc
204

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CULL.FACE.MODE
GL.FRONT.FACE
occGL.inc
206

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.FRONT.FACE
GL.POLYGON.OFFSET.FACTOR
occGL.inc
208

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POLYGON.OFFSET.FACTOR
GL.POLYGON.OFFSET.UNITS
occGL.inc
210

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POLYGON.OFFSET.UNITS
GL.POLYGON.OFFSET.POINT
occGL.inc
212

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POLYGON.OFFSET.POINT
GL.POLYGON.OFFSET.LINE
occGL.inc
214

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POLYGON.OFFSET.LINE
GL.POLYGON.OFFSET.FILL
occGL.inc
216

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POLYGON.OFFSET.FILL
GL.COMPILE
occGL.inc
218

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COMPILE
GL.COMPILE.AND.EXECUTE
occGL.inc
220

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COMPILE.AND.EXECUTE
GL.LIST.BASE
occGL.inc
222

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LIST.BASE
GL.LIST.INDEX
occGL.inc
224

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LIST.INDEX
GL.LIST.MODE
occGL.inc
226

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LIST.MODE
GL.NEVER
occGL.inc
228

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.NEVER
GL.LESS
occGL.inc
230

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LESS
GL.EQUAL
occGL.inc
232

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.EQUAL
GL.LEQUAL
occGL.inc
234

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LEQUAL
GL.GREATER
occGL.inc
236

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.GREATER
GL.NOTEQUAL
occGL.inc
238

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.NOTEQUAL
GL.GEQUAL
occGL.inc
240

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.GEQUAL
GL.ALWAYS
occGL.inc
242

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ALWAYS
GL.DEPTH.TEST
occGL.inc
244

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.DEPTH.TEST
GL.DEPTH.BITS
occGL.inc
246

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.DEPTH.BITS
GL.DEPTH.CLEAR.VALUE
occGL.inc
248

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.DEPTH.CLEAR.VALUE
GL.DEPTH.FUNC
occGL.inc
250

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.DEPTH.FUNC
GL.DEPTH.RANGE
occGL.inc
252

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.DEPTH.RANGE
GL.DEPTH.WRITEMASK
occGL.inc
254

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.DEPTH.WRITEMASK
GL.DEPTH.COMPONENT
occGL.inc
256

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.DEPTH.COMPONENT
GL.LIGHTING
occGL.inc
258

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LIGHTING
GL.LIGHT0
occGL.inc
260

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LIGHT0
GL.LIGHT1
occGL.inc
262

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LIGHT1
GL.LIGHT2
occGL.inc
264

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LIGHT2
GL.LIGHT3
occGL.inc
266

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LIGHT3
GL.LIGHT4
occGL.inc
268

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LIGHT4
GL.LIGHT5
occGL.inc
270

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LIGHT5
GL.LIGHT6
occGL.inc
272

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LIGHT6
GL.LIGHT7
occGL.inc
274

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LIGHT7
GL.SPOT.EXPONENT
occGL.inc
276

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SPOT.EXPONENT
GL.SPOT.CUTOFF
occGL.inc
278

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SPOT.CUTOFF
GL.CONSTANT.ATTENUATION
occGL.inc
280

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CONSTANT.ATTENUATION
GL.LINEAR.ATTENUATION
occGL.inc
282

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LINEAR.ATTENUATION
GL.QUADRATIC.ATTENUATION
occGL.inc
284

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.QUADRATIC.ATTENUATION
GL.AMBIENT
occGL.inc
286

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.AMBIENT
GL.DIFFUSE
occGL.inc
288

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.DIFFUSE
GL.SPECULAR
occGL.inc
290

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SPECULAR
GL.SHININESS
occGL.inc
292

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SHININESS
GL.EMISSION
occGL.inc
294

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.EMISSION
GL.POSITION
occGL.inc
296

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POSITION
GL.SPOT.DIRECTION
occGL.inc
298

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SPOT.DIRECTION
GL.AMBIENT.AND.DIFFUSE
occGL.inc
300

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.AMBIENT.AND.DIFFUSE
GL.COLOR.INDEXES
occGL.inc
302

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COLOR.INDEXES
GL.LIGHT.MODEL.TWO.SIDE
occGL.inc
304

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LIGHT.MODEL.TWO.SIDE
GL.LIGHT.MODEL.LOCAL.VIEWER
occGL.inc
306

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LIGHT.MODEL.LOCAL.VIEWER
GL.LIGHT.MODEL.AMBIENT
occGL.inc
308

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LIGHT.MODEL.AMBIENT
GL.FRONT.AND.BACK
occGL.inc
310

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.FRONT.AND.BACK
GL.SHADE.MODEL
occGL.inc
312

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SHADE.MODEL
GL.FLAT
occGL.inc
314

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.FLAT
GL.SMOOTH
occGL.inc
316

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SMOOTH
GL.COLOR.MATERIAL
occGL.inc
318

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COLOR.MATERIAL
GL.COLOR.MATERIAL.FACE
occGL.inc
320

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COLOR.MATERIAL.FACE
GL.COLOR.MATERIAL.PARAMETER
occGL.inc
322

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COLOR.MATERIAL.PARAMETER
GL.NORMALIZE
occGL.inc
324

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.NORMALIZE
GL.CLIP.PLANE0
occGL.inc
326

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CLIP.PLANE0
GL.CLIP.PLANE1
occGL.inc
328

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CLIP.PLANE1
GL.CLIP.PLANE2
occGL.inc
330

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CLIP.PLANE2
GL.CLIP.PLANE3
occGL.inc
332

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CLIP.PLANE3
GL.CLIP.PLANE4
occGL.inc
334

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CLIP.PLANE4
GL.CLIP.PLANE5
occGL.inc
336

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CLIP.PLANE5
GL.ACCUM.RED.BITS
occGL.inc
338

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ACCUM.RED.BITS
GL.ACCUM.GREEN.BITS
occGL.inc
340

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ACCUM.GREEN.BITS
GL.ACCUM.BLUE.BITS
occGL.inc
342

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ACCUM.BLUE.BITS
GL.ACCUM.ALPHA.BITS
occGL.inc
344

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ACCUM.ALPHA.BITS
GL.ACCUM.CLEAR.VALUE
occGL.inc
346

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ACCUM.CLEAR.VALUE
GL.ACCUM
occGL.inc
348

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ACCUM
GL.ADD
occGL.inc
350

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ADD
GL.LOAD
occGL.inc
352

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LOAD
GL.MULT
occGL.inc
354

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MULT
GL.RETURN
occGL.inc
356

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.RETURN
GL.ALPHA.TEST
occGL.inc
358

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ALPHA.TEST
GL.ALPHA.TEST.REF
occGL.inc
360

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ALPHA.TEST.REF
GL.ALPHA.TEST.FUNC
occGL.inc
362

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ALPHA.TEST.FUNC
GL.BLEND
occGL.inc
364

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.BLEND
GL.BLEND.SRC
occGL.inc
366

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.BLEND.SRC
GL.BLEND.DST
occGL.inc
368

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.BLEND.DST
GL.ZERO
occGL.inc
370

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ZERO
GL.ONE
occGL.inc
372

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ONE
GL.SRC.COLOR
occGL.inc
374

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SRC.COLOR
GL.ONE.MINUS.SRC.COLOR
occGL.inc
376

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ONE.MINUS.SRC.COLOR
GL.SRC.ALPHA
occGL.inc
378

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SRC.ALPHA
GL.ONE.MINUS.SRC.ALPHA
occGL.inc
380

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ONE.MINUS.SRC.ALPHA
GL.DST.ALPHA
occGL.inc
382

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.DST.ALPHA
GL.ONE.MINUS.DST.ALPHA
occGL.inc
384

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ONE.MINUS.DST.ALPHA
GL.DST.COLOR
occGL.inc
386

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.DST.COLOR
GL.ONE.MINUS.DST.COLOR
occGL.inc
388

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ONE.MINUS.DST.COLOR
GL.SRC.ALPHA.SATURATE
occGL.inc
390

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SRC.ALPHA.SATURATE
GL.CONSTANT.COLOR
occGL.inc
392

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CONSTANT.COLOR
GL.ONE.MINUS.CONSTANT.COLOR
occGL.inc
394

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ONE.MINUS.CONSTANT.COLOR
GL.CONSTANT.ALPHA
occGL.inc
396

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CONSTANT.ALPHA
GL.ONE.MINUS.CONSTANT.ALPHA
occGL.inc
398

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ONE.MINUS.CONSTANT.ALPHA
GL.FEEDBACK
occGL.inc
400

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.FEEDBACK
GL.RENDER
occGL.inc
402

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.RENDER
GL.SELECT
occGL.inc
404

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SELECT
GL.2D
occGL.inc
406

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.2D
GL.3D
occGL.inc
408

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.3D
GL.3D.COLOR
occGL.inc
410

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.3D.COLOR
GL.3D.COLOR.TEXTURE
occGL.inc
412

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.3D.COLOR.TEXTURE
GL.4D.COLOR.TEXTURE
occGL.inc
414

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.4D.COLOR.TEXTURE
GL.POINT.TOKEN
occGL.inc
416

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POINT.TOKEN
GL.LINE.TOKEN
occGL.inc
418

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LINE.TOKEN
GL.LINE.RESET.TOKEN
occGL.inc
420

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LINE.RESET.TOKEN
GL.POLYGON.TOKEN
occGL.inc
422

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POLYGON.TOKEN
GL.BITMAP.TOKEN
occGL.inc
424

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.BITMAP.TOKEN
GL.DRAW.PIXEL.TOKEN
occGL.inc
426

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.DRAW.PIXEL.TOKEN
GL.COPY.PIXEL.TOKEN
occGL.inc
428

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COPY.PIXEL.TOKEN
GL.PASS.THROUGH.TOKEN
occGL.inc
430

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PASS.THROUGH.TOKEN
GL.FEEDBACK.BUFFER.POINTER
occGL.inc
432

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.FEEDBACK.BUFFER.POINTER
GL.FEEDBACK.BUFFER.SIZE
occGL.inc
434

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.FEEDBACK.BUFFER.SIZE
GL.FEEDBACK.BUFFER.TYPE
occGL.inc
436

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.FEEDBACK.BUFFER.TYPE
GL.SELECTION.BUFFER.POINTER
occGL.inc
438

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SELECTION.BUFFER.POINTER
GL.SELECTION.BUFFER.SIZE
occGL.inc
440

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SELECTION.BUFFER.SIZE
GL.FOG
occGL.inc
442

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.FOG
GL.FOG.MODE
occGL.inc
444

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.FOG.MODE
GL.FOG.DENSITY
occGL.inc
446

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.FOG.DENSITY
GL.FOG.COLOR
occGL.inc
448

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.FOG.COLOR
GL.FOG.INDEX
occGL.inc
450

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.FOG.INDEX
GL.FOG.START
occGL.inc
452

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.FOG.START
GL.FOG.END
occGL.inc
454

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.FOG.END
GL.LINEAR
occGL.inc
456

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LINEAR
GL.EXP
occGL.inc
458

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.EXP
GL.EXP2
occGL.inc
460

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.EXP2
GL.LOGIC.OP
occGL.inc
462

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LOGIC.OP
GL.INDEX.LOGIC.OP
occGL.inc
464

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.INDEX.LOGIC.OP
GL.COLOR.LOGIC.OP
occGL.inc
466

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COLOR.LOGIC.OP
GL.LOGIC.OP.MODE
occGL.inc
468

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LOGIC.OP.MODE
GL.CLEAR
occGL.inc
470

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CLEAR
GL.SET
occGL.inc
472

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SET
GL.COPY
occGL.inc
474

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COPY
GL.COPY.INVERTED
occGL.inc
476

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COPY.INVERTED
GL.NOOP
occGL.inc
478

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.NOOP
GL.INVERT
occGL.inc
480

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.INVERT
GL.AND
occGL.inc
482

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.AND
GL.NAND
occGL.inc
484

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.NAND
GL.OR
occGL.inc
486

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.OR
GL.NOR
occGL.inc
488

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.NOR
GL.XOR
occGL.inc
490

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.XOR
GL.EQUIV
occGL.inc
492

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.EQUIV
GL.AND.REVERSE
occGL.inc
494

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.AND.REVERSE
GL.AND.INVERTED
occGL.inc
496

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.AND.INVERTED
GL.OR.REVERSE
occGL.inc
498

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.OR.REVERSE
GL.OR.INVERTED
occGL.inc
500

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.OR.INVERTED
GL.STENCIL.TEST
occGL.inc
502

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.STENCIL.TEST
GL.STENCIL.WRITEMASK
occGL.inc
504

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.STENCIL.WRITEMASK
GL.STENCIL.BITS
occGL.inc
506

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.STENCIL.BITS
GL.STENCIL.FUNC
occGL.inc
508

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.STENCIL.FUNC
GL.STENCIL.VALUE.MASK
occGL.inc
510

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.STENCIL.VALUE.MASK
GL.STENCIL.REF
occGL.inc
512

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.STENCIL.REF
GL.STENCIL.FAIL
occGL.inc
514

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.STENCIL.FAIL
GL.STENCIL.PASS.DEPTH.PASS
occGL.inc
516

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.STENCIL.PASS.DEPTH.PASS
GL.STENCIL.PASS.DEPTH.FAIL
occGL.inc
518

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.STENCIL.PASS.DEPTH.FAIL
GL.STENCIL.CLEAR.VALUE
occGL.inc
520

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.STENCIL.CLEAR.VALUE
GL.STENCIL.INDEX
occGL.inc
522

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.STENCIL.INDEX
GL.KEEP
occGL.inc
524

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.KEEP
GL.REPLACE
occGL.inc
526

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.REPLACE
GL.INCR
occGL.inc
528

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.INCR
GL.DECR
occGL.inc
530

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.DECR
GL.NONE
occGL.inc
532

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.NONE
GL.LEFT
occGL.inc
534

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LEFT
GL.RIGHT
occGL.inc
536

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.RIGHT
GL.FRONT.LEFT
occGL.inc
538

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.FRONT.LEFT
GL.FRONT.RIGHT
occGL.inc
540

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.FRONT.RIGHT
GL.BACK.LEFT
occGL.inc
542

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.BACK.LEFT
GL.BACK.RIGHT
occGL.inc
544

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.BACK.RIGHT
GL.AUX0
occGL.inc
546

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.AUX0
GL.AUX1
occGL.inc
548

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.AUX1
GL.AUX2
occGL.inc
550

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.AUX2
GL.AUX3
occGL.inc
552

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.AUX3
GL.COLOR.INDEX
occGL.inc
554

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COLOR.INDEX
GL.RED
occGL.inc
556

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.RED
GL.GREEN
occGL.inc
558

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.GREEN
GL.BLUE
occGL.inc
560

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.BLUE
GL.ALPHA
occGL.inc
562

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ALPHA
GL.LUMINANCE
occGL.inc
564

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LUMINANCE
GL.LUMINANCE.ALPHA
occGL.inc
566

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LUMINANCE.ALPHA
GL.ALPHA.BITS
occGL.inc
568

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ALPHA.BITS
GL.RED.BITS
occGL.inc
570

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.RED.BITS
GL.GREEN.BITS
occGL.inc
572

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.GREEN.BITS
GL.BLUE.BITS
occGL.inc
574

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.BLUE.BITS
GL.INDEX.BITS
occGL.inc
576

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.INDEX.BITS
GL.SUBPIXEL.BITS
occGL.inc
578

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SUBPIXEL.BITS
GL.AUX.BUFFERS
occGL.inc
580

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.AUX.BUFFERS
GL.READ.BUFFER
occGL.inc
582

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.READ.BUFFER
GL.DRAW.BUFFER
occGL.inc
584

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.DRAW.BUFFER
GL.DOUBLEBUFFER
occGL.inc
586

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.DOUBLEBUFFER
GL.STEREO
occGL.inc
588

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.STEREO
GL.BITMAP
occGL.inc
590

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.BITMAP
GL.COLOR
occGL.inc
592

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COLOR
GL.DEPTH
occGL.inc
594

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.DEPTH
GL.STENCIL
occGL.inc
596

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.STENCIL
GL.DITHER
occGL.inc
598

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.DITHER
GL.RGB
occGL.inc
600

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.RGB
GL.RGBA
occGL.inc
602

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.RGBA
GL.MAX.LIST.NESTING
occGL.inc
604

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAX.LIST.NESTING
GL.MAX.ATTRIB.STACK.DEPTH
occGL.inc
606

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAX.ATTRIB.STACK.DEPTH
GL.MAX.MODELVIEW.STACK.DEPTH
occGL.inc
608

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAX.MODELVIEW.STACK.DEPTH
GL.MAX.NAME.STACK.DEPTH
occGL.inc
610

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAX.NAME.STACK.DEPTH
GL.MAX.PROJECTION.STACK.DEPTH
occGL.inc
612

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAX.PROJECTION.STACK.DEPTH
GL.MAX.TEXTURE.STACK.DEPTH
occGL.inc
614

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAX.TEXTURE.STACK.DEPTH
GL.MAX.EVAL.ORDER
occGL.inc
616

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAX.EVAL.ORDER
GL.MAX.LIGHTS
occGL.inc
618

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAX.LIGHTS
GL.MAX.CLIP.PLANES
occGL.inc
620

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAX.CLIP.PLANES
GL.MAX.TEXTURE.SIZE
occGL.inc
622

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAX.TEXTURE.SIZE
GL.MAX.PIXEL.MAP.TABLE
occGL.inc
624

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAX.PIXEL.MAP.TABLE
GL.MAX.VIEWPORT.DIMS
occGL.inc
626

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAX.VIEWPORT.DIMS
GL.MAX.CLIENT.ATTRIB.STACK.DEPTH
occGL.inc
628

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAX.CLIENT.ATTRIB.STACK.DEPTH
GL.ATTRIB.STACK.DEPTH
occGL.inc
630

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ATTRIB.STACK.DEPTH
GL.CLIENT.ATTRIB.STACK.DEPTH
occGL.inc
632

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CLIENT.ATTRIB.STACK.DEPTH
GL.COLOR.CLEAR.VALUE
occGL.inc
634

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COLOR.CLEAR.VALUE
GL.COLOR.WRITEMASK
occGL.inc
636

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COLOR.WRITEMASK
GL.CURRENT.INDEX
occGL.inc
638

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CURRENT.INDEX
GL.CURRENT.COLOR
occGL.inc
640

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CURRENT.COLOR
GL.CURRENT.NORMAL
occGL.inc
642

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CURRENT.NORMAL
GL.CURRENT.RASTER.COLOR
occGL.inc
644

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CURRENT.RASTER.COLOR
GL.CURRENT.RASTER.DISTANCE
occGL.inc
646

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CURRENT.RASTER.DISTANCE
GL.CURRENT.RASTER.INDEX
occGL.inc
648

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CURRENT.RASTER.INDEX
GL.CURRENT.RASTER.POSITION
occGL.inc
650

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CURRENT.RASTER.POSITION
GL.CURRENT.RASTER.TEXTURE.COORDS
occGL.inc
652

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CURRENT.RASTER.TEXTURE.COORDS
GL.CURRENT.RASTER.POSITION.VALID
occGL.inc
654

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CURRENT.RASTER.POSITION.VALID
GL.CURRENT.TEXTURE.COORDS
occGL.inc
656

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CURRENT.TEXTURE.COORDS
GL.INDEX.CLEAR.VALUE
occGL.inc
658

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.INDEX.CLEAR.VALUE
GL.INDEX.MODE
occGL.inc
660

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.INDEX.MODE
GL.INDEX.WRITEMASK
occGL.inc
662

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.INDEX.WRITEMASK
GL.MODELVIEW.MATRIX
occGL.inc
664

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MODELVIEW.MATRIX
GL.MODELVIEW.STACK.DEPTH
occGL.inc
666

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MODELVIEW.STACK.DEPTH
GL.NAME.STACK.DEPTH
occGL.inc
668

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.NAME.STACK.DEPTH
GL.PROJECTION.MATRIX
occGL.inc
670

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PROJECTION.MATRIX
GL.PROJECTION.STACK.DEPTH
occGL.inc
672

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PROJECTION.STACK.DEPTH
GL.RENDER.MODE
occGL.inc
674

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.RENDER.MODE
GL.RGBA.MODE
occGL.inc
676

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.RGBA.MODE
GL.TEXTURE.MATRIX
occGL.inc
678

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.MATRIX
GL.TEXTURE.STACK.DEPTH
occGL.inc
680

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.STACK.DEPTH
GL.VIEWPORT
occGL.inc
682

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.VIEWPORT
GL.AUTO.NORMAL
occGL.inc
684

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.AUTO.NORMAL
GL.MAP1.COLOR.4
occGL.inc
686

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAP1.COLOR.4
GL.MAP1.GRID.DOMAIN
occGL.inc
688

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAP1.GRID.DOMAIN
GL.MAP1.GRID.SEGMENTS
occGL.inc
690

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAP1.GRID.SEGMENTS
GL.MAP1.INDEX
occGL.inc
692

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAP1.INDEX
GL.MAP1.NORMAL
occGL.inc
694

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAP1.NORMAL
GL.MAP1.TEXTURE.COORD.1
occGL.inc
696

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAP1.TEXTURE.COORD.1
GL.MAP1.TEXTURE.COORD.2
occGL.inc
698

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAP1.TEXTURE.COORD.2
GL.MAP1.TEXTURE.COORD.3
occGL.inc
700

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAP1.TEXTURE.COORD.3
GL.MAP1.TEXTURE.COORD.4
occGL.inc
702

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAP1.TEXTURE.COORD.4
GL.MAP1.VERTEX.3
occGL.inc
704

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAP1.VERTEX.3
GL.MAP1.VERTEX.4
occGL.inc
706

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAP1.VERTEX.4
GL.MAP2.COLOR.4
occGL.inc
708

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAP2.COLOR.4
GL.MAP2.GRID.DOMAIN
occGL.inc
710

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAP2.GRID.DOMAIN
GL.MAP2.GRID.SEGMENTS
occGL.inc
712

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAP2.GRID.SEGMENTS
GL.MAP2.INDEX
occGL.inc
714

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAP2.INDEX
GL.MAP2.NORMAL
occGL.inc
716

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAP2.NORMAL
GL.MAP2.TEXTURE.COORD.1
occGL.inc
718

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAP2.TEXTURE.COORD.1
GL.MAP2.TEXTURE.COORD.2
occGL.inc
720

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAP2.TEXTURE.COORD.2
GL.MAP2.TEXTURE.COORD.3
occGL.inc
722

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAP2.TEXTURE.COORD.3
GL.MAP2.TEXTURE.COORD.4
occGL.inc
724

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAP2.TEXTURE.COORD.4
GL.MAP2.VERTEX.3
occGL.inc
726

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAP2.VERTEX.3
GL.MAP2.VERTEX.4
occGL.inc
728

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAP2.VERTEX.4
GL.COEFF
occGL.inc
730

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COEFF
GL.DOMAIN
occGL.inc
732

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.DOMAIN
GL.ORDER
occGL.inc
734

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ORDER
GL.FOG.HINT
occGL.inc
736

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.FOG.HINT
GL.LINE.SMOOTH.HINT
occGL.inc
738

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LINE.SMOOTH.HINT
GL.PERSPECTIVE.CORRECTION.HINT
occGL.inc
740

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PERSPECTIVE.CORRECTION.HINT
GL.POINT.SMOOTH.HINT
occGL.inc
742

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POINT.SMOOTH.HINT
GL.POLYGON.SMOOTH.HINT
occGL.inc
744

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POLYGON.SMOOTH.HINT
GL.DONT.CARE
occGL.inc
746

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.DONT.CARE
GL.FASTEST
occGL.inc
748

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.FASTEST
GL.NICEST
occGL.inc
750

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.NICEST
GL.SCISSOR.TEST
occGL.inc
752

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SCISSOR.TEST
GL.SCISSOR.BOX
occGL.inc
754

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SCISSOR.BOX
GL.MAP.COLOR
occGL.inc
756

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAP.COLOR
GL.MAP.STENCIL
occGL.inc
758

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAP.STENCIL
GL.INDEX.SHIFT
occGL.inc
760

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.INDEX.SHIFT
GL.INDEX.OFFSET
occGL.inc
762

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.INDEX.OFFSET
GL.RED.SCALE
occGL.inc
764

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.RED.SCALE
GL.RED.BIAS
occGL.inc
766

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.RED.BIAS
GL.GREEN.SCALE
occGL.inc
768

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.GREEN.SCALE
GL.GREEN.BIAS
occGL.inc
770

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.GREEN.BIAS
GL.BLUE.SCALE
occGL.inc
772

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.BLUE.SCALE
GL.BLUE.BIAS
occGL.inc
774

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.BLUE.BIAS
GL.ALPHA.SCALE
occGL.inc
776

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ALPHA.SCALE
GL.ALPHA.BIAS
occGL.inc
778

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ALPHA.BIAS
GL.DEPTH.SCALE
occGL.inc
780

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.DEPTH.SCALE
GL.DEPTH.BIAS
occGL.inc
782

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.DEPTH.BIAS
GL.PIXEL.MAP.S.TO.S.SIZE
occGL.inc
784

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PIXEL.MAP.S.TO.S.SIZE
GL.PIXEL.MAP.I.TO.I.SIZE
occGL.inc
786

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PIXEL.MAP.I.TO.I.SIZE
GL.PIXEL.MAP.I.TO.R.SIZE
occGL.inc
788

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PIXEL.MAP.I.TO.R.SIZE
GL.PIXEL.MAP.I.TO.G.SIZE
occGL.inc
790

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PIXEL.MAP.I.TO.G.SIZE
GL.PIXEL.MAP.I.TO.B.SIZE
occGL.inc
792

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PIXEL.MAP.I.TO.B.SIZE
GL.PIXEL.MAP.I.TO.A.SIZE
occGL.inc
794

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PIXEL.MAP.I.TO.A.SIZE
GL.PIXEL.MAP.R.TO.R.SIZE
occGL.inc
796

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PIXEL.MAP.R.TO.R.SIZE
GL.PIXEL.MAP.G.TO.G.SIZE
occGL.inc
798

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PIXEL.MAP.G.TO.G.SIZE
GL.PIXEL.MAP.B.TO.B.SIZE
occGL.inc
800

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PIXEL.MAP.B.TO.B.SIZE
GL.PIXEL.MAP.A.TO.A.SIZE
occGL.inc
802

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PIXEL.MAP.A.TO.A.SIZE
GL.PIXEL.MAP.S.TO.S
occGL.inc
804

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PIXEL.MAP.S.TO.S
GL.PIXEL.MAP.I.TO.I
occGL.inc
806

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PIXEL.MAP.I.TO.I
GL.PIXEL.MAP.I.TO.R
occGL.inc
808

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PIXEL.MAP.I.TO.R
GL.PIXEL.MAP.I.TO.G
occGL.inc
810

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PIXEL.MAP.I.TO.G
GL.PIXEL.MAP.I.TO.B
occGL.inc
812

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PIXEL.MAP.I.TO.B
GL.PIXEL.MAP.I.TO.A
occGL.inc
814

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PIXEL.MAP.I.TO.A
GL.PIXEL.MAP.R.TO.R
occGL.inc
816

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PIXEL.MAP.R.TO.R
GL.PIXEL.MAP.G.TO.G
occGL.inc
818

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PIXEL.MAP.G.TO.G
GL.PIXEL.MAP.B.TO.B
occGL.inc
820

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PIXEL.MAP.B.TO.B
GL.PIXEL.MAP.A.TO.A
occGL.inc
822

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PIXEL.MAP.A.TO.A
GL.PACK.ALIGNMENT
occGL.inc
824

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PACK.ALIGNMENT
GL.PACK.LSB.FIRST
occGL.inc
826

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PACK.LSB.FIRST
GL.PACK.ROW.LENGTH
occGL.inc
828

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PACK.ROW.LENGTH
GL.PACK.SKIP.PIXELS
occGL.inc
830

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PACK.SKIP.PIXELS
GL.PACK.SKIP.ROWS
occGL.inc
832

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PACK.SKIP.ROWS
GL.PACK.SWAP.BYTES
occGL.inc
834

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PACK.SWAP.BYTES
GL.UNPACK.ALIGNMENT
occGL.inc
836

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.UNPACK.ALIGNMENT
GL.UNPACK.LSB.FIRST
occGL.inc
838

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.UNPACK.LSB.FIRST
GL.UNPACK.ROW.LENGTH
occGL.inc
840

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.UNPACK.ROW.LENGTH
GL.UNPACK.SKIP.PIXELS
occGL.inc
842

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.UNPACK.SKIP.PIXELS
GL.UNPACK.SKIP.ROWS
occGL.inc
844

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.UNPACK.SKIP.ROWS
GL.UNPACK.SWAP.BYTES
occGL.inc
846

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.UNPACK.SWAP.BYTES
GL.ZOOM.X
occGL.inc
848

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ZOOM.X
GL.ZOOM.Y
occGL.inc
850

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ZOOM.Y
GL.TEXTURE.ENV
occGL.inc
852

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.ENV
GL.TEXTURE.ENV.MODE
occGL.inc
854

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.ENV.MODE
GL.TEXTURE.1D
occGL.inc
856

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.1D
GL.TEXTURE.2D
occGL.inc
858

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.2D
GL.TEXTURE.WRAP.S
occGL.inc
860

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.WRAP.S
GL.TEXTURE.WRAP.T
occGL.inc
862

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.WRAP.T
GL.TEXTURE.MAG.FILTER
occGL.inc
864

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.MAG.FILTER
GL.TEXTURE.MIN.FILTER
occGL.inc
866

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.MIN.FILTER
GL.TEXTURE.ENV.COLOR
occGL.inc
868

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.ENV.COLOR
GL.TEXTURE.GEN.S
occGL.inc
870

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.GEN.S
GL.TEXTURE.GEN.T
occGL.inc
872

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.GEN.T
GL.TEXTURE.GEN.MODE
occGL.inc
874

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.GEN.MODE
GL.TEXTURE.BORDER.COLOR
occGL.inc
876

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.BORDER.COLOR
GL.TEXTURE.WIDTH
occGL.inc
878

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.WIDTH
GL.TEXTURE.HEIGHT
occGL.inc
880

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.HEIGHT
GL.TEXTURE.BORDER
occGL.inc
882

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.BORDER
GL.TEXTURE.COMPONENTS
occGL.inc
884

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.COMPONENTS
GL.TEXTURE.RED.SIZE
occGL.inc
886

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.RED.SIZE
GL.TEXTURE.GREEN.SIZE
occGL.inc
888

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.GREEN.SIZE
GL.TEXTURE.BLUE.SIZE
occGL.inc
890

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.BLUE.SIZE
GL.TEXTURE.ALPHA.SIZE
occGL.inc
892

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.ALPHA.SIZE
GL.TEXTURE.LUMINANCE.SIZE
occGL.inc
894

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.LUMINANCE.SIZE
GL.TEXTURE.INTENSITY.SIZE
occGL.inc
896

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.INTENSITY.SIZE
GL.NEAREST.MIPMAP.NEAREST
occGL.inc
898

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.NEAREST.MIPMAP.NEAREST
GL.NEAREST.MIPMAP.LINEAR
occGL.inc
900

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.NEAREST.MIPMAP.LINEAR
GL.LINEAR.MIPMAP.NEAREST
occGL.inc
902

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LINEAR.MIPMAP.NEAREST
GL.LINEAR.MIPMAP.LINEAR
occGL.inc
904

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LINEAR.MIPMAP.LINEAR
GL.OBJECT.LINEAR
occGL.inc
906

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.OBJECT.LINEAR
GL.OBJECT.PLANE
occGL.inc
908

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.OBJECT.PLANE
GL.EYE.LINEAR
occGL.inc
910

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.EYE.LINEAR
GL.EYE.PLANE
occGL.inc
912

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.EYE.PLANE
GL.SPHERE.MAP
occGL.inc
914

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SPHERE.MAP
GL.DECAL
occGL.inc
916

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.DECAL
GL.MODULATE
occGL.inc
918

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MODULATE
GL.NEAREST
occGL.inc
920

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.NEAREST
GL.REPEAT
occGL.inc
922

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.REPEAT
GL.CLAMP
occGL.inc
924

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CLAMP
GL.S
occGL.inc
926

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.S
GL.T
occGL.inc
928

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.T
GL.R
occGL.inc
930

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.R
GL.Q
occGL.inc
932

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.Q
GL.TEXTURE.GEN.R
occGL.inc
934

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.GEN.R
GL.TEXTURE.GEN.Q
occGL.inc
936

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.GEN.Q
GL.VENDOR
occGL.inc
938

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.VENDOR
GL.RENDERER
occGL.inc
940

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.RENDERER
GL.VERSION
occGL.inc
942

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.VERSION
GL.EXTENSIONS
occGL.inc
944

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.EXTENSIONS
GL.NO.ERROR
occGL.inc
946

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.NO.ERROR
GL.INVALID.VALUE
occGL.inc
948

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.INVALID.VALUE
GL.INVALID.ENUM
occGL.inc
950

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.INVALID.ENUM
GL.INVALID.OPERATION
occGL.inc
952

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.INVALID.OPERATION
GL.STACK.OVERFLOW
occGL.inc
954

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.STACK.OVERFLOW
GL.STACK.UNDERFLOW
occGL.inc
956

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.STACK.UNDERFLOW
GL.OUT.OF.MEMORY
occGL.inc
958

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.OUT.OF.MEMORY
GL.CURRENT.BIT
occGL.inc
960

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CURRENT.BIT
GL.POINT.BIT
occGL.inc
962

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POINT.BIT
GL.LINE.BIT
occGL.inc
964

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LINE.BIT
GL.POLYGON.BIT
occGL.inc
966

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POLYGON.BIT
GL.POLYGON.STIPPLE.BIT
occGL.inc
968

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POLYGON.STIPPLE.BIT
GL.PIXEL.MODE.BIT
occGL.inc
970

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PIXEL.MODE.BIT
GL.LIGHTING.BIT
occGL.inc
972

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LIGHTING.BIT
GL.FOG.BIT
occGL.inc
974

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.FOG.BIT
GL.DEPTH.BUFFER.BIT
occGL.inc
976

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.DEPTH.BUFFER.BIT
GL.ACCUM.BUFFER.BIT
occGL.inc
978

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ACCUM.BUFFER.BIT
GL.STENCIL.BUFFER.BIT
occGL.inc
980

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.STENCIL.BUFFER.BIT
GL.VIEWPORT.BIT
occGL.inc
982

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.VIEWPORT.BIT
GL.TRANSFORM.BIT
occGL.inc
984

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TRANSFORM.BIT
GL.ENABLE.BIT
occGL.inc
986

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ENABLE.BIT
GL.COLOR.BUFFER.BIT
occGL.inc
988

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COLOR.BUFFER.BIT
GL.HINT.BIT
occGL.inc
990

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.HINT.BIT
GL.EVAL.BIT
occGL.inc
992

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.EVAL.BIT
GL.LIST.BIT
occGL.inc
994

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LIST.BIT
GL.TEXTURE.BIT
occGL.inc
996

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.BIT
GL.SCISSOR.BIT
occGL.inc
998

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SCISSOR.BIT
GL.ALL.ATTRIB.BITS
occGL.inc
1000

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ALL.ATTRIB.BITS
GL.PROXY.TEXTURE.1D
occGL.inc
1002

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PROXY.TEXTURE.1D
GL.PROXY.TEXTURE.2D
occGL.inc
1004

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PROXY.TEXTURE.2D
GL.TEXTURE.PRIORITY
occGL.inc
1006

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.PRIORITY
GL.TEXTURE.RESIDENT
occGL.inc
1008

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.RESIDENT
GL.TEXTURE.BINDING.1D
occGL.inc
1010

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.BINDING.1D
GL.TEXTURE.BINDING.2D
occGL.inc
1012

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.BINDING.2D
GL.TEXTURE.INTERNAL.FORMAT
occGL.inc
1014

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.INTERNAL.FORMAT
GL.ALPHA4
occGL.inc
1016

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ALPHA4
GL.ALPHA8
occGL.inc
1018

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ALPHA8
GL.ALPHA12
occGL.inc
1020

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ALPHA12
GL.ALPHA16
occGL.inc
1022

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ALPHA16
GL.LUMINANCE4
occGL.inc
1024

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LUMINANCE4
GL.LUMINANCE8
occGL.inc
1026

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LUMINANCE8
GL.LUMINANCE12
occGL.inc
1028

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LUMINANCE12
GL.LUMINANCE16
occGL.inc
1030

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LUMINANCE16
GL.LUMINANCE4.ALPHA4
occGL.inc
1032

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LUMINANCE4.ALPHA4
GL.LUMINANCE6.ALPHA2
occGL.inc
1034

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LUMINANCE6.ALPHA2
GL.LUMINANCE8.ALPHA8
occGL.inc
1036

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LUMINANCE8.ALPHA8
GL.LUMINANCE12.ALPHA4
occGL.inc
1038

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LUMINANCE12.ALPHA4
GL.LUMINANCE12.ALPHA12
occGL.inc
1040

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LUMINANCE12.ALPHA12
GL.LUMINANCE16.ALPHA16
occGL.inc
1042

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LUMINANCE16.ALPHA16
GL.INTENSITY
occGL.inc
1044

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.INTENSITY
GL.INTENSITY4
occGL.inc
1046

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.INTENSITY4
GL.INTENSITY8
occGL.inc
1048

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.INTENSITY8
GL.INTENSITY12
occGL.inc
1050

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.INTENSITY12
GL.INTENSITY16
occGL.inc
1052

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.INTENSITY16
GL.R3.G3.B2
occGL.inc
1054

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.R3.G3.B2
GL.RGB4
occGL.inc
1056

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.RGB4
GL.RGB5
occGL.inc
1058

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.RGB5
GL.RGB8
occGL.inc
1060

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.RGB8
GL.RGB10
occGL.inc
1062

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.RGB10
GL.RGB12
occGL.inc
1064

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.RGB12
GL.RGB16
occGL.inc
1066

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.RGB16
GL.RGBA2
occGL.inc
1068

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.RGBA2
GL.RGBA4
occGL.inc
1070

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.RGBA4
GL.RGB5.A1
occGL.inc
1072

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.RGB5.A1
GL.RGBA8
occGL.inc
1074

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.RGBA8
GL.RGB10.A2
occGL.inc
1076

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.RGB10.A2
GL.RGBA12
occGL.inc
1078

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.RGBA12
GL.RGBA16
occGL.inc
1080

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.RGBA16
GL.CLIENT.PIXEL.STORE.BIT
occGL.inc
1082

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CLIENT.PIXEL.STORE.BIT
GL.CLIENT.VERTEX.ARRAY.BIT
occGL.inc
1084

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CLIENT.VERTEX.ARRAY.BIT
GL.ALL.CLIENT.ATTRIB.BITS
occGL.inc
1086

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ALL.CLIENT.ATTRIB.BITS
GL.CLIENT.ALL.ATTRIB.BITS
occGL.inc
1088

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CLIENT.ALL.ATTRIB.BITS
GL.RESCALE.NORMAL
occGL.inc
1090

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.RESCALE.NORMAL
GL.CLAMP.TO.EDGE
occGL.inc
1092

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CLAMP.TO.EDGE
GL.MAX.ELEMENTS.VERTICES
occGL.inc
1094

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAX.ELEMENTS.VERTICES
GL.MAX.ELEMENTS.INDICES
occGL.inc
1096

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAX.ELEMENTS.INDICES
GL.BGR
occGL.inc
1098

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.BGR
GL.BGRA
occGL.inc
1100

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.BGRA
GL.UNSIGNED.BYTE.3.3.2
occGL.inc
1102

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.UNSIGNED.BYTE.3.3.2
GL.UNSIGNED.BYTE.2.3.3.REV
occGL.inc
1104

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.UNSIGNED.BYTE.2.3.3.REV
GL.UNSIGNED.SHORT.5.6.5
occGL.inc
1106

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.UNSIGNED.SHORT.5.6.5
GL.UNSIGNED.SHORT.5.6.5.REV
occGL.inc
1108

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.UNSIGNED.SHORT.5.6.5.REV
GL.UNSIGNED.SHORT.4.4.4.4
occGL.inc
1110

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.UNSIGNED.SHORT.4.4.4.4
GL.UNSIGNED.SHORT.4.4.4.4.REV
occGL.inc
1112

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.UNSIGNED.SHORT.4.4.4.4.REV
GL.UNSIGNED.SHORT.5.5.5.1
occGL.inc
1114

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.UNSIGNED.SHORT.5.5.5.1
GL.UNSIGNED.SHORT.1.5.5.5.REV
occGL.inc
1116

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.UNSIGNED.SHORT.1.5.5.5.REV
GL.UNSIGNED.INT.8.8.8.8
occGL.inc
1118

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.UNSIGNED.INT.8.8.8.8
GL.UNSIGNED.INT.8.8.8.8.REV
occGL.inc
1120

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.UNSIGNED.INT.8.8.8.8.REV
GL.UNSIGNED.INT.10.10.10.2
occGL.inc
1122

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.UNSIGNED.INT.10.10.10.2
GL.UNSIGNED.INT.2.10.10.10.REV
occGL.inc
1124

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.UNSIGNED.INT.2.10.10.10.REV
GL.LIGHT.MODEL.COLOR.CONTROL
occGL.inc
1126

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.LIGHT.MODEL.COLOR.CONTROL
GL.SINGLE.COLOR
occGL.inc
1128

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SINGLE.COLOR
GL.SEPARATE.SPECULAR.COLOR
occGL.inc
1130

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SEPARATE.SPECULAR.COLOR
GL.TEXTURE.MIN.LOD
occGL.inc
1132

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.MIN.LOD
GL.TEXTURE.MAX.LOD
occGL.inc
1134

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.MAX.LOD
GL.TEXTURE.BASE.LEVEL
occGL.inc
1136

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.BASE.LEVEL
GL.TEXTURE.MAX.LEVEL
occGL.inc
1138

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.MAX.LEVEL
GL.SMOOTH.POINT.SIZE.RANGE
occGL.inc
1140

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SMOOTH.POINT.SIZE.RANGE
GL.SMOOTH.POINT.SIZE.GRANULARITY
occGL.inc
1142

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SMOOTH.POINT.SIZE.GRANULARITY
GL.SMOOTH.LINE.WIDTH.RANGE
occGL.inc
1144

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SMOOTH.LINE.WIDTH.RANGE
GL.SMOOTH.LINE.WIDTH.GRANULARITY
occGL.inc
1146

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SMOOTH.LINE.WIDTH.GRANULARITY
GL.ALIASED.POINT.SIZE.RANGE
occGL.inc
1148

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ALIASED.POINT.SIZE.RANGE
GL.ALIASED.LINE.WIDTH.RANGE
occGL.inc
1150

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ALIASED.LINE.WIDTH.RANGE
GL.PACK.SKIP.IMAGES
occGL.inc
1152

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PACK.SKIP.IMAGES
GL.PACK.IMAGE.HEIGHT
occGL.inc
1154

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PACK.IMAGE.HEIGHT
GL.UNPACK.SKIP.IMAGES
occGL.inc
1156

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.UNPACK.SKIP.IMAGES
GL.UNPACK.IMAGE.HEIGHT
occGL.inc
1158

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.UNPACK.IMAGE.HEIGHT
GL.TEXTURE.3D
occGL.inc
1160

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.3D
GL.PROXY.TEXTURE.3D
occGL.inc
1162

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PROXY.TEXTURE.3D
GL.TEXTURE.DEPTH
occGL.inc
1164

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.DEPTH
GL.TEXTURE.WRAP.R
occGL.inc
1166

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.WRAP.R
GL.MAX.3D.TEXTURE.SIZE
occGL.inc
1168

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAX.3D.TEXTURE.SIZE
GL.TEXTURE.BINDING.3D
occGL.inc
1170

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.BINDING.3D
GL.COLOR.TABLE
occGL.inc
1172

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COLOR.TABLE
GL.POST.CONVOLUTION.COLOR.TABLE
occGL.inc
1174

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POST.CONVOLUTION.COLOR.TABLE
GL.POST.COLOR.MATRIX.COLOR.TABLE
occGL.inc
1176

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POST.COLOR.MATRIX.COLOR.TABLE
GL.PROXY.COLOR.TABLE
occGL.inc
1178

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PROXY.COLOR.TABLE
GL.PROXY.POST.CONVOLUTION.COLOR.TABLE
occGL.inc
1180

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PROXY.POST.CONVOLUTION.COLOR.TABLE
GL.PROXY.POST.COLOR.MATRIX.COLOR.TABLE
occGL.inc
1182

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PROXY.POST.COLOR.MATRIX.COLOR.TABLE
GL.COLOR.TABLE.SCALE
occGL.inc
1184

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COLOR.TABLE.SCALE
GL.COLOR.TABLE.BIAS
occGL.inc
1186

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COLOR.TABLE.BIAS
GL.COLOR.TABLE.FORMAT
occGL.inc
1188

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COLOR.TABLE.FORMAT
GL.COLOR.TABLE.WIDTH
occGL.inc
1190

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COLOR.TABLE.WIDTH
GL.COLOR.TABLE.RED.SIZE
occGL.inc
1192

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COLOR.TABLE.RED.SIZE
GL.COLOR.TABLE.GREEN.SIZE
occGL.inc
1194

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COLOR.TABLE.GREEN.SIZE
GL.COLOR.TABLE.BLUE.SIZE
occGL.inc
1196

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COLOR.TABLE.BLUE.SIZE
GL.COLOR.TABLE.ALPHA.SIZE
occGL.inc
1198

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COLOR.TABLE.ALPHA.SIZE
GL.COLOR.TABLE.LUMINANCE.SIZE
occGL.inc
1200

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COLOR.TABLE.LUMINANCE.SIZE
GL.COLOR.TABLE.INTENSITY.SIZE
occGL.inc
1202

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COLOR.TABLE.INTENSITY.SIZE
GL.CONVOLUTION.1D
occGL.inc
1204

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CONVOLUTION.1D
GL.CONVOLUTION.2D
occGL.inc
1206

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CONVOLUTION.2D
GL.SEPARABLE.2D
occGL.inc
1208

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SEPARABLE.2D
GL.CONVOLUTION.BORDER.MODE
occGL.inc
1210

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CONVOLUTION.BORDER.MODE
GL.CONVOLUTION.FILTER.SCALE
occGL.inc
1212

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CONVOLUTION.FILTER.SCALE
GL.CONVOLUTION.FILTER.BIAS
occGL.inc
1214

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CONVOLUTION.FILTER.BIAS
GL.REDUCE
occGL.inc
1216

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.REDUCE
GL.CONVOLUTION.FORMAT
occGL.inc
1218

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CONVOLUTION.FORMAT
GL.CONVOLUTION.WIDTH
occGL.inc
1220

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CONVOLUTION.WIDTH
GL.CONVOLUTION.HEIGHT
occGL.inc
1222

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CONVOLUTION.HEIGHT
GL.MAX.CONVOLUTION.WIDTH
occGL.inc
1224

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAX.CONVOLUTION.WIDTH
GL.MAX.CONVOLUTION.HEIGHT
occGL.inc
1226

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAX.CONVOLUTION.HEIGHT
GL.POST.CONVOLUTION.RED.SCALE
occGL.inc
1228

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POST.CONVOLUTION.RED.SCALE
GL.POST.CONVOLUTION.GREEN.SCALE
occGL.inc
1230

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POST.CONVOLUTION.GREEN.SCALE
GL.POST.CONVOLUTION.BLUE.SCALE
occGL.inc
1232

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POST.CONVOLUTION.BLUE.SCALE
GL.POST.CONVOLUTION.ALPHA.SCALE
occGL.inc
1234

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POST.CONVOLUTION.ALPHA.SCALE
GL.POST.CONVOLUTION.RED.BIAS
occGL.inc
1236

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POST.CONVOLUTION.RED.BIAS
GL.POST.CONVOLUTION.GREEN.BIAS
occGL.inc
1238

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POST.CONVOLUTION.GREEN.BIAS
GL.POST.CONVOLUTION.BLUE.BIAS
occGL.inc
1240

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POST.CONVOLUTION.BLUE.BIAS
GL.POST.CONVOLUTION.ALPHA.BIAS
occGL.inc
1242

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POST.CONVOLUTION.ALPHA.BIAS
GL.CONSTANT.BORDER
occGL.inc
1244

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CONSTANT.BORDER
GL.REPLICATE.BORDER
occGL.inc
1246

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.REPLICATE.BORDER
GL.CONVOLUTION.BORDER.COLOR
occGL.inc
1248

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CONVOLUTION.BORDER.COLOR
GL.COLOR.MATRIX
occGL.inc
1250

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COLOR.MATRIX
GL.COLOR.MATRIX.STACK.DEPTH
occGL.inc
1252

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COLOR.MATRIX.STACK.DEPTH
GL.MAX.COLOR.MATRIX.STACK.DEPTH
occGL.inc
1254

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAX.COLOR.MATRIX.STACK.DEPTH
GL.POST.COLOR.MATRIX.RED.SCALE
occGL.inc
1256

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POST.COLOR.MATRIX.RED.SCALE
GL.POST.COLOR.MATRIX.GREEN.SCALE
occGL.inc
1258

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POST.COLOR.MATRIX.GREEN.SCALE
GL.POST.COLOR.MATRIX.BLUE.SCALE
occGL.inc
1260

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POST.COLOR.MATRIX.BLUE.SCALE
GL.POST.COLOR.MATRIX.ALPHA.SCALE
occGL.inc
1262

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POST.COLOR.MATRIX.ALPHA.SCALE
GL.POST.COLOR.MATRIX.RED.BIAS
occGL.inc
1264

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POST.COLOR.MATRIX.RED.BIAS
GL.POST.COLOR.MATRIX.GREEN.BIAS
occGL.inc
1266

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POST.COLOR.MATRIX.GREEN.BIAS
GL.POST.COLOR.MATRIX.BLUE.BIAS
occGL.inc
1268

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POST.COLOR.MATRIX.BLUE.BIAS
GL.POST.COLOR.MATRIX.ALPHA.BIAS
occGL.inc
1270

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.POST.COLOR.MATRIX.ALPHA.BIAS
GL.HISTOGRAM
occGL.inc
1272

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.HISTOGRAM
GL.PROXY.HISTOGRAM
occGL.inc
1274

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PROXY.HISTOGRAM
GL.HISTOGRAM.WIDTH
occGL.inc
1276

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.HISTOGRAM.WIDTH
GL.HISTOGRAM.FORMAT
occGL.inc
1278

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.HISTOGRAM.FORMAT
GL.HISTOGRAM.RED.SIZE
occGL.inc
1280

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.HISTOGRAM.RED.SIZE
GL.HISTOGRAM.GREEN.SIZE
occGL.inc
1282

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.HISTOGRAM.GREEN.SIZE
GL.HISTOGRAM.BLUE.SIZE
occGL.inc
1284

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.HISTOGRAM.BLUE.SIZE
GL.HISTOGRAM.ALPHA.SIZE
occGL.inc
1286

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.HISTOGRAM.ALPHA.SIZE
GL.HISTOGRAM.LUMINANCE.SIZE
occGL.inc
1288

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.HISTOGRAM.LUMINANCE.SIZE
GL.HISTOGRAM.SINK
occGL.inc
1290

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.HISTOGRAM.SINK
GL.MINMAX
occGL.inc
1292

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MINMAX
GL.MINMAX.FORMAT
occGL.inc
1294

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MINMAX.FORMAT
GL.MINMAX.SINK
occGL.inc
1296

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MINMAX.SINK
GL.TABLE.TOO.LARGE
occGL.inc
1298

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TABLE.TOO.LARGE
GL.BLEND.EQUATION
occGL.inc
1300

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.BLEND.EQUATION
GL.MIN
occGL.inc
1302

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MIN
GL.MAX
occGL.inc
1304

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAX
GL.FUNC.ADD
occGL.inc
1306

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.FUNC.ADD
GL.FUNC.SUBTRACT
occGL.inc
1308

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.FUNC.SUBTRACT
GL.FUNC.REVERSE.SUBTRACT
occGL.inc
1310

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.FUNC.REVERSE.SUBTRACT
GL.BLEND.COLOR
occGL.inc
1312

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.BLEND.COLOR
GL.TEXTURE0
occGL.inc
1314

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE0
GL.TEXTURE1
occGL.inc
1316

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE1
GL.TEXTURE2
occGL.inc
1318

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE2
GL.TEXTURE3
occGL.inc
1320

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE3
GL.TEXTURE4
occGL.inc
1322

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE4
GL.TEXTURE5
occGL.inc
1324

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE5
GL.TEXTURE6
occGL.inc
1326

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE6
GL.TEXTURE7
occGL.inc
1328

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE7
GL.TEXTURE8
occGL.inc
1330

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE8
GL.TEXTURE9
occGL.inc
1332

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE9
GL.TEXTURE10
occGL.inc
1334

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE10
GL.TEXTURE11
occGL.inc
1336

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE11
GL.TEXTURE12
occGL.inc
1338

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE12
GL.TEXTURE13
occGL.inc
1340

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE13
GL.TEXTURE14
occGL.inc
1342

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE14
GL.TEXTURE15
occGL.inc
1344

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE15
GL.TEXTURE16
occGL.inc
1346

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE16
GL.TEXTURE17
occGL.inc
1348

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE17
GL.TEXTURE18
occGL.inc
1350

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE18
GL.TEXTURE19
occGL.inc
1352

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE19
GL.TEXTURE20
occGL.inc
1354

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE20
GL.TEXTURE21
occGL.inc
1356

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE21
GL.TEXTURE22
occGL.inc
1358

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE22
GL.TEXTURE23
occGL.inc
1360

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE23
GL.TEXTURE24
occGL.inc
1362

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE24
GL.TEXTURE25
occGL.inc
1364

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE25
GL.TEXTURE26
occGL.inc
1366

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE26
GL.TEXTURE27
occGL.inc
1368

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE27
GL.TEXTURE28
occGL.inc
1370

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE28
GL.TEXTURE29
occGL.inc
1372

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE29
GL.TEXTURE30
occGL.inc
1374

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE30
GL.TEXTURE31
occGL.inc
1376

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE31
GL.ACTIVE.TEXTURE
occGL.inc
1378

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ACTIVE.TEXTURE
GL.CLIENT.ACTIVE.TEXTURE
occGL.inc
1380

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CLIENT.ACTIVE.TEXTURE
GL.MAX.TEXTURE.UNITS
occGL.inc
1382

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAX.TEXTURE.UNITS
GL.NORMAL.MAP
occGL.inc
1384

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.NORMAL.MAP
GL.REFLECTION.MAP
occGL.inc
1386

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.REFLECTION.MAP
GL.TEXTURE.CUBE.MAP
occGL.inc
1388

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.CUBE.MAP
GL.TEXTURE.BINDING.CUBE.MAP
occGL.inc
1390

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.BINDING.CUBE.MAP
GL.TEXTURE.CUBE.MAP.POSITIVE.X
occGL.inc
1392

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.CUBE.MAP.POSITIVE.X
GL.TEXTURE.CUBE.MAP.NEGATIVE.X
occGL.inc
1394

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.CUBE.MAP.NEGATIVE.X
GL.TEXTURE.CUBE.MAP.POSITIVE.Y
occGL.inc
1396

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.CUBE.MAP.POSITIVE.Y
GL.TEXTURE.CUBE.MAP.NEGATIVE.Y
occGL.inc
1398

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.CUBE.MAP.NEGATIVE.Y
GL.TEXTURE.CUBE.MAP.POSITIVE.Z
occGL.inc
1400

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.CUBE.MAP.POSITIVE.Z
GL.TEXTURE.CUBE.MAP.NEGATIVE.Z
occGL.inc
1402

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.CUBE.MAP.NEGATIVE.Z
GL.PROXY.TEXTURE.CUBE.MAP
occGL.inc
1404

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PROXY.TEXTURE.CUBE.MAP
GL.MAX.CUBE.MAP.TEXTURE.SIZE
occGL.inc
1406

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MAX.CUBE.MAP.TEXTURE.SIZE
GL.COMPRESSED.ALPHA
occGL.inc
1408

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COMPRESSED.ALPHA
GL.COMPRESSED.LUMINANCE
occGL.inc
1410

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COMPRESSED.LUMINANCE
GL.COMPRESSED.LUMINANCE.ALPHA
occGL.inc
1412

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COMPRESSED.LUMINANCE.ALPHA
GL.COMPRESSED.INTENSITY
occGL.inc
1414

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COMPRESSED.INTENSITY
GL.COMPRESSED.RGB
occGL.inc
1416

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COMPRESSED.RGB
GL.COMPRESSED.RGBA
occGL.inc
1418

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COMPRESSED.RGBA
GL.TEXTURE.COMPRESSION.HINT
occGL.inc
1420

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.COMPRESSION.HINT
GL.TEXTURE.COMPRESSED.IMAGE.SIZE
occGL.inc
1422

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.COMPRESSED.IMAGE.SIZE
GL.TEXTURE.COMPRESSED
occGL.inc
1424

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TEXTURE.COMPRESSED
GL.NUM.COMPRESSED.TEXTURE.FORMATS
occGL.inc
1426

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.NUM.COMPRESSED.TEXTURE.FORMATS
GL.COMPRESSED.TEXTURE.FORMATS
occGL.inc
1428

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COMPRESSED.TEXTURE.FORMATS
GL.MULTISAMPLE
occGL.inc
1430

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MULTISAMPLE
GL.SAMPLE.ALPHA.TO.COVERAGE
occGL.inc
1432

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SAMPLE.ALPHA.TO.COVERAGE
GL.SAMPLE.ALPHA.TO.ONE
occGL.inc
1434

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SAMPLE.ALPHA.TO.ONE
GL.SAMPLE.COVERAGE
occGL.inc
1436

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SAMPLE.COVERAGE
GL.SAMPLE.BUFFERS
occGL.inc
1438

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SAMPLE.BUFFERS
GL.SAMPLES
occGL.inc
1440

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SAMPLES
GL.SAMPLE.COVERAGE.VALUE
occGL.inc
1442

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SAMPLE.COVERAGE.VALUE
GL.SAMPLE.COVERAGE.INVERT
occGL.inc
1444

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SAMPLE.COVERAGE.INVERT
GL.MULTISAMPLE.BIT
occGL.inc
1446

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MULTISAMPLE.BIT
GL.TRANSPOSE.MODELVIEW.MATRIX
occGL.inc
1448

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TRANSPOSE.MODELVIEW.MATRIX
GL.TRANSPOSE.PROJECTION.MATRIX
occGL.inc
1450

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TRANSPOSE.PROJECTION.MATRIX
GL.TRANSPOSE.TEXTURE.MATRIX
occGL.inc
1452

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TRANSPOSE.TEXTURE.MATRIX
GL.TRANSPOSE.COLOR.MATRIX
occGL.inc
1454

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.TRANSPOSE.COLOR.MATRIX
GL.COMBINE
occGL.inc
1456

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COMBINE
GL.COMBINE.RGB
occGL.inc
1458

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COMBINE.RGB
GL.COMBINE.ALPHA
occGL.inc
1460

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.COMBINE.ALPHA
GL.SOURCE0.RGB
occGL.inc
1462

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SOURCE0.RGB
GL.SOURCE1.RGB
occGL.inc
1464

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SOURCE1.RGB
GL.SOURCE2.RGB
occGL.inc
1466

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SOURCE2.RGB
GL.SOURCE0.ALPHA
occGL.inc
1468

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SOURCE0.ALPHA
GL.SOURCE1.ALPHA
occGL.inc
1470

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SOURCE1.ALPHA
GL.SOURCE2.ALPHA
occGL.inc
1472

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SOURCE2.ALPHA
GL.OPERAND0.RGB
occGL.inc
1474

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.OPERAND0.RGB
GL.OPERAND1.RGB
occGL.inc
1476

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.OPERAND1.RGB
GL.OPERAND2.RGB
occGL.inc
1478

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.OPERAND2.RGB
GL.OPERAND0.ALPHA
occGL.inc
1480

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.OPERAND0.ALPHA
GL.OPERAND1.ALPHA
occGL.inc
1482

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.OPERAND1.ALPHA
GL.OPERAND2.ALPHA
occGL.inc
1484

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.OPERAND2.ALPHA
GL.RGB.SCALE
occGL.inc
1486

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.RGB.SCALE
GL.ADD.SIGNED
occGL.inc
1488

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.ADD.SIGNED
GL.INTERPOLATE
occGL.inc
1490

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.INTERPOLATE
GL.SUBTRACT
occGL.inc
1492

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.SUBTRACT
GL.CONSTANT
occGL.inc
1494

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CONSTANT
GL.PRIMARY.COLOR
occGL.inc
1496

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PRIMARY.COLOR
GL.PREVIOUS
occGL.inc
1498

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PREVIOUS
GL.DOT3.RGB
occGL.inc
1500

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.DOT3.RGB
GL.DOT3.RGBA
occGL.inc
1502

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.DOT3.RGBA
GL.CLAMP.TO.BORDER
occGL.inc
1504

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.CLAMP.TO.BORDER
glClearIndex
occGL.inc
1509

FFI interface to C function

FFI interface to C function
VAL REAL32

is a pointer to a GLfloat

INLINE PROC glClearIndex (VAL REAL32 c)
glClearColor
occGL.inc
1520

FFI interface to C function

FFI interface to C function
VAL REAL32

is a pointer to a GLclampf

VAL REAL32

is a pointer to a GLclampf

VAL REAL32

is a pointer to a GLclampf

VAL REAL32

is a pointer to a GLclampf

INLINE PROC glClearColor (VAL REAL32 red, VAL REAL32 green, VAL REAL32 blue, VAL REAL32 alpha)
glClear
occGL.inc
1528

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLbitfield

INLINE PROC glClear (VAL INT mask)
glIndexMask
occGL.inc
1536

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLuint

INLINE PROC glIndexMask (VAL INT mask)
glColorMask
occGL.inc
1547

FFI interface to C function

FFI interface to C function
VAL BYTE

is a pointer to a GLboolean

VAL BYTE

is a pointer to a GLboolean

VAL BYTE

is a pointer to a GLboolean

VAL BYTE

is a pointer to a GLboolean

INLINE PROC glColorMask (VAL BYTE red, VAL BYTE green, VAL BYTE blue, VAL BYTE alpha)
glAlphaFunc
occGL.inc
1556

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL REAL32

is a pointer to a GLclampf

INLINE PROC glAlphaFunc (VAL INT func, VAL REAL32 ref)
glBlendFunc
occGL.inc
1565

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

INLINE PROC glBlendFunc (VAL INT sfactor, VAL INT dfactor)
glLogicOp
occGL.inc
1573

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

INLINE PROC glLogicOp (VAL INT opcode)
glCullFace
occGL.inc
1581

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

INLINE PROC glCullFace (VAL INT mode)
glFrontFace
occGL.inc
1589

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

INLINE PROC glFrontFace (VAL INT mode)
glPointSize
occGL.inc
1597

FFI interface to C function

FFI interface to C function
VAL REAL32

is a pointer to a GLfloat

INLINE PROC glPointSize (VAL REAL32 size)
glLineWidth
occGL.inc
1605

FFI interface to C function

FFI interface to C function
VAL REAL32

is a pointer to a GLfloat

INLINE PROC glLineWidth (VAL REAL32 width)
glLineStipple
occGL.inc
1614

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

VAL INT16

is a pointer to a GLushort

INLINE PROC glLineStipple (VAL INT factor, VAL INT16 pattern)
glPolygonMode
occGL.inc
1623

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

INLINE PROC glPolygonMode (VAL INT face, VAL INT mode)
glPolygonOffset
occGL.inc
1632

FFI interface to C function

FFI interface to C function
VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glPolygonOffset (VAL REAL32 factor, VAL REAL32 units)
glPolygonStipple
occGL.inc
1640

FFI interface to C function

FFI interface to C function
BYTE

is a pointer to a p.q(const).GLubyte

INLINE PROC glPolygonStipple (BYTE mask)
glGetPolygonStipple
occGL.inc
1648

FFI interface to C function

FFI interface to C function
BYTE

is a pointer to a p.GLubyte

INLINE PROC glGetPolygonStipple (BYTE mask)
glEdgeFlag
occGL.inc
1656

FFI interface to C function

FFI interface to C function
VAL BYTE

is a pointer to a GLboolean

INLINE PROC glEdgeFlag (VAL BYTE flag)
glEdgeFlagv
occGL.inc
1664

FFI interface to C function

FFI interface to C function
BYTE

is a pointer to a p.q(const).GLboolean

INLINE PROC glEdgeFlagv (BYTE flag)
glScissor
occGL.inc
1675

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLsizei

VAL INT

is a pointer to a GLsizei

INLINE PROC glScissor (VAL INT x, VAL INT y, VAL INT width, VAL INT height)
glClipPlane
occGL.inc
1684

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

REAL64

is a pointer to a p.q(const).GLdouble

INLINE PROC glClipPlane (VAL INT plane, REAL64 equation)
glGetClipPlane
occGL.inc
1693

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

REAL64

is a pointer to a p.GLdouble

INLINE PROC glGetClipPlane (VAL INT plane, REAL64 equation)
glDrawBuffer
occGL.inc
1701

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

INLINE PROC glDrawBuffer (VAL INT mode)
glReadBuffer
occGL.inc
1709

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

INLINE PROC glReadBuffer (VAL INT mode)
glEnable
occGL.inc
1717

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

INLINE PROC glEnable (VAL INT cap)
glDisable
occGL.inc
1725

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

INLINE PROC glDisable (VAL INT cap)
glIsEnabled
occGL.inc
1734

FFI interface to C function

FFI interface to C function
RESULT BYTE

contains the return value of the function and is of type GLboolean

VAL INT

is a pointer to a GLenum

INLINE PROC glIsEnabled (RESULT BYTE return.value, VAL INT cap)
glEnableClientState
occGL.inc
1742

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

INLINE PROC glEnableClientState (VAL INT cap)
glDisableClientState
occGL.inc
1750

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

INLINE PROC glDisableClientState (VAL INT cap)
glGetBooleanv
occGL.inc
1759

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

BYTE

is a pointer to a p.GLboolean

INLINE PROC glGetBooleanv (VAL INT pname, BYTE params)
glGetDoublev
occGL.inc
1768

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

REAL64

is a pointer to a p.GLdouble

INLINE PROC glGetDoublev (VAL INT pname, REAL64 params)
glGetFloatv
occGL.inc
1777

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

REAL32

is a pointer to a p.GLfloat

INLINE PROC glGetFloatv (VAL INT pname, REAL32 params)
glGetIntegerv
occGL.inc
1786

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

INT

is a pointer to a p.GLint

INLINE PROC glGetIntegerv (VAL INT pname, INT params)
glPushAttrib
occGL.inc
1794

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLbitfield

INLINE PROC glPushAttrib (VAL INT mask)
glPopAttrib
occGL.inc
1801

FFI interface to C function

FFI interface to C function
INLINE PROC glPopAttrib ()
glPushClientAttrib
occGL.inc
1809

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLbitfield

INLINE PROC glPushClientAttrib (VAL INT mask)
glPopClientAttrib
occGL.inc
1816

FFI interface to C function

FFI interface to C function
INLINE PROC glPopClientAttrib ()
glRenderMode
occGL.inc
1825

FFI interface to C function

FFI interface to C function
RESULT INT

contains the return value of the function and is of type GLint

VAL INT

is a pointer to a GLenum

INLINE PROC glRenderMode (RESULT INT return.value, VAL INT mode)
glGetError
occGL.inc
1833

FFI interface to C function

FFI interface to C function
RESULT INT

contains the return value of the function and is of type GLenum

INLINE PROC glGetError (RESULT INT return.value)
glGetString
occGL.inc
1842

FFI interface to C function

FFI interface to C function
RESULT BYTE

contains the return value of the function and is of type p.q(const).GLubyte

VAL INT

is a pointer to a GLenum

INLINE PROC glGetString (RESULT BYTE return.value, VAL INT name)
glFinish
occGL.inc
1849

FFI interface to C function

FFI interface to C function
INLINE PROC glFinish ()
glFlush
occGL.inc
1856

FFI interface to C function

FFI interface to C function
INLINE PROC glFlush ()
glHint
occGL.inc
1865

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

INLINE PROC glHint (VAL INT target, VAL INT mode)
glClearDepth
occGL.inc
1873

FFI interface to C function

FFI interface to C function
VAL REAL64

is a pointer to a GLclampd

INLINE PROC glClearDepth (VAL REAL64 depth)
glDepthFunc
occGL.inc
1881

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

INLINE PROC glDepthFunc (VAL INT func)
glDepthMask
occGL.inc
1889

FFI interface to C function

FFI interface to C function
VAL BYTE

is a pointer to a GLboolean

INLINE PROC glDepthMask (VAL BYTE flag)
glDepthRange
occGL.inc
1898

FFI interface to C function

FFI interface to C function
VAL REAL64

is a pointer to a GLclampd

VAL REAL64

is a pointer to a GLclampd

INLINE PROC glDepthRange (VAL REAL64 near.val, VAL REAL64 far.val)
glClearAccum
occGL.inc
1909

FFI interface to C function

FFI interface to C function
VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glClearAccum (VAL REAL32 red, VAL REAL32 green, VAL REAL32 blue, VAL REAL32 alpha)
glAccum
occGL.inc
1918

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glAccum (VAL INT op, VAL REAL32 value)
glMatrixMode
occGL.inc
1926

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

INLINE PROC glMatrixMode (VAL INT mode)
glOrtho
occGL.inc
1939

FFI interface to C function

FFI interface to C function
VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

INLINE PROC glOrtho (VAL REAL64 left, VAL REAL64 right, VAL REAL64 bottom, VAL REAL64 top, VAL REAL64 near.val, VAL REAL64 far.val)
glFrustum
occGL.inc
1952

FFI interface to C function

FFI interface to C function
VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

INLINE PROC glFrustum (VAL REAL64 left, VAL REAL64 right, VAL REAL64 bottom, VAL REAL64 top, VAL REAL64 near.val, VAL REAL64 far.val)
glViewport
occGL.inc
1963

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLsizei

VAL INT

is a pointer to a GLsizei

INLINE PROC glViewport (VAL INT x, VAL INT y, VAL INT width, VAL INT height)
glPushMatrix
occGL.inc
1970

FFI interface to C function

FFI interface to C function
INLINE PROC glPushMatrix ()
glPopMatrix
occGL.inc
1977

FFI interface to C function

FFI interface to C function
INLINE PROC glPopMatrix ()
glLoadIdentity
occGL.inc
1984

FFI interface to C function

FFI interface to C function
INLINE PROC glLoadIdentity ()
glLoadMatrixd
occGL.inc
1992

FFI interface to C function

FFI interface to C function
REAL64

is a pointer to a p.q(const).GLdouble

INLINE PROC glLoadMatrixd (REAL64 m)
glLoadMatrixf
occGL.inc
2000

FFI interface to C function

FFI interface to C function
REAL32

is a pointer to a p.q(const).GLfloat

INLINE PROC glLoadMatrixf (REAL32 m)
glMultMatrixd
occGL.inc
2008

FFI interface to C function

FFI interface to C function
REAL64

is a pointer to a p.q(const).GLdouble

INLINE PROC glMultMatrixd (REAL64 m)
glMultMatrixf
occGL.inc
2016

FFI interface to C function

FFI interface to C function
REAL32

is a pointer to a p.q(const).GLfloat

INLINE PROC glMultMatrixf (REAL32 m)
glRotated
occGL.inc
2027

FFI interface to C function

FFI interface to C function
VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

INLINE PROC glRotated (VAL REAL64 angle, VAL REAL64 x, VAL REAL64 y, VAL REAL64 z)
glRotatef
occGL.inc
2038

FFI interface to C function

FFI interface to C function
VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glRotatef (VAL REAL32 angle, VAL REAL32 x, VAL REAL32 y, VAL REAL32 z)
glScaled
occGL.inc
2048

FFI interface to C function

FFI interface to C function
VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

INLINE PROC glScaled (VAL REAL64 x, VAL REAL64 y, VAL REAL64 z)
glScalef
occGL.inc
2058

FFI interface to C function

FFI interface to C function
VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glScalef (VAL REAL32 x, VAL REAL32 y, VAL REAL32 z)
glTranslated
occGL.inc
2068

FFI interface to C function

FFI interface to C function
VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

INLINE PROC glTranslated (VAL REAL64 x, VAL REAL64 y, VAL REAL64 z)
glTranslatef
occGL.inc
2078

FFI interface to C function

FFI interface to C function
VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glTranslatef (VAL REAL32 x, VAL REAL32 y, VAL REAL32 z)
glIsList
occGL.inc
2087

FFI interface to C function

FFI interface to C function
RESULT BYTE

contains the return value of the function and is of type GLboolean

VAL INT

is a pointer to a GLuint

INLINE PROC glIsList (RESULT BYTE return.value, VAL INT list)
glDeleteLists
occGL.inc
2096

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLuint

VAL INT

is a pointer to a GLsizei

INLINE PROC glDeleteLists (VAL INT list, VAL INT range)
glGenLists
occGL.inc
2105

FFI interface to C function

FFI interface to C function
RESULT INT

contains the return value of the function and is of type GLuint

VAL INT

is a pointer to a GLsizei

INLINE PROC glGenLists (RESULT INT return.value, VAL INT range)
glNewList
occGL.inc
2114

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLuint

VAL INT

is a pointer to a GLenum

INLINE PROC glNewList (VAL INT list, VAL INT mode)
glEndList
occGL.inc
2121

FFI interface to C function

FFI interface to C function
INLINE PROC glEndList ()
glCallList
occGL.inc
2129

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLuint

INLINE PROC glCallList (VAL INT list)
glCallLists
occGL.inc
2139

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLsizei

VAL INT

is a pointer to a GLenum

[]INT

pointer to a C array of p.q(const).GLvoid

INLINE PROC glCallLists (VAL INT n, VAL INT type, []INT lists)
glListBase
occGL.inc
2147

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLuint

INLINE PROC glListBase (VAL INT base)
glBegin
occGL.inc
2155

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

INLINE PROC glBegin (VAL INT mode)
glEnd
occGL.inc
2162

FFI interface to C function

FFI interface to C function
INLINE PROC glEnd ()
glVertex2d
occGL.inc
2171

FFI interface to C function

FFI interface to C function
VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

INLINE PROC glVertex2d (VAL REAL64 x, VAL REAL64 y)
glVertex2f
occGL.inc
2180

FFI interface to C function

FFI interface to C function
VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glVertex2f (VAL REAL32 x, VAL REAL32 y)
glVertex2i
occGL.inc
2189

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

INLINE PROC glVertex2i (VAL INT x, VAL INT y)
glVertex2s
occGL.inc
2198

FFI interface to C function

FFI interface to C function
VAL INT16

is a pointer to a GLshort

VAL INT16

is a pointer to a GLshort

INLINE PROC glVertex2s (VAL INT16 x, VAL INT16 y)
glVertex3d
occGL.inc
2208

FFI interface to C function

FFI interface to C function
VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

INLINE PROC glVertex3d (VAL REAL64 x, VAL REAL64 y, VAL REAL64 z)
glVertex3f
occGL.inc
2218

FFI interface to C function

FFI interface to C function
VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glVertex3f (VAL REAL32 x, VAL REAL32 y, VAL REAL32 z)
glVertex3i
occGL.inc
2228

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

INLINE PROC glVertex3i (VAL INT x, VAL INT y, VAL INT z)
glVertex3s
occGL.inc
2238

FFI interface to C function

FFI interface to C function
VAL INT16

is a pointer to a GLshort

VAL INT16

is a pointer to a GLshort

VAL INT16

is a pointer to a GLshort

INLINE PROC glVertex3s (VAL INT16 x, VAL INT16 y, VAL INT16 z)
glVertex4d
occGL.inc
2249

FFI interface to C function

FFI interface to C function
VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

INLINE PROC glVertex4d (VAL REAL64 x, VAL REAL64 y, VAL REAL64 z, VAL REAL64 w)
glVertex4f
occGL.inc
2260

FFI interface to C function

FFI interface to C function
VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glVertex4f (VAL REAL32 x, VAL REAL32 y, VAL REAL32 z, VAL REAL32 w)
glVertex4i
occGL.inc
2271

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

INLINE PROC glVertex4i (VAL INT x, VAL INT y, VAL INT z, VAL INT w)
glVertex4s
occGL.inc
2282

FFI interface to C function

FFI interface to C function
VAL INT16

is a pointer to a GLshort

VAL INT16

is a pointer to a GLshort

VAL INT16

is a pointer to a GLshort

VAL INT16

is a pointer to a GLshort

INLINE PROC glVertex4s (VAL INT16 x, VAL INT16 y, VAL INT16 z, VAL INT16 w)
glVertex2dv
occGL.inc
2290

FFI interface to C function

FFI interface to C function
VAL [2]REAL64

pointer to a C array of q(const).GLdouble

INLINE PROC glVertex2dv (VAL [2]REAL64 v)
glVertex2fv
occGL.inc
2298

FFI interface to C function

FFI interface to C function
VAL [2]REAL32

pointer to a C array of q(const).GLfloat

INLINE PROC glVertex2fv (VAL [2]REAL32 v)
glVertex2iv
occGL.inc
2306

FFI interface to C function

FFI interface to C function
VAL [2]INT

pointer to a C array of q(const).GLint

INLINE PROC glVertex2iv (VAL [2]INT v)
glVertex2sv
occGL.inc
2314

FFI interface to C function

FFI interface to C function
VAL [2]INT16

pointer to a C array of q(const).GLshort

INLINE PROC glVertex2sv (VAL [2]INT16 v)
glVertex3dv
occGL.inc
2322

FFI interface to C function

FFI interface to C function
VAL [3]REAL64

pointer to a C array of q(const).GLdouble

INLINE PROC glVertex3dv (VAL [3]REAL64 v)
glVertex3fv
occGL.inc
2330

FFI interface to C function

FFI interface to C function
VAL [3]REAL32

pointer to a C array of q(const).GLfloat

INLINE PROC glVertex3fv (VAL [3]REAL32 v)
glVertex3iv
occGL.inc
2338

FFI interface to C function

FFI interface to C function
VAL [3]INT

pointer to a C array of q(const).GLint

INLINE PROC glVertex3iv (VAL [3]INT v)
glVertex3sv
occGL.inc
2346

FFI interface to C function

FFI interface to C function
VAL [3]INT16

pointer to a C array of q(const).GLshort

INLINE PROC glVertex3sv (VAL [3]INT16 v)
glVertex4dv
occGL.inc
2354

FFI interface to C function

FFI interface to C function
VAL [4]REAL64

pointer to a C array of q(const).GLdouble

INLINE PROC glVertex4dv (VAL [4]REAL64 v)
glVertex4fv
occGL.inc
2362

FFI interface to C function

FFI interface to C function
VAL [4]REAL32

pointer to a C array of q(const).GLfloat

INLINE PROC glVertex4fv (VAL [4]REAL32 v)
glVertex4iv
occGL.inc
2370

FFI interface to C function

FFI interface to C function
VAL [4]INT

pointer to a C array of q(const).GLint

INLINE PROC glVertex4iv (VAL [4]INT v)
glVertex4sv
occGL.inc
2378

FFI interface to C function

FFI interface to C function
VAL [4]INT16

pointer to a C array of q(const).GLshort

INLINE PROC glVertex4sv (VAL [4]INT16 v)
glNormal3b
occGL.inc
2388

FFI interface to C function

FFI interface to C function
VAL BYTE

is a pointer to a GLbyte

VAL BYTE

is a pointer to a GLbyte

VAL BYTE

is a pointer to a GLbyte

INLINE PROC glNormal3b (VAL BYTE nx, VAL BYTE ny, VAL BYTE nz)
glNormal3d
occGL.inc
2398

FFI interface to C function

FFI interface to C function
VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

INLINE PROC glNormal3d (VAL REAL64 nx, VAL REAL64 ny, VAL REAL64 nz)
glNormal3f
occGL.inc
2408

FFI interface to C function

FFI interface to C function
VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glNormal3f (VAL REAL32 nx, VAL REAL32 ny, VAL REAL32 nz)
glNormal3i
occGL.inc
2418

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

INLINE PROC glNormal3i (VAL INT nx, VAL INT ny, VAL INT nz)
glNormal3s
occGL.inc
2428

FFI interface to C function

FFI interface to C function
VAL INT16

is a pointer to a GLshort

VAL INT16

is a pointer to a GLshort

VAL INT16

is a pointer to a GLshort

INLINE PROC glNormal3s (VAL INT16 nx, VAL INT16 ny, VAL INT16 nz)
glNormal3bv
occGL.inc
2436

FFI interface to C function

FFI interface to C function
VAL [3]BYTE

pointer to a C array of q(const).GLbyte

INLINE PROC glNormal3bv (VAL [3]BYTE v)
glNormal3dv
occGL.inc
2444

FFI interface to C function

FFI interface to C function
VAL [3]REAL64

pointer to a C array of q(const).GLdouble

INLINE PROC glNormal3dv (VAL [3]REAL64 v)
glNormal3fv
occGL.inc
2452

FFI interface to C function

FFI interface to C function
VAL [3]REAL32

pointer to a C array of q(const).GLfloat

INLINE PROC glNormal3fv (VAL [3]REAL32 v)
glNormal3iv
occGL.inc
2460

FFI interface to C function

FFI interface to C function
VAL [3]INT

pointer to a C array of q(const).GLint

INLINE PROC glNormal3iv (VAL [3]INT v)
glNormal3sv
occGL.inc
2468

FFI interface to C function

FFI interface to C function
VAL [3]INT16

pointer to a C array of q(const).GLshort

INLINE PROC glNormal3sv (VAL [3]INT16 v)
glIndexd
occGL.inc
2476

FFI interface to C function

FFI interface to C function
VAL REAL64

is a pointer to a GLdouble

INLINE PROC glIndexd (VAL REAL64 c)
glIndexf
occGL.inc
2484

FFI interface to C function

FFI interface to C function
VAL REAL32

is a pointer to a GLfloat

INLINE PROC glIndexf (VAL REAL32 c)
glIndexi
occGL.inc
2492

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

INLINE PROC glIndexi (VAL INT c)
glIndexs
occGL.inc
2500

FFI interface to C function

FFI interface to C function
VAL INT16

is a pointer to a GLshort

INLINE PROC glIndexs (VAL INT16 c)
glIndexub
occGL.inc
2508

FFI interface to C function

FFI interface to C function
VAL BYTE

is a pointer to a GLubyte

INLINE PROC glIndexub (VAL BYTE c)
glIndexdv
occGL.inc
2516

FFI interface to C function

FFI interface to C function
VAL []REAL64

pointer to a C array of q(const).GLdouble

INLINE PROC glIndexdv (VAL []REAL64 c)
glIndexfv
occGL.inc
2524

FFI interface to C function

FFI interface to C function
VAL []REAL32

pointer to a C array of q(const).GLfloat

INLINE PROC glIndexfv (VAL []REAL32 c)
glIndexiv
occGL.inc
2532

FFI interface to C function

FFI interface to C function
VAL []INT

pointer to a C array of q(const).GLint

INLINE PROC glIndexiv (VAL []INT c)
glIndexsv
occGL.inc
2540

FFI interface to C function

FFI interface to C function
VAL []INT16

pointer to a C array of q(const).GLshort

INLINE PROC glIndexsv (VAL []INT16 c)
glIndexubv
occGL.inc
2548

FFI interface to C function

FFI interface to C function
VAL []BYTE

pointer to a C array of q(const).GLubyte

INLINE PROC glIndexubv (VAL []BYTE c)
glColor3b
occGL.inc
2558

FFI interface to C function

FFI interface to C function
VAL BYTE

is a pointer to a GLbyte

VAL BYTE

is a pointer to a GLbyte

VAL BYTE

is a pointer to a GLbyte

INLINE PROC glColor3b (VAL BYTE red, VAL BYTE green, VAL BYTE blue)
glColor3d
occGL.inc
2568

FFI interface to C function

FFI interface to C function
VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

INLINE PROC glColor3d (VAL REAL64 red, VAL REAL64 green, VAL REAL64 blue)
glColor3f
occGL.inc
2578

FFI interface to C function

FFI interface to C function
VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glColor3f (VAL REAL32 red, VAL REAL32 green, VAL REAL32 blue)
glColor3i
occGL.inc
2588

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

INLINE PROC glColor3i (VAL INT red, VAL INT green, VAL INT blue)
glColor3s
occGL.inc
2598

FFI interface to C function

FFI interface to C function
VAL INT16

is a pointer to a GLshort

VAL INT16

is a pointer to a GLshort

VAL INT16

is a pointer to a GLshort

INLINE PROC glColor3s (VAL INT16 red, VAL INT16 green, VAL INT16 blue)
glColor3ub
occGL.inc
2608

FFI interface to C function

FFI interface to C function
VAL BYTE

is a pointer to a GLubyte

VAL BYTE

is a pointer to a GLubyte

VAL BYTE

is a pointer to a GLubyte

INLINE PROC glColor3ub (VAL BYTE red, VAL BYTE green, VAL BYTE blue)
glColor3ui
occGL.inc
2618

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLuint

VAL INT

is a pointer to a GLuint

VAL INT

is a pointer to a GLuint

INLINE PROC glColor3ui (VAL INT red, VAL INT green, VAL INT blue)
glColor3us
occGL.inc
2628

FFI interface to C function

FFI interface to C function
VAL INT16

is a pointer to a GLushort

VAL INT16

is a pointer to a GLushort

VAL INT16

is a pointer to a GLushort

INLINE PROC glColor3us (VAL INT16 red, VAL INT16 green, VAL INT16 blue)
glColor4b
occGL.inc
2639

FFI interface to C function

FFI interface to C function
VAL BYTE

is a pointer to a GLbyte

VAL BYTE

is a pointer to a GLbyte

VAL BYTE

is a pointer to a GLbyte

VAL BYTE

is a pointer to a GLbyte

INLINE PROC glColor4b (VAL BYTE red, VAL BYTE green, VAL BYTE blue, VAL BYTE alpha)
glColor4d
occGL.inc
2650

FFI interface to C function

FFI interface to C function
VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

INLINE PROC glColor4d (VAL REAL64 red, VAL REAL64 green, VAL REAL64 blue, VAL REAL64 alpha)
glColor4f
occGL.inc
2661

FFI interface to C function

FFI interface to C function
VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glColor4f (VAL REAL32 red, VAL REAL32 green, VAL REAL32 blue, VAL REAL32 alpha)
glColor4i
occGL.inc
2672

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

INLINE PROC glColor4i (VAL INT red, VAL INT green, VAL INT blue, VAL INT alpha)
glColor4s
occGL.inc
2683

FFI interface to C function

FFI interface to C function
VAL INT16

is a pointer to a GLshort

VAL INT16

is a pointer to a GLshort

VAL INT16

is a pointer to a GLshort

VAL INT16

is a pointer to a GLshort

INLINE PROC glColor4s (VAL INT16 red, VAL INT16 green, VAL INT16 blue, VAL INT16 alpha)
glColor4ub
occGL.inc
2694

FFI interface to C function

FFI interface to C function
VAL BYTE

is a pointer to a GLubyte

VAL BYTE

is a pointer to a GLubyte

VAL BYTE

is a pointer to a GLubyte

VAL BYTE

is a pointer to a GLubyte

INLINE PROC glColor4ub (VAL BYTE red, VAL BYTE green, VAL BYTE blue, VAL BYTE alpha)
glColor4ui
occGL.inc
2705

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLuint

VAL INT

is a pointer to a GLuint

VAL INT

is a pointer to a GLuint

VAL INT

is a pointer to a GLuint

INLINE PROC glColor4ui (VAL INT red, VAL INT green, VAL INT blue, VAL INT alpha)
glColor4us
occGL.inc
2716

FFI interface to C function

FFI interface to C function
VAL INT16

is a pointer to a GLushort

VAL INT16

is a pointer to a GLushort

VAL INT16

is a pointer to a GLushort

VAL INT16

is a pointer to a GLushort

INLINE PROC glColor4us (VAL INT16 red, VAL INT16 green, VAL INT16 blue, VAL INT16 alpha)
glColor3bv
occGL.inc
2724

FFI interface to C function

FFI interface to C function
VAL [3]BYTE

pointer to a C array of q(const).GLbyte

INLINE PROC glColor3bv (VAL [3]BYTE v)
glColor3dv
occGL.inc
2732

FFI interface to C function

FFI interface to C function
VAL [3]REAL64

pointer to a C array of q(const).GLdouble

INLINE PROC glColor3dv (VAL [3]REAL64 v)
glColor3fv
occGL.inc
2740

FFI interface to C function

FFI interface to C function
VAL [3]REAL32

pointer to a C array of q(const).GLfloat

INLINE PROC glColor3fv (VAL [3]REAL32 v)
glColor3iv
occGL.inc
2748

FFI interface to C function

FFI interface to C function
VAL [3]INT

pointer to a C array of q(const).GLint

INLINE PROC glColor3iv (VAL [3]INT v)
glColor3sv
occGL.inc
2756

FFI interface to C function

FFI interface to C function
VAL [3]INT16

pointer to a C array of q(const).GLshort

INLINE PROC glColor3sv (VAL [3]INT16 v)
glColor3ubv
occGL.inc
2764

FFI interface to C function

FFI interface to C function
VAL [3]BYTE

pointer to a C array of q(const).GLubyte

INLINE PROC glColor3ubv (VAL [3]BYTE v)
glColor3uiv
occGL.inc
2772

FFI interface to C function

FFI interface to C function
VAL [3]INT

pointer to a C array of q(const).GLuint

INLINE PROC glColor3uiv (VAL [3]INT v)
glColor3usv
occGL.inc
2780

FFI interface to C function

FFI interface to C function
VAL [3]INT16

pointer to a C array of q(const).GLushort

INLINE PROC glColor3usv (VAL [3]INT16 v)
glColor4bv
occGL.inc
2788

FFI interface to C function

FFI interface to C function
VAL [4]BYTE

pointer to a C array of q(const).GLbyte

INLINE PROC glColor4bv (VAL [4]BYTE v)
glColor4dv
occGL.inc
2796

FFI interface to C function

FFI interface to C function
VAL [4]REAL64

pointer to a C array of q(const).GLdouble

INLINE PROC glColor4dv (VAL [4]REAL64 v)
glColor4fv
occGL.inc
2804

FFI interface to C function

FFI interface to C function
VAL [4]REAL32

pointer to a C array of q(const).GLfloat

INLINE PROC glColor4fv (VAL [4]REAL32 v)
glColor4iv
occGL.inc
2812

FFI interface to C function

FFI interface to C function
VAL [4]INT

pointer to a C array of q(const).GLint

INLINE PROC glColor4iv (VAL [4]INT v)
glColor4sv
occGL.inc
2820

FFI interface to C function

FFI interface to C function
VAL [4]INT16

pointer to a C array of q(const).GLshort

INLINE PROC glColor4sv (VAL [4]INT16 v)
glColor4ubv
occGL.inc
2828

FFI interface to C function

FFI interface to C function
VAL [4]BYTE

pointer to a C array of q(const).GLubyte

INLINE PROC glColor4ubv (VAL [4]BYTE v)
glColor4uiv
occGL.inc
2836

FFI interface to C function

FFI interface to C function
VAL [4]INT

pointer to a C array of q(const).GLuint

INLINE PROC glColor4uiv (VAL [4]INT v)
glColor4usv
occGL.inc
2844

FFI interface to C function

FFI interface to C function
VAL [4]INT16

pointer to a C array of q(const).GLushort

INLINE PROC glColor4usv (VAL [4]INT16 v)
glTexCoord1d
occGL.inc
2852

FFI interface to C function

FFI interface to C function
VAL REAL64

is a pointer to a GLdouble

INLINE PROC glTexCoord1d (VAL REAL64 s)
glTexCoord1f
occGL.inc
2860

FFI interface to C function

FFI interface to C function
VAL REAL32

is a pointer to a GLfloat

INLINE PROC glTexCoord1f (VAL REAL32 s)
glTexCoord1i
occGL.inc
2868

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

INLINE PROC glTexCoord1i (VAL INT s)
glTexCoord1s
occGL.inc
2876

FFI interface to C function

FFI interface to C function
VAL INT16

is a pointer to a GLshort

INLINE PROC glTexCoord1s (VAL INT16 s)
glTexCoord2d
occGL.inc
2885

FFI interface to C function

FFI interface to C function
VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

INLINE PROC glTexCoord2d (VAL REAL64 s, VAL REAL64 t)
glTexCoord2f
occGL.inc
2894

FFI interface to C function

FFI interface to C function
VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glTexCoord2f (VAL REAL32 s, VAL REAL32 t)
glTexCoord2i
occGL.inc
2903

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

INLINE PROC glTexCoord2i (VAL INT s, VAL INT t)
glTexCoord2s
occGL.inc
2912

FFI interface to C function

FFI interface to C function
VAL INT16

is a pointer to a GLshort

VAL INT16

is a pointer to a GLshort

INLINE PROC glTexCoord2s (VAL INT16 s, VAL INT16 t)
glTexCoord3d
occGL.inc
2922

FFI interface to C function

FFI interface to C function
VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

INLINE PROC glTexCoord3d (VAL REAL64 s, VAL REAL64 t, VAL REAL64 r)
glTexCoord3f
occGL.inc
2932

FFI interface to C function

FFI interface to C function
VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glTexCoord3f (VAL REAL32 s, VAL REAL32 t, VAL REAL32 r)
glTexCoord3i
occGL.inc
2942

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

INLINE PROC glTexCoord3i (VAL INT s, VAL INT t, VAL INT r)
glTexCoord3s
occGL.inc
2952

FFI interface to C function

FFI interface to C function
VAL INT16

is a pointer to a GLshort

VAL INT16

is a pointer to a GLshort

VAL INT16

is a pointer to a GLshort

INLINE PROC glTexCoord3s (VAL INT16 s, VAL INT16 t, VAL INT16 r)
glTexCoord4d
occGL.inc
2963

FFI interface to C function

FFI interface to C function
VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

INLINE PROC glTexCoord4d (VAL REAL64 s, VAL REAL64 t, VAL REAL64 r, VAL REAL64 q)
glTexCoord4f
occGL.inc
2974

FFI interface to C function

FFI interface to C function
VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glTexCoord4f (VAL REAL32 s, VAL REAL32 t, VAL REAL32 r, VAL REAL32 q)
glTexCoord4i
occGL.inc
2985

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

INLINE PROC glTexCoord4i (VAL INT s, VAL INT t, VAL INT r, VAL INT q)
glTexCoord4s
occGL.inc
2996

FFI interface to C function

FFI interface to C function
VAL INT16

is a pointer to a GLshort

VAL INT16

is a pointer to a GLshort

VAL INT16

is a pointer to a GLshort

VAL INT16

is a pointer to a GLshort

INLINE PROC glTexCoord4s (VAL INT16 s, VAL INT16 t, VAL INT16 r, VAL INT16 q)
glTexCoord1dv
occGL.inc
3004

FFI interface to C function

FFI interface to C function
VAL [1]REAL64

pointer to a C array of q(const).GLdouble

INLINE PROC glTexCoord1dv (VAL [1]REAL64 v)
glTexCoord1fv
occGL.inc
3012

FFI interface to C function

FFI interface to C function
VAL [1]REAL32

pointer to a C array of q(const).GLfloat

INLINE PROC glTexCoord1fv (VAL [1]REAL32 v)
glTexCoord1iv
occGL.inc
3020

FFI interface to C function

FFI interface to C function
VAL [1]INT

pointer to a C array of q(const).GLint

INLINE PROC glTexCoord1iv (VAL [1]INT v)
glTexCoord1sv
occGL.inc
3028

FFI interface to C function

FFI interface to C function
VAL [1]INT16

pointer to a C array of q(const).GLshort

INLINE PROC glTexCoord1sv (VAL [1]INT16 v)
glTexCoord2dv
occGL.inc
3036

FFI interface to C function

FFI interface to C function
VAL [2]REAL64

pointer to a C array of q(const).GLdouble

INLINE PROC glTexCoord2dv (VAL [2]REAL64 v)
glTexCoord2fv
occGL.inc
3044

FFI interface to C function

FFI interface to C function
VAL [2]REAL32

pointer to a C array of q(const).GLfloat

INLINE PROC glTexCoord2fv (VAL [2]REAL32 v)
glTexCoord2iv
occGL.inc
3052

FFI interface to C function

FFI interface to C function
VAL [2]INT

pointer to a C array of q(const).GLint

INLINE PROC glTexCoord2iv (VAL [2]INT v)
glTexCoord2sv
occGL.inc
3060

FFI interface to C function

FFI interface to C function
VAL [2]INT16

pointer to a C array of q(const).GLshort

INLINE PROC glTexCoord2sv (VAL [2]INT16 v)
glTexCoord3dv
occGL.inc
3068

FFI interface to C function

FFI interface to C function
VAL [3]REAL64

pointer to a C array of q(const).GLdouble

INLINE PROC glTexCoord3dv (VAL [3]REAL64 v)
glTexCoord3fv
occGL.inc
3076

FFI interface to C function

FFI interface to C function
VAL [3]REAL32

pointer to a C array of q(const).GLfloat

INLINE PROC glTexCoord3fv (VAL [3]REAL32 v)
glTexCoord3iv
occGL.inc
3084

FFI interface to C function

FFI interface to C function
VAL [3]INT

pointer to a C array of q(const).GLint

INLINE PROC glTexCoord3iv (VAL [3]INT v)
glTexCoord3sv
occGL.inc
3092

FFI interface to C function

FFI interface to C function
VAL [3]INT16

pointer to a C array of q(const).GLshort

INLINE PROC glTexCoord3sv (VAL [3]INT16 v)
glTexCoord4dv
occGL.inc
3100

FFI interface to C function

FFI interface to C function
VAL [4]REAL64

pointer to a C array of q(const).GLdouble

INLINE PROC glTexCoord4dv (VAL [4]REAL64 v)
glTexCoord4fv
occGL.inc
3108

FFI interface to C function

FFI interface to C function
VAL [4]REAL32

pointer to a C array of q(const).GLfloat

INLINE PROC glTexCoord4fv (VAL [4]REAL32 v)
glTexCoord4iv
occGL.inc
3116

FFI interface to C function

FFI interface to C function
VAL [4]INT

pointer to a C array of q(const).GLint

INLINE PROC glTexCoord4iv (VAL [4]INT v)
glTexCoord4sv
occGL.inc
3124

FFI interface to C function

FFI interface to C function
VAL [4]INT16

pointer to a C array of q(const).GLshort

INLINE PROC glTexCoord4sv (VAL [4]INT16 v)
glRasterPos2d
occGL.inc
3133

FFI interface to C function

FFI interface to C function
VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

INLINE PROC glRasterPos2d (VAL REAL64 x, VAL REAL64 y)
glRasterPos2f
occGL.inc
3142

FFI interface to C function

FFI interface to C function
VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glRasterPos2f (VAL REAL32 x, VAL REAL32 y)
glRasterPos2i
occGL.inc
3151

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

INLINE PROC glRasterPos2i (VAL INT x, VAL INT y)
glRasterPos2s
occGL.inc
3160

FFI interface to C function

FFI interface to C function
VAL INT16

is a pointer to a GLshort

VAL INT16

is a pointer to a GLshort

INLINE PROC glRasterPos2s (VAL INT16 x, VAL INT16 y)
glRasterPos3d
occGL.inc
3170

FFI interface to C function

FFI interface to C function
VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

INLINE PROC glRasterPos3d (VAL REAL64 x, VAL REAL64 y, VAL REAL64 z)
glRasterPos3f
occGL.inc
3180

FFI interface to C function

FFI interface to C function
VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glRasterPos3f (VAL REAL32 x, VAL REAL32 y, VAL REAL32 z)
glRasterPos3i
occGL.inc
3190

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

INLINE PROC glRasterPos3i (VAL INT x, VAL INT y, VAL INT z)
glRasterPos3s
occGL.inc
3200

FFI interface to C function

FFI interface to C function
VAL INT16

is a pointer to a GLshort

VAL INT16

is a pointer to a GLshort

VAL INT16

is a pointer to a GLshort

INLINE PROC glRasterPos3s (VAL INT16 x, VAL INT16 y, VAL INT16 z)
glRasterPos4d
occGL.inc
3211

FFI interface to C function

FFI interface to C function
VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

INLINE PROC glRasterPos4d (VAL REAL64 x, VAL REAL64 y, VAL REAL64 z, VAL REAL64 w)
glRasterPos4f
occGL.inc
3222

FFI interface to C function

FFI interface to C function
VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glRasterPos4f (VAL REAL32 x, VAL REAL32 y, VAL REAL32 z, VAL REAL32 w)
glRasterPos4i
occGL.inc
3233

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

INLINE PROC glRasterPos4i (VAL INT x, VAL INT y, VAL INT z, VAL INT w)
glRasterPos4s
occGL.inc
3244

FFI interface to C function

FFI interface to C function
VAL INT16

is a pointer to a GLshort

VAL INT16

is a pointer to a GLshort

VAL INT16

is a pointer to a GLshort

VAL INT16

is a pointer to a GLshort

INLINE PROC glRasterPos4s (VAL INT16 x, VAL INT16 y, VAL INT16 z, VAL INT16 w)
glRasterPos2dv
occGL.inc
3252

FFI interface to C function

FFI interface to C function
VAL [2]REAL64

pointer to a C array of q(const).GLdouble

INLINE PROC glRasterPos2dv (VAL [2]REAL64 v)
glRasterPos2fv
occGL.inc
3260

FFI interface to C function

FFI interface to C function
VAL [2]REAL32

pointer to a C array of q(const).GLfloat

INLINE PROC glRasterPos2fv (VAL [2]REAL32 v)
glRasterPos2iv
occGL.inc
3268

FFI interface to C function

FFI interface to C function
VAL [2]INT

pointer to a C array of q(const).GLint

INLINE PROC glRasterPos2iv (VAL [2]INT v)
glRasterPos2sv
occGL.inc
3276

FFI interface to C function

FFI interface to C function
VAL [2]INT16

pointer to a C array of q(const).GLshort

INLINE PROC glRasterPos2sv (VAL [2]INT16 v)
glRasterPos3dv
occGL.inc
3284

FFI interface to C function

FFI interface to C function
VAL [3]REAL64

pointer to a C array of q(const).GLdouble

INLINE PROC glRasterPos3dv (VAL [3]REAL64 v)
glRasterPos3fv
occGL.inc
3292

FFI interface to C function

FFI interface to C function
VAL [3]REAL32

pointer to a C array of q(const).GLfloat

INLINE PROC glRasterPos3fv (VAL [3]REAL32 v)
glRasterPos3iv
occGL.inc
3300

FFI interface to C function

FFI interface to C function
VAL [3]INT

pointer to a C array of q(const).GLint

INLINE PROC glRasterPos3iv (VAL [3]INT v)
glRasterPos3sv
occGL.inc
3308

FFI interface to C function

FFI interface to C function
VAL [3]INT16

pointer to a C array of q(const).GLshort

INLINE PROC glRasterPos3sv (VAL [3]INT16 v)
glRasterPos4dv
occGL.inc
3316

FFI interface to C function

FFI interface to C function
VAL [4]REAL64

pointer to a C array of q(const).GLdouble

INLINE PROC glRasterPos4dv (VAL [4]REAL64 v)
glRasterPos4fv
occGL.inc
3324

FFI interface to C function

FFI interface to C function
VAL [4]REAL32

pointer to a C array of q(const).GLfloat

INLINE PROC glRasterPos4fv (VAL [4]REAL32 v)
glRasterPos4iv
occGL.inc
3332

FFI interface to C function

FFI interface to C function
VAL [4]INT

pointer to a C array of q(const).GLint

INLINE PROC glRasterPos4iv (VAL [4]INT v)
glRasterPos4sv
occGL.inc
3340

FFI interface to C function

FFI interface to C function
VAL [4]INT16

pointer to a C array of q(const).GLshort

INLINE PROC glRasterPos4sv (VAL [4]INT16 v)
glRectd
occGL.inc
3351

FFI interface to C function

FFI interface to C function
VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

INLINE PROC glRectd (VAL REAL64 x1, VAL REAL64 y1, VAL REAL64 x2, VAL REAL64 y2)
glRectf
occGL.inc
3362

FFI interface to C function

FFI interface to C function
VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glRectf (VAL REAL32 x1, VAL REAL32 y1, VAL REAL32 x2, VAL REAL32 y2)
glRecti
occGL.inc
3373

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

INLINE PROC glRecti (VAL INT x1, VAL INT y1, VAL INT x2, VAL INT y2)
glRects
occGL.inc
3384

FFI interface to C function

FFI interface to C function
VAL INT16

is a pointer to a GLshort

VAL INT16

is a pointer to a GLshort

VAL INT16

is a pointer to a GLshort

VAL INT16

is a pointer to a GLshort

INLINE PROC glRects (VAL INT16 x1, VAL INT16 y1, VAL INT16 x2, VAL INT16 y2)
glRectdv
occGL.inc
3393

FFI interface to C function

FFI interface to C function
VAL []REAL64

pointer to a C array of q(const).GLdouble

VAL []REAL64

pointer to a C array of q(const).GLdouble

INLINE PROC glRectdv (VAL []REAL64 v1, VAL []REAL64 v2)
glRectfv
occGL.inc
3402

FFI interface to C function

FFI interface to C function
VAL []REAL32

pointer to a C array of q(const).GLfloat

VAL []REAL32

pointer to a C array of q(const).GLfloat

INLINE PROC glRectfv (VAL []REAL32 v1, VAL []REAL32 v2)
glRectiv
occGL.inc
3411

FFI interface to C function

FFI interface to C function
VAL []INT

pointer to a C array of q(const).GLint

VAL []INT

pointer to a C array of q(const).GLint

INLINE PROC glRectiv (VAL []INT v1, VAL []INT v2)
glRectsv
occGL.inc
3420

FFI interface to C function

FFI interface to C function
VAL []INT16

pointer to a C array of q(const).GLshort

VAL []INT16

pointer to a C array of q(const).GLshort

INLINE PROC glRectsv (VAL []INT16 v1, VAL []INT16 v2)
glVertexPointer
occGL.inc
3431

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLsizei

VAL []INT

pointer to a C array of q(const).GLvoid

INLINE PROC glVertexPointer (VAL INT size, VAL INT type, VAL INT stride, VAL []INT ptr)
glNormalPointer
occGL.inc
3441

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLsizei

VAL []INT

pointer to a C array of q(const).GLvoid

INLINE PROC glNormalPointer (VAL INT type, VAL INT stride, VAL []INT ptr)
glColorPointer
occGL.inc
3452

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLsizei

VAL []INT

pointer to a C array of q(const).GLvoid

INLINE PROC glColorPointer (VAL INT size, VAL INT type, VAL INT stride, VAL []INT ptr)
glIndexPointer
occGL.inc
3462

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLsizei

VAL []INT

pointer to a C array of q(const).GLvoid

INLINE PROC glIndexPointer (VAL INT type, VAL INT stride, VAL []INT ptr)
glTexCoordPointer
occGL.inc
3473

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLsizei

VAL []INT

pointer to a C array of q(const).GLvoid

INLINE PROC glTexCoordPointer (VAL INT size, VAL INT type, VAL INT stride, VAL []INT ptr)
glEdgeFlagPointer
occGL.inc
3482

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLsizei

VAL []INT

pointer to a C array of q(const).GLvoid

INLINE PROC glEdgeFlagPointer (VAL INT stride, VAL []INT ptr)
glGetPointerv
occGL.inc
3491

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

[]INT

pointer to a C array of GLvoid

INLINE PROC glGetPointerv (VAL INT pname, []INT params)
glArrayElement
occGL.inc
3499

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

INLINE PROC glArrayElement (VAL INT i)
glDrawArrays
occGL.inc
3509

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLsizei

INLINE PROC glDrawArrays (VAL INT mode, VAL INT first, VAL INT count)
glDrawElements
occGL.inc
3520

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLsizei

VAL INT

is a pointer to a GLenum

VAL []INT

pointer to a C array of q(const).GLvoid

INLINE PROC glDrawElements (VAL INT mode, VAL INT count, VAL INT type, VAL []INT indices)
glInterleavedArrays
occGL.inc
3530

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLsizei

VAL []INT

pointer to a C array of q(const).GLvoid

INLINE PROC glInterleavedArrays (VAL INT format, VAL INT stride, VAL []INT pointer)
glShadeModel
occGL.inc
3538

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

INLINE PROC glShadeModel (VAL INT mode)
glLightf
occGL.inc
3548

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glLightf (VAL INT light, VAL INT pname, VAL REAL32 param)
glLighti
occGL.inc
3558

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLint

INLINE PROC glLighti (VAL INT light, VAL INT pname, VAL INT param)
glLightfv
occGL.inc
3568

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

VAL []REAL32

pointer to a C array of q(const).GLfloat

INLINE PROC glLightfv (VAL INT light, VAL INT pname, VAL []REAL32 params)
glLightiv
occGL.inc
3578

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

VAL []INT

pointer to a C array of q(const).GLint

INLINE PROC glLightiv (VAL INT light, VAL INT pname, VAL []INT params)
glGetLightfv
occGL.inc
3588

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

[]REAL32

pointer to a C array of GLfloat

INLINE PROC glGetLightfv (VAL INT light, VAL INT pname, []REAL32 params)
glGetLightiv
occGL.inc
3598

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

[]INT

pointer to a C array of GLint

INLINE PROC glGetLightiv (VAL INT light, VAL INT pname, []INT params)
glLightModelf
occGL.inc
3607

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glLightModelf (VAL INT pname, VAL REAL32 param)
glLightModeli
occGL.inc
3616

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLint

INLINE PROC glLightModeli (VAL INT pname, VAL INT param)
glLightModelfv
occGL.inc
3625

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

[]REAL32

pointer to a C array of p.q(const).GLfloat

INLINE PROC glLightModelfv (VAL INT pname, []REAL32 params)
glLightModeliv
occGL.inc
3634

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

[]INT

pointer to a C array of p.q(const).GLint

INLINE PROC glLightModeliv (VAL INT pname, []INT params)
glMaterialf
occGL.inc
3644

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glMaterialf (VAL INT face, VAL INT pname, VAL REAL32 param)
glMateriali
occGL.inc
3654

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLint

INLINE PROC glMateriali (VAL INT face, VAL INT pname, VAL INT param)
glMaterialfv
occGL.inc
3664

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

VAL []REAL32

pointer to a C array of q(const).GLfloat

INLINE PROC glMaterialfv (VAL INT face, VAL INT pname, VAL []REAL32 params)
glMaterialiv
occGL.inc
3674

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

VAL []INT

pointer to a C array of q(const).GLint

INLINE PROC glMaterialiv (VAL INT face, VAL INT pname, VAL []INT params)
glGetMaterialfv
occGL.inc
3684

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

[]REAL32

pointer to a C array of GLfloat

INLINE PROC glGetMaterialfv (VAL INT face, VAL INT pname, []REAL32 params)
glGetMaterialiv
occGL.inc
3694

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

[]INT

pointer to a C array of GLint

INLINE PROC glGetMaterialiv (VAL INT face, VAL INT pname, []INT params)
glColorMaterial
occGL.inc
3703

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

INLINE PROC glColorMaterial (VAL INT face, VAL INT mode)
glPixelZoom
occGL.inc
3712

FFI interface to C function

FFI interface to C function
VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glPixelZoom (VAL REAL32 xfactor, VAL REAL32 yfactor)
glPixelStoref
occGL.inc
3721

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glPixelStoref (VAL INT pname, VAL REAL32 param)
glPixelStorei
occGL.inc
3730

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLint

INLINE PROC glPixelStorei (VAL INT pname, VAL INT param)
glPixelTransferf
occGL.inc
3739

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glPixelTransferf (VAL INT pname, VAL REAL32 param)
glPixelTransferi
occGL.inc
3748

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLint

INLINE PROC glPixelTransferi (VAL INT pname, VAL INT param)
glPixelMapfv
occGL.inc
3758

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLint

VAL []REAL32

pointer to a C array of q(const).GLfloat

INLINE PROC glPixelMapfv (VAL INT map, VAL INT mapsize, VAL []REAL32 values)
glPixelMapuiv
occGL.inc
3768

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLint

VAL []INT

pointer to a C array of q(const).GLuint

INLINE PROC glPixelMapuiv (VAL INT map, VAL INT mapsize, VAL []INT values)
glPixelMapusv
occGL.inc
3778

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLint

VAL []INT16

pointer to a C array of q(const).GLushort

INLINE PROC glPixelMapusv (VAL INT map, VAL INT mapsize, VAL []INT16 values)
glGetPixelMapfv
occGL.inc
3787

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

[]REAL32

pointer to a C array of GLfloat

INLINE PROC glGetPixelMapfv (VAL INT map, []REAL32 values)
glGetPixelMapuiv
occGL.inc
3796

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

[]INT

pointer to a C array of GLuint

INLINE PROC glGetPixelMapuiv (VAL INT map, []INT values)
glGetPixelMapusv
occGL.inc
3805

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

[]INT16

pointer to a C array of GLushort

INLINE PROC glGetPixelMapusv (VAL INT map, []INT16 values)
glBitmap
occGL.inc
3819

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLsizei

VAL INT

is a pointer to a GLsizei

VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

VAL []BYTE

pointer to a C array of q(const).GLubyte

INLINE PROC glBitmap (VAL INT width, VAL INT height, VAL REAL32 xorig, VAL REAL32 yorig, VAL REAL32 xmove, VAL REAL32 ymove, VAL []BYTE bitmap)
glReadPixels
occGL.inc
3833

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLsizei

VAL INT

is a pointer to a GLsizei

VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

[]INT

pointer to a C array of GLvoid

INLINE PROC glReadPixels (VAL INT x, VAL INT y, VAL INT width, VAL INT height, VAL INT format, VAL INT type, []INT pixels)
glDrawPixels
occGL.inc
3845

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLsizei

VAL INT

is a pointer to a GLsizei

VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

VAL []INT

pointer to a C array of q(const).GLvoid

INLINE PROC glDrawPixels (VAL INT width, VAL INT height, VAL INT format, VAL INT type, VAL []INT pixels)
glCopyPixels
occGL.inc
3857

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLsizei

VAL INT

is a pointer to a GLsizei

VAL INT

is a pointer to a GLenum

INLINE PROC glCopyPixels (VAL INT x, VAL INT y, VAL INT width, VAL INT height, VAL INT type)
glStencilFunc
occGL.inc
3867

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLuint

INLINE PROC glStencilFunc (VAL INT func, VAL INT ref, VAL INT mask)
glStencilMask
occGL.inc
3875

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLuint

INLINE PROC glStencilMask (VAL INT mask)
glStencilOp
occGL.inc
3885

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

INLINE PROC glStencilOp (VAL INT fail, VAL INT zfail, VAL INT zpass)
glClearStencil
occGL.inc
3893

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

INLINE PROC glClearStencil (VAL INT s)
glTexGend
occGL.inc
3903

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

VAL REAL64

is a pointer to a GLdouble

INLINE PROC glTexGend (VAL INT coord, VAL INT pname, VAL REAL64 param)
glTexGenf
occGL.inc
3913

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glTexGenf (VAL INT coord, VAL INT pname, VAL REAL32 param)
glTexGeni
occGL.inc
3923

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLint

INLINE PROC glTexGeni (VAL INT coord, VAL INT pname, VAL INT param)
glTexGendv
occGL.inc
3933

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

REAL64

is a pointer to a p.q(const).GLdouble

INLINE PROC glTexGendv (VAL INT coord, VAL INT pname, REAL64 params)
glTexGenfv
occGL.inc
3943

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

REAL32

is a pointer to a p.q(const).GLfloat

INLINE PROC glTexGenfv (VAL INT coord, VAL INT pname, REAL32 params)
glTexGeniv
occGL.inc
3953

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

INT

is a pointer to a p.q(const).GLint

INLINE PROC glTexGeniv (VAL INT coord, VAL INT pname, INT params)
glGetTexGendv
occGL.inc
3963

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

REAL64

is a pointer to a p.GLdouble

INLINE PROC glGetTexGendv (VAL INT coord, VAL INT pname, REAL64 params)
glGetTexGenfv
occGL.inc
3973

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

REAL32

is a pointer to a p.GLfloat

INLINE PROC glGetTexGenfv (VAL INT coord, VAL INT pname, REAL32 params)
glGetTexGeniv
occGL.inc
3983

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

INT

is a pointer to a p.GLint

INLINE PROC glGetTexGeniv (VAL INT coord, VAL INT pname, INT params)
glTexEnvf
occGL.inc
3993

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glTexEnvf (VAL INT target, VAL INT pname, VAL REAL32 param)
glTexEnvi
occGL.inc
4003

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLint

INLINE PROC glTexEnvi (VAL INT target, VAL INT pname, VAL INT param)
glTexEnvfv
occGL.inc
4013

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

REAL32

is a pointer to a p.q(const).GLfloat

INLINE PROC glTexEnvfv (VAL INT target, VAL INT pname, REAL32 params)
glTexEnviv
occGL.inc
4023

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

INT

is a pointer to a p.q(const).GLint

INLINE PROC glTexEnviv (VAL INT target, VAL INT pname, INT params)
glGetTexEnvfv
occGL.inc
4033

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

REAL32

is a pointer to a p.GLfloat

INLINE PROC glGetTexEnvfv (VAL INT target, VAL INT pname, REAL32 params)
glGetTexEnviv
occGL.inc
4043

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

INT

is a pointer to a p.GLint

INLINE PROC glGetTexEnviv (VAL INT target, VAL INT pname, INT params)
glTexParameterf
occGL.inc
4053

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glTexParameterf (VAL INT target, VAL INT pname, VAL REAL32 param)
glTexParameteri
occGL.inc
4063

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLint

INLINE PROC glTexParameteri (VAL INT target, VAL INT pname, VAL INT param)
glTexParameterfv
occGL.inc
4073

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

REAL32

is a pointer to a p.q(const).GLfloat

INLINE PROC glTexParameterfv (VAL INT target, VAL INT pname, REAL32 params)
glTexParameteriv
occGL.inc
4083

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

INT

is a pointer to a p.q(const).GLint

INLINE PROC glTexParameteriv (VAL INT target, VAL INT pname, INT params)
glGetTexParameterfv
occGL.inc
4093

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

REAL32

is a pointer to a p.GLfloat

INLINE PROC glGetTexParameterfv (VAL INT target, VAL INT pname, REAL32 params)
glGetTexParameteriv
occGL.inc
4103

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

INT

is a pointer to a p.GLint

INLINE PROC glGetTexParameteriv (VAL INT target, VAL INT pname, INT params)
glGetTexLevelParameterfv
occGL.inc
4114

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLenum

REAL32

is a pointer to a p.GLfloat

INLINE PROC glGetTexLevelParameterfv (VAL INT target, VAL INT level, VAL INT pname, REAL32 params)
glGetTexLevelParameteriv
occGL.inc
4125

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLenum

INT

is a pointer to a p.GLint

INLINE PROC glGetTexLevelParameteriv (VAL INT target, VAL INT level, VAL INT pname, INT params)
glTexImage1D
occGL.inc
4140

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLsizei

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

VAL []INT

pointer to a C array of q(const).GLvoid

INLINE PROC glTexImage1D (VAL INT target, VAL INT level, VAL INT internalFormat, VAL INT width, VAL INT border, VAL INT format, VAL INT type, VAL []INT pixels)
glTexImage2D
occGL.inc
4156

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLsizei

VAL INT

is a pointer to a GLsizei

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

VAL []INT

pointer to a C array of q(const).GLvoid

INLINE PROC glTexImage2D (VAL INT target, VAL INT level, VAL INT internalFormat, VAL INT width, VAL INT height, VAL INT border, VAL INT format, VAL INT type, VAL []INT pixels)
glGetTexImage
occGL.inc
4168

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

[]INT

pointer to a C array of GLvoid

INLINE PROC glGetTexImage (VAL INT target, VAL INT level, VAL INT format, VAL INT type, []INT pixels)
glGenTextures
occGL.inc
4177

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLsizei

[]INT

pointer to a C array of GLuint

INLINE PROC glGenTextures (VAL INT n, []INT textures)
glDeleteTextures
occGL.inc
4186

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLsizei

VAL []INT

pointer to a C array of q(const).GLuint

INLINE PROC glDeleteTextures (VAL INT n, VAL []INT textures)
glBindTexture
occGL.inc
4195

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLuint

INLINE PROC glBindTexture (VAL INT target, VAL INT texture)
glPrioritizeTextures
occGL.inc
4205

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLsizei

VAL []INT

pointer to a C array of q(const).GLuint

REAL32

is a pointer to a p.q(const).GLclampf

INLINE PROC glPrioritizeTextures (VAL INT n, VAL []INT textures, REAL32 priorities)
glAreTexturesResident
occGL.inc
4216

FFI interface to C function

FFI interface to C function
RESULT BYTE

contains the return value of the function and is of type GLboolean

VAL INT

is a pointer to a GLsizei

VAL []INT

pointer to a C array of q(const).GLuint

BYTE

is a pointer to a p.GLboolean

INLINE PROC glAreTexturesResident (RESULT BYTE return.value, VAL INT n, VAL []INT textures, BYTE residences)
glIsTexture
occGL.inc
4225

FFI interface to C function

FFI interface to C function
RESULT BYTE

contains the return value of the function and is of type GLboolean

VAL INT

is a pointer to a GLuint

INLINE PROC glIsTexture (RESULT BYTE return.value, VAL INT texture)
glTexSubImage1D
occGL.inc
4239

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLsizei

VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

VAL []INT

pointer to a C array of q(const).GLvoid

INLINE PROC glTexSubImage1D (VAL INT target, VAL INT level, VAL INT xoffset, VAL INT width, VAL INT format, VAL INT type, VAL []INT pixels)
glTexSubImage2D
occGL.inc
4255

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLsizei

VAL INT

is a pointer to a GLsizei

VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

VAL []INT

pointer to a C array of q(const).GLvoid

INLINE PROC glTexSubImage2D (VAL INT target, VAL INT level, VAL INT xoffset, VAL INT yoffset, VAL INT width, VAL INT height, VAL INT format, VAL INT type, VAL []INT pixels)
glCopyTexImage1D
occGL.inc
4269

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLsizei

VAL INT

is a pointer to a GLint

INLINE PROC glCopyTexImage1D (VAL INT target, VAL INT level, VAL INT internalformat, VAL INT x, VAL INT y, VAL INT width, VAL INT border)
glCopyTexImage2D
occGL.inc
4284

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLsizei

VAL INT

is a pointer to a GLsizei

VAL INT

is a pointer to a GLint

INLINE PROC glCopyTexImage2D (VAL INT target, VAL INT level, VAL INT internalformat, VAL INT x, VAL INT y, VAL INT width, VAL INT height, VAL INT border)
glCopyTexSubImage1D
occGL.inc
4297

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLsizei

INLINE PROC glCopyTexSubImage1D (VAL INT target, VAL INT level, VAL INT xoffset, VAL INT x, VAL INT y, VAL INT width)
glCopyTexSubImage2D
occGL.inc
4312

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLsizei

VAL INT

is a pointer to a GLsizei

INLINE PROC glCopyTexSubImage2D (VAL INT target, VAL INT level, VAL INT xoffset, VAL INT yoffset, VAL INT x, VAL INT y, VAL INT width, VAL INT height)
glMap1d
occGL.inc
4325

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

REAL64

is a pointer to a p.q(const).GLdouble

INLINE PROC glMap1d (VAL INT target, VAL REAL64 u1, VAL REAL64 u2, VAL INT stride, VAL INT order, REAL64 points)
glMap1f
occGL.inc
4338

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

REAL32

is a pointer to a p.q(const).GLfloat

INLINE PROC glMap1f (VAL INT target, VAL REAL32 u1, VAL REAL32 u2, VAL INT stride, VAL INT order, REAL32 points)
glMap2d
occGL.inc
4355

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

REAL64

is a pointer to a p.q(const).GLdouble

INLINE PROC glMap2d (VAL INT target, VAL REAL64 u1, VAL REAL64 u2, VAL INT ustride, VAL INT uorder, VAL REAL64 v1, VAL REAL64 v2, VAL INT vstride, VAL INT vorder, REAL64 points)
glMap2f
occGL.inc
4372

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

REAL32

is a pointer to a p.q(const).GLfloat

INLINE PROC glMap2f (VAL INT target, VAL REAL32 u1, VAL REAL32 u2, VAL INT ustride, VAL INT uorder, VAL REAL32 v1, VAL REAL32 v2, VAL INT vstride, VAL INT vorder, REAL32 points)
glGetMapdv
occGL.inc
4382

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

[]REAL64

pointer to a C array of GLdouble

INLINE PROC glGetMapdv (VAL INT target, VAL INT query, []REAL64 v)
glGetMapfv
occGL.inc
4392

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

[]REAL32

pointer to a C array of GLfloat

INLINE PROC glGetMapfv (VAL INT target, VAL INT query, []REAL32 v)
glGetMapiv
occGL.inc
4402

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLenum

[]INT

pointer to a C array of GLint

INLINE PROC glGetMapiv (VAL INT target, VAL INT query, []INT v)
glEvalCoord1d
occGL.inc
4410

FFI interface to C function

FFI interface to C function
VAL REAL64

is a pointer to a GLdouble

INLINE PROC glEvalCoord1d (VAL REAL64 u)
glEvalCoord1f
occGL.inc
4418

FFI interface to C function

FFI interface to C function
VAL REAL32

is a pointer to a GLfloat

INLINE PROC glEvalCoord1f (VAL REAL32 u)
glEvalCoord1dv
occGL.inc
4426

FFI interface to C function

FFI interface to C function
VAL [1]REAL64

pointer to a C array of q(const).GLdouble

INLINE PROC glEvalCoord1dv (VAL [1]REAL64 u)
glEvalCoord1fv
occGL.inc
4434

FFI interface to C function

FFI interface to C function
VAL [1]REAL32

pointer to a C array of q(const).GLfloat

INLINE PROC glEvalCoord1fv (VAL [1]REAL32 u)
glEvalCoord2d
occGL.inc
4443

FFI interface to C function

FFI interface to C function
VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

INLINE PROC glEvalCoord2d (VAL REAL64 u, VAL REAL64 v)
glEvalCoord2f
occGL.inc
4452

FFI interface to C function

FFI interface to C function
VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glEvalCoord2f (VAL REAL32 u, VAL REAL32 v)
glEvalCoord2dv
occGL.inc
4460

FFI interface to C function

FFI interface to C function
VAL [2]REAL64

pointer to a C array of q(const).GLdouble

INLINE PROC glEvalCoord2dv (VAL [2]REAL64 u)
glEvalCoord2fv
occGL.inc
4468

FFI interface to C function

FFI interface to C function
VAL [2]REAL32

pointer to a C array of q(const).GLfloat

INLINE PROC glEvalCoord2fv (VAL [2]REAL32 u)
glMapGrid1d
occGL.inc
4478

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

INLINE PROC glMapGrid1d (VAL INT un, VAL REAL64 u1, VAL REAL64 u2)
glMapGrid1f
occGL.inc
4488

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glMapGrid1f (VAL INT un, VAL REAL32 u1, VAL REAL32 u2)
glMapGrid2d
occGL.inc
4501

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL INT

is a pointer to a GLint

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

INLINE PROC glMapGrid2d (VAL INT un, VAL REAL64 u1, VAL REAL64 u2, VAL INT vn, VAL REAL64 v1, VAL REAL64 v2)
glMapGrid2f
occGL.inc
4514

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

VAL INT

is a pointer to a GLint

VAL REAL32

is a pointer to a GLfloat

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glMapGrid2f (VAL INT un, VAL REAL32 u1, VAL REAL32 u2, VAL INT vn, VAL REAL32 v1, VAL REAL32 v2)
glEvalPoint1
occGL.inc
4522

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

INLINE PROC glEvalPoint1 (VAL INT i)
glEvalPoint2
occGL.inc
4531

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

INLINE PROC glEvalPoint2 (VAL INT i, VAL INT j)
glEvalMesh1
occGL.inc
4541

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

INLINE PROC glEvalMesh1 (VAL INT mode, VAL INT i1, VAL INT i2)
glEvalMesh2
occGL.inc
4553

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

INLINE PROC glEvalMesh2 (VAL INT mode, VAL INT i1, VAL INT i2, VAL INT j1, VAL INT j2)
glFogf
occGL.inc
4562

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL REAL32

is a pointer to a GLfloat

INLINE PROC glFogf (VAL INT pname, VAL REAL32 param)
glFogi
occGL.inc
4571

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLint

INLINE PROC glFogi (VAL INT pname, VAL INT param)
glFogfv
occGL.inc
4580

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

REAL32

is a pointer to a p.q(const).GLfloat

INLINE PROC glFogfv (VAL INT pname, REAL32 params)
glFogiv
occGL.inc
4589

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLenum

INT

is a pointer to a p.q(const).GLint

INLINE PROC glFogiv (VAL INT pname, INT params)
glFeedbackBuffer
occGL.inc
4599

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLsizei

VAL INT

is a pointer to a GLenum

REAL32

is a pointer to a p.GLfloat

INLINE PROC glFeedbackBuffer (VAL INT size, VAL INT type, REAL32 buffer)
glPassThrough
occGL.inc
4607

FFI interface to C function

FFI interface to C function
VAL REAL32

is a pointer to a GLfloat

INLINE PROC glPassThrough (VAL REAL32 token)
glSelectBuffer
occGL.inc
4616

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLsizei

INT

is a pointer to a p.GLuint

INLINE PROC glSelectBuffer (VAL INT size, INT buffer)
glInitNames
occGL.inc
4623

FFI interface to C function

FFI interface to C function
INLINE PROC glInitNames ()
glLoadName
occGL.inc
4631

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLuint

INLINE PROC glLoadName (VAL INT name)
glPushName
occGL.inc
4639

FFI interface to C function

FFI interface to C function
VAL INT

is a pointer to a GLuint

INLINE PROC glPushName (VAL INT name)
glPopName
occGL.inc
4646

FFI interface to C function

FFI interface to C function
INLINE PROC glPopName ()
GL.MESA.ycbcr.texture
occGL.inc
4651

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MESA.ycbcr.texture
GL.YCBCR.MESA
occGL.inc
4653

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.YCBCR.MESA
GL.UNSIGNED.SHORT.8.8.MESA
occGL.inc
4655

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.UNSIGNED.SHORT.8.8.MESA
GL.UNSIGNED.SHORT.8.8.REV.MESA
occGL.inc
4657

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.UNSIGNED.SHORT.8.8.REV.MESA
GL.MESA.pack.invert
occGL.inc
4659

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.MESA.pack.invert
GL.PACK.INVERT.MESA
occGL.inc
4661

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.PACK.INVERT.MESA
GL.APPLE.client.storage
occGL.inc
4663

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.APPLE.client.storage
GL.UNPACK.CLIENT.STORAGE.APPLE
occGL.inc
4665

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.UNPACK.CLIENT.STORAGE.APPLE
GL.APPLE.ycbcr.422
occGL.inc
4667

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.APPLE.ycbcr.422
GL.YCBCR.422.APPLE
occGL.inc
4669

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.YCBCR.422.APPLE
GL.UNSIGNED.SHORT.8.8.APPLE
occGL.inc
4671

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.UNSIGNED.SHORT.8.8.APPLE
GL.UNSIGNED.SHORT.8.8.REV.APPLE
occGL.inc
4673

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GL.UNSIGNED.SHORT.8.8.REV.APPLE
GLU.EXT.object.space.tess
occGL.inc
4675

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.EXT.object.space.tess
GLU.EXT.nurbs.tessellator
occGL.inc
4677

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.EXT.nurbs.tessellator
GLU.FALSE
occGL.inc
4679

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.FALSE
GLU.TRUE
occGL.inc
4681

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TRUE
GLU.VERSION.1.1
occGL.inc
4683

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.VERSION.1.1
GLU.VERSION.1.2
occGL.inc
4685

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.VERSION.1.2
GLU.VERSION.1.3
occGL.inc
4687

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.VERSION.1.3
GLU.VERSION
occGL.inc
4689

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.VERSION
GLU.EXTENSIONS
occGL.inc
4691

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.EXTENSIONS
GLU.INVALID.ENUM
occGL.inc
4693

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.INVALID.ENUM
GLU.INVALID.VALUE
occGL.inc
4695

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.INVALID.VALUE
GLU.OUT.OF.MEMORY
occGL.inc
4697

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.OUT.OF.MEMORY
GLU.INVALID.OPERATION
occGL.inc
4699

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.INVALID.OPERATION
GLU.OUTLINE.POLYGON
occGL.inc
4701

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.OUTLINE.POLYGON
GLU.OUTLINE.PATCH
occGL.inc
4703

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.OUTLINE.PATCH
GLU.NURBS.ERROR
occGL.inc
4705

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR
GLU.ERROR
occGL.inc
4707

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.ERROR
GLU.NURBS.BEGIN
occGL.inc
4709

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.BEGIN
GLU.NURBS.BEGIN.EXT
occGL.inc
4711

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.BEGIN.EXT
GLU.NURBS.VERTEX
occGL.inc
4713

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.VERTEX
GLU.NURBS.VERTEX.EXT
occGL.inc
4715

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.VERTEX.EXT
GLU.NURBS.NORMAL
occGL.inc
4717

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.NORMAL
GLU.NURBS.NORMAL.EXT
occGL.inc
4719

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.NORMAL.EXT
GLU.NURBS.COLOR
occGL.inc
4721

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.COLOR
GLU.NURBS.COLOR.EXT
occGL.inc
4723

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.COLOR.EXT
GLU.NURBS.TEXTURE.COORD
occGL.inc
4725

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.TEXTURE.COORD
GLU.NURBS.TEX.COORD.EXT
occGL.inc
4727

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.TEX.COORD.EXT
GLU.NURBS.END
occGL.inc
4729

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.END
GLU.NURBS.END.EXT
occGL.inc
4731

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.END.EXT
GLU.NURBS.BEGIN.DATA
occGL.inc
4733

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.BEGIN.DATA
GLU.NURBS.BEGIN.DATA.EXT
occGL.inc
4735

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.BEGIN.DATA.EXT
GLU.NURBS.VERTEX.DATA
occGL.inc
4737

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.VERTEX.DATA
GLU.NURBS.VERTEX.DATA.EXT
occGL.inc
4739

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.VERTEX.DATA.EXT
GLU.NURBS.NORMAL.DATA
occGL.inc
4741

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.NORMAL.DATA
GLU.NURBS.NORMAL.DATA.EXT
occGL.inc
4743

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.NORMAL.DATA.EXT
GLU.NURBS.COLOR.DATA
occGL.inc
4745

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.COLOR.DATA
GLU.NURBS.COLOR.DATA.EXT
occGL.inc
4747

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.COLOR.DATA.EXT
GLU.NURBS.TEXTURE.COORD.DATA
occGL.inc
4749

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.TEXTURE.COORD.DATA
GLU.NURBS.TEX.COORD.DATA.EXT
occGL.inc
4751

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.TEX.COORD.DATA.EXT
GLU.NURBS.END.DATA
occGL.inc
4753

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.END.DATA
GLU.NURBS.END.DATA.EXT
occGL.inc
4755

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.END.DATA.EXT
GLU.NURBS.ERROR1
occGL.inc
4757

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR1
GLU.NURBS.ERROR2
occGL.inc
4759

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR2
GLU.NURBS.ERROR3
occGL.inc
4761

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR3
GLU.NURBS.ERROR4
occGL.inc
4763

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR4
GLU.NURBS.ERROR5
occGL.inc
4765

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR5
GLU.NURBS.ERROR6
occGL.inc
4767

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR6
GLU.NURBS.ERROR7
occGL.inc
4769

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR7
GLU.NURBS.ERROR8
occGL.inc
4771

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR8
GLU.NURBS.ERROR9
occGL.inc
4773

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR9
GLU.NURBS.ERROR10
occGL.inc
4775

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR10
GLU.NURBS.ERROR11
occGL.inc
4777

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR11
GLU.NURBS.ERROR12
occGL.inc
4779

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR12
GLU.NURBS.ERROR13
occGL.inc
4781

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR13
GLU.NURBS.ERROR14
occGL.inc
4783

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR14
GLU.NURBS.ERROR15
occGL.inc
4785

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR15
GLU.NURBS.ERROR16
occGL.inc
4787

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR16
GLU.NURBS.ERROR17
occGL.inc
4789

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR17
GLU.NURBS.ERROR18
occGL.inc
4791

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR18
GLU.NURBS.ERROR19
occGL.inc
4793

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR19
GLU.NURBS.ERROR20
occGL.inc
4795

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR20
GLU.NURBS.ERROR21
occGL.inc
4797

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR21
GLU.NURBS.ERROR22
occGL.inc
4799

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR22
GLU.NURBS.ERROR23
occGL.inc
4801

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR23
GLU.NURBS.ERROR24
occGL.inc
4803

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR24
GLU.NURBS.ERROR25
occGL.inc
4805

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR25
GLU.NURBS.ERROR26
occGL.inc
4807

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR26
GLU.NURBS.ERROR27
occGL.inc
4809

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR27
GLU.NURBS.ERROR28
occGL.inc
4811

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR28
GLU.NURBS.ERROR29
occGL.inc
4813

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR29
GLU.NURBS.ERROR30
occGL.inc
4815

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR30
GLU.NURBS.ERROR31
occGL.inc
4817

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR31
GLU.NURBS.ERROR32
occGL.inc
4819

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR32
GLU.NURBS.ERROR33
occGL.inc
4821

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR33
GLU.NURBS.ERROR34
occGL.inc
4823

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR34
GLU.NURBS.ERROR35
occGL.inc
4825

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR35
GLU.NURBS.ERROR36
occGL.inc
4827

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR36
GLU.NURBS.ERROR37
occGL.inc
4829

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.ERROR37
GLU.AUTO.LOAD.MATRIX
occGL.inc
4831

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.AUTO.LOAD.MATRIX
GLU.CULLING
occGL.inc
4833

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.CULLING
GLU.SAMPLING.TOLERANCE
occGL.inc
4835

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.SAMPLING.TOLERANCE
GLU.DISPLAY.MODE
occGL.inc
4837

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.DISPLAY.MODE
GLU.PARAMETRIC.TOLERANCE
occGL.inc
4839

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.PARAMETRIC.TOLERANCE
GLU.SAMPLING.METHOD
occGL.inc
4841

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.SAMPLING.METHOD
GLU.U.STEP
occGL.inc
4843

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.U.STEP
GLU.V.STEP
occGL.inc
4845

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.V.STEP
GLU.NURBS.MODE
occGL.inc
4847

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.MODE
GLU.NURBS.MODE.EXT
occGL.inc
4849

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.MODE.EXT
GLU.NURBS.TESSELLATOR
occGL.inc
4851

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.TESSELLATOR
GLU.NURBS.TESSELLATOR.EXT
occGL.inc
4853

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.TESSELLATOR.EXT
GLU.NURBS.RENDERER
occGL.inc
4855

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.RENDERER
GLU.NURBS.RENDERER.EXT
occGL.inc
4857

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NURBS.RENDERER.EXT
GLU.OBJECT.PARAMETRIC.ERROR
occGL.inc
4859

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.OBJECT.PARAMETRIC.ERROR
GLU.OBJECT.PARAMETRIC.ERROR.EXT
occGL.inc
4861

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.OBJECT.PARAMETRIC.ERROR.EXT
GLU.OBJECT.PATH.LENGTH
occGL.inc
4863

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.OBJECT.PATH.LENGTH
GLU.OBJECT.PATH.LENGTH.EXT
occGL.inc
4865

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.OBJECT.PATH.LENGTH.EXT
GLU.PATH.LENGTH
occGL.inc
4867

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.PATH.LENGTH
GLU.PARAMETRIC.ERROR
occGL.inc
4869

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.PARAMETRIC.ERROR
GLU.DOMAIN.DISTANCE
occGL.inc
4871

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.DOMAIN.DISTANCE
GLU.MAP1.TRIM.2
occGL.inc
4873

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.MAP1.TRIM.2
GLU.MAP1.TRIM.3
occGL.inc
4875

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.MAP1.TRIM.3
GLU.POINT
occGL.inc
4877

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.POINT
GLU.LINE
occGL.inc
4879

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.LINE
GLU.FILL
occGL.inc
4881

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.FILL
GLU.SILHOUETTE
occGL.inc
4883

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.SILHOUETTE
GLU.SMOOTH
occGL.inc
4885

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.SMOOTH
GLU.FLAT
occGL.inc
4887

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.FLAT
GLU.NONE
occGL.inc
4889

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.NONE
GLU.OUTSIDE
occGL.inc
4891

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.OUTSIDE
GLU.INSIDE
occGL.inc
4893

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.INSIDE
GLU.TESS.BEGIN
occGL.inc
4895

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.BEGIN
GLU.BEGIN
occGL.inc
4897

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.BEGIN
GLU.TESS.VERTEX
occGL.inc
4899

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.VERTEX
GLU.VERTEX
occGL.inc
4901

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.VERTEX
GLU.TESS.END
occGL.inc
4903

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.END
GLU.END
occGL.inc
4905

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.END
GLU.TESS.ERROR
occGL.inc
4907

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.ERROR
GLU.TESS.EDGE.FLAG
occGL.inc
4909

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.EDGE.FLAG
GLU.EDGE.FLAG
occGL.inc
4911

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.EDGE.FLAG
GLU.TESS.COMBINE
occGL.inc
4913

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.COMBINE
GLU.TESS.BEGIN.DATA
occGL.inc
4915

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.BEGIN.DATA
GLU.TESS.VERTEX.DATA
occGL.inc
4917

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.VERTEX.DATA
GLU.TESS.END.DATA
occGL.inc
4919

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.END.DATA
GLU.TESS.ERROR.DATA
occGL.inc
4921

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.ERROR.DATA
GLU.TESS.EDGE.FLAG.DATA
occGL.inc
4923

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.EDGE.FLAG.DATA
GLU.TESS.COMBINE.DATA
occGL.inc
4925

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.COMBINE.DATA
GLU.CW
occGL.inc
4927

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.CW
GLU.CCW
occGL.inc
4929

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.CCW
GLU.INTERIOR
occGL.inc
4931

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.INTERIOR
GLU.EXTERIOR
occGL.inc
4933

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.EXTERIOR
GLU.UNKNOWN
occGL.inc
4935

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.UNKNOWN
GLU.TESS.WINDING.RULE
occGL.inc
4937

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.WINDING.RULE
GLU.TESS.BOUNDARY.ONLY
occGL.inc
4939

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.BOUNDARY.ONLY
GLU.TESS.TOLERANCE
occGL.inc
4941

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.TOLERANCE
GLU.TESS.ERROR1
occGL.inc
4943

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.ERROR1
GLU.TESS.ERROR2
occGL.inc
4945

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.ERROR2
GLU.TESS.ERROR3
occGL.inc
4947

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.ERROR3
GLU.TESS.ERROR4
occGL.inc
4949

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.ERROR4
GLU.TESS.ERROR5
occGL.inc
4951

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.ERROR5
GLU.TESS.ERROR6
occGL.inc
4953

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.ERROR6
GLU.TESS.ERROR7
occGL.inc
4955

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.ERROR7
GLU.TESS.ERROR8
occGL.inc
4957

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.ERROR8
GLU.TESS.MISSING.BEGIN.POLYGON
occGL.inc
4959

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.MISSING.BEGIN.POLYGON
GLU.TESS.MISSING.BEGIN.CONTOUR
occGL.inc
4961

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.MISSING.BEGIN.CONTOUR
GLU.TESS.MISSING.END.POLYGON
occGL.inc
4963

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.MISSING.END.POLYGON
GLU.TESS.MISSING.END.CONTOUR
occGL.inc
4965

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.MISSING.END.CONTOUR
GLU.TESS.COORD.TOO.LARGE
occGL.inc
4967

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.COORD.TOO.LARGE
GLU.TESS.NEED.COMBINE.CALLBACK
occGL.inc
4969

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.NEED.COMBINE.CALLBACK
GLU.TESS.WINDING.ODD
occGL.inc
4971

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.WINDING.ODD
GLU.TESS.WINDING.NONZERO
occGL.inc
4973

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.WINDING.NONZERO
GLU.TESS.WINDING.POSITIVE
occGL.inc
4975

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.WINDING.POSITIVE
GLU.TESS.WINDING.NEGATIVE
occGL.inc
4977

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.WINDING.NEGATIVE
GLU.TESS.WINDING.ABS.GEQ.TWO
occGL.inc
4979

C constant turned into a VAL INT

C constant turned into a VAL INT
VAL INT GLU.TESS.WINDING.ABS.GEQ.TWO
GLUnurbs
occGL.inc
4981

This is a pointer to the C struct GLUnurbs

This is a pointer to the C struct GLUnurbs
DATA TYPE GLUnurbs
GLUquadric
occGL.inc
4984

This is a pointer to the C struct GLUquadric

This is a pointer to the C struct GLUquadric
DATA TYPE GLUquadric
GLUtesselator
occGL.inc
4987

This is a pointer to the C struct GLUtesselator

This is a pointer to the C struct GLUtesselator
DATA TYPE GLUtesselator
GLUnurbsObj
occGL.inc
4990

This is a pointer to the C struct GLUnurbsObj

This is a pointer to the C struct GLUnurbsObj
DATA TYPE GLUnurbsObj
GLUquadricObj
occGL.inc
4993

This is a pointer to the C struct GLUquadricObj

This is a pointer to the C struct GLUquadricObj
DATA TYPE GLUquadricObj
GLUtesselatorObj
occGL.inc
4996

This is a pointer to the C struct GLUtesselatorObj

This is a pointer to the C struct GLUtesselatorObj
DATA TYPE GLUtesselatorObj
GLUtriangulatorObj
occGL.inc
4999

This is a pointer to the C struct GLUtriangulatorObj

This is a pointer to the C struct GLUtriangulatorObj
DATA TYPE GLUtriangulatorObj
gluBeginCurve
occGL.inc
5005

FFI interface to C function

FFI interface to C function
GLUnurbs

is a pointer to a p.GLUnurbs

INLINE PROC gluBeginCurve (GLUnurbs nurb)
gluBeginPolygon
occGL.inc
5013

FFI interface to C function

FFI interface to C function
GLUtesselator

is a pointer to a p.GLUtesselator

INLINE PROC gluBeginPolygon (GLUtesselator tess)
gluBeginSurface
occGL.inc
5021

FFI interface to C function

FFI interface to C function
GLUnurbs

is a pointer to a p.GLUnurbs

INLINE PROC gluBeginSurface (GLUnurbs nurb)
gluBeginTrim
occGL.inc
5029

FFI interface to C function

FFI interface to C function
GLUnurbs

is a pointer to a p.GLUnurbs

INLINE PROC gluBeginTrim (GLUnurbs nurb)
gluCylinder
occGL.inc
5042

FFI interface to C function

FFI interface to C function
GLUquadric

is a pointer to a p.GLUquadric

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

INLINE PROC gluCylinder (GLUquadric quad, VAL REAL64 base, VAL REAL64 top, VAL REAL64 height, VAL INT slices, VAL INT stacks)
gluDeleteNurbsRenderer
occGL.inc
5050

FFI interface to C function

FFI interface to C function
GLUnurbs

is a pointer to a p.GLUnurbs

INLINE PROC gluDeleteNurbsRenderer (GLUnurbs nurb)
gluDeleteQuadric
occGL.inc
5058

FFI interface to C function

FFI interface to C function
GLUquadric

is a pointer to a p.GLUquadric

INLINE PROC gluDeleteQuadric (GLUquadric quad)
gluDeleteTess
occGL.inc
5066

FFI interface to C function

FFI interface to C function
GLUtesselator

is a pointer to a p.GLUtesselator

INLINE PROC gluDeleteTess (GLUtesselator tess)
gluDisk
occGL.inc
5078

FFI interface to C function

FFI interface to C function
GLUquadric

is a pointer to a p.GLUquadric

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

INLINE PROC gluDisk (GLUquadric quad, VAL REAL64 inner, VAL REAL64 outer, VAL INT slices, VAL INT loops)
gluEndCurve
occGL.inc
5086

FFI interface to C function

FFI interface to C function
GLUnurbs

is a pointer to a p.GLUnurbs

INLINE PROC gluEndCurve (GLUnurbs nurb)
gluEndPolygon
occGL.inc
5094

FFI interface to C function

FFI interface to C function
GLUtesselator

is a pointer to a p.GLUtesselator

INLINE PROC gluEndPolygon (GLUtesselator tess)
gluEndSurface
occGL.inc
5102

FFI interface to C function

FFI interface to C function
GLUnurbs

is a pointer to a p.GLUnurbs

INLINE PROC gluEndSurface (GLUnurbs nurb)
gluEndTrim
occGL.inc
5110

FFI interface to C function

FFI interface to C function
GLUnurbs

is a pointer to a p.GLUnurbs

INLINE PROC gluEndTrim (GLUnurbs nurb)
gluErrorString
occGL.inc
5119

FFI interface to C function

FFI interface to C function
RESULT BYTE

contains the return value of the function and is of type p.q(const).GLubyte

VAL INT

is a pointer to a GLenum

INLINE PROC gluErrorString (RESULT BYTE return.value, VAL INT error)
gluGetNurbsProperty
occGL.inc
5129

FFI interface to C function

FFI interface to C function
GLUnurbs

is a pointer to a p.GLUnurbs

VAL INT

is a pointer to a GLenum

REAL32

is a pointer to a p.GLfloat

INLINE PROC gluGetNurbsProperty (GLUnurbs nurb, VAL INT property, REAL32 data)
gluGetString
occGL.inc
5138

FFI interface to C function

FFI interface to C function
RESULT BYTE

contains the return value of the function and is of type p.q(const).GLubyte

VAL INT

is a pointer to a GLenum

INLINE PROC gluGetString (RESULT BYTE return.value, VAL INT name)
gluGetTessProperty
occGL.inc
5148

FFI interface to C function

FFI interface to C function
GLUtesselator

is a pointer to a p.GLUtesselator

VAL INT

is a pointer to a GLenum

REAL64

is a pointer to a p.GLdouble

INLINE PROC gluGetTessProperty (GLUtesselator tess, VAL INT which, REAL64 data)
gluLoadSamplingMatrices
occGL.inc
5159

FFI interface to C function

FFI interface to C function
GLUnurbs

is a pointer to a p.GLUnurbs

REAL32

is a pointer to a p.q(const).GLfloat

REAL32

is a pointer to a p.q(const).GLfloat

INT

is a pointer to a p.q(const).GLint

INLINE PROC gluLoadSamplingMatrices (GLUnurbs nurb, REAL32 model, REAL32 perspective, INT view)
gluLookAt
occGL.inc
5175

FFI interface to C function

FFI interface to C function
VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

INLINE PROC gluLookAt (VAL REAL64 eyeX, VAL REAL64 eyeY, VAL REAL64 eyeZ, VAL REAL64 centerX, VAL REAL64 centerY, VAL REAL64 centerZ, VAL REAL64 upX, VAL REAL64 upY, VAL REAL64 upZ)
gluNewNurbsRenderer
occGL.inc
5183

FFI interface to C function

FFI interface to C function
GLUnurbs

contains the return value of the function and is of type p.GLUnurbs

INLINE PROC gluNewNurbsRenderer (GLUnurbs return.value)
gluNewQuadric
occGL.inc
5191

FFI interface to C function

FFI interface to C function
GLUquadric

contains the return value of the function and is of type p.GLUquadric

INLINE PROC gluNewQuadric (GLUquadric return.value)
gluNewTess
occGL.inc
5199

FFI interface to C function

FFI interface to C function
GLUtesselator

contains the return value of the function and is of type p.GLUtesselator

INLINE PROC gluNewTess (GLUtesselator return.value)
gluNextContour
occGL.inc
5208

FFI interface to C function

FFI interface to C function
GLUtesselator

is a pointer to a p.GLUtesselator

VAL INT

is a pointer to a GLenum

INLINE PROC gluNextContour (GLUtesselator tess, VAL INT type)
gluNurbsCurve
occGL.inc
5222

FFI interface to C function

FFI interface to C function
GLUnurbs

is a pointer to a p.GLUnurbs

VAL INT

is a pointer to a GLint

REAL32

is a pointer to a p.GLfloat

VAL INT

is a pointer to a GLint

REAL32

is a pointer to a p.GLfloat

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLenum

INLINE PROC gluNurbsCurve (GLUnurbs nurb, VAL INT knotCount, REAL32 knots, VAL INT stride, REAL32 control, VAL INT order, VAL INT type)
gluNurbsProperty
occGL.inc
5232

FFI interface to C function

FFI interface to C function
GLUnurbs

is a pointer to a p.GLUnurbs

VAL INT

is a pointer to a GLenum

VAL REAL32

is a pointer to a GLfloat

INLINE PROC gluNurbsProperty (GLUnurbs nurb, VAL INT property, VAL REAL32 value)
gluNurbsSurface
occGL.inc
5250

FFI interface to C function

FFI interface to C function
GLUnurbs

is a pointer to a p.GLUnurbs

VAL INT

is a pointer to a GLint

REAL32

is a pointer to a p.GLfloat

VAL INT

is a pointer to a GLint

REAL32

is a pointer to a p.GLfloat

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

REAL32

is a pointer to a p.GLfloat

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLenum

INLINE PROC gluNurbsSurface (GLUnurbs nurb, VAL INT sKnotCount, REAL32 sKnots, VAL INT tKnotCount, REAL32 tKnots, VAL INT sStride, VAL INT tStride, REAL32 control, VAL INT sOrder, VAL INT tOrder, VAL INT type)
gluOrtho2D
occGL.inc
5261

FFI interface to C function

FFI interface to C function
VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

INLINE PROC gluOrtho2D (VAL REAL64 left, VAL REAL64 right, VAL REAL64 bottom, VAL REAL64 top)
gluPartialDisk
occGL.inc
5275

FFI interface to C function

FFI interface to C function
GLUquadric

is a pointer to a p.GLUquadric

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

INLINE PROC gluPartialDisk (GLUquadric quad, VAL REAL64 inner, VAL REAL64 outer, VAL INT slices, VAL INT loops, VAL REAL64 start, VAL REAL64 sweep)
gluPerspective
occGL.inc
5286

FFI interface to C function

FFI interface to C function
VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

INLINE PROC gluPerspective (VAL REAL64 fovy, VAL REAL64 aspect, VAL REAL64 zNear, VAL REAL64 zFar)
gluPickMatrix
occGL.inc
5298

FFI interface to C function

FFI interface to C function
VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

INT

is a pointer to a p.GLint

INLINE PROC gluPickMatrix (VAL REAL64 x, VAL REAL64 y, VAL REAL64 delX, VAL REAL64 delY, INT viewport)
gluProject
occGL.inc
5315

FFI interface to C function

FFI interface to C function
RESULT INT

contains the return value of the function and is of type GLint

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

REAL64

is a pointer to a p.q(const).GLdouble

REAL64

is a pointer to a p.q(const).GLdouble

INT

is a pointer to a p.q(const).GLint

REAL64

is a pointer to a p.GLdouble

REAL64

is a pointer to a p.GLdouble

REAL64

is a pointer to a p.GLdouble

INLINE PROC gluProject (RESULT INT return.value, VAL REAL64 objX, VAL REAL64 objY, VAL REAL64 objZ, REAL64 model, REAL64 proj, INT view, REAL64 winX, REAL64 winY, REAL64 winZ)
gluPwlCurve
occGL.inc
5327

FFI interface to C function

FFI interface to C function
GLUnurbs

is a pointer to a p.GLUnurbs

VAL INT

is a pointer to a GLint

REAL32

is a pointer to a p.GLfloat

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLenum

INLINE PROC gluPwlCurve (GLUnurbs nurb, VAL INT count, REAL32 data, VAL INT stride, VAL INT type)
gluQuadricDrawStyle
occGL.inc
5336

FFI interface to C function

FFI interface to C function
GLUquadric

is a pointer to a p.GLUquadric

VAL INT

is a pointer to a GLenum

INLINE PROC gluQuadricDrawStyle (GLUquadric quad, VAL INT draw)
gluQuadricNormals
occGL.inc
5345

FFI interface to C function

FFI interface to C function
GLUquadric

is a pointer to a p.GLUquadric

VAL INT

is a pointer to a GLenum

INLINE PROC gluQuadricNormals (GLUquadric quad, VAL INT normal)
gluQuadricOrientation
occGL.inc
5354

FFI interface to C function

FFI interface to C function
GLUquadric

is a pointer to a p.GLUquadric

VAL INT

is a pointer to a GLenum

INLINE PROC gluQuadricOrientation (GLUquadric quad, VAL INT orientation)
gluQuadricTexture
occGL.inc
5363

FFI interface to C function

FFI interface to C function
GLUquadric

is a pointer to a p.GLUquadric

VAL BYTE

is a pointer to a GLboolean

INLINE PROC gluQuadricTexture (GLUquadric quad, VAL BYTE texture)
gluScaleImage
occGL.inc
5380

FFI interface to C function

FFI interface to C function
RESULT INT

contains the return value of the function and is of type GLint

VAL INT

is a pointer to a GLenum

VAL INT

is a pointer to a GLsizei

VAL INT

is a pointer to a GLsizei

VAL INT

is a pointer to a GLenum

INT

is a pointer to a p.q(const).void

VAL INT

is a pointer to a GLsizei

VAL INT

is a pointer to a GLsizei

VAL INT

is a pointer to a GLenum

INT

is a pointer to a p.GLvoid

INLINE PROC gluScaleImage (RESULT INT return.value, VAL INT format, VAL INT wIn, VAL INT hIn, VAL INT typeIn, INT dataIn, VAL INT wOut, VAL INT hOut, VAL INT typeOut, INT dataOut)
gluSphere
occGL.inc
5391

FFI interface to C function

FFI interface to C function
GLUquadric

is a pointer to a p.GLUquadric

VAL REAL64

is a pointer to a GLdouble

VAL INT

is a pointer to a GLint

VAL INT

is a pointer to a GLint

INLINE PROC gluSphere (GLUquadric quad, VAL REAL64 radius, VAL INT slices, VAL INT stacks)
gluTessBeginContour
occGL.inc
5399

FFI interface to C function

FFI interface to C function
GLUtesselator

is a pointer to a p.GLUtesselator

INLINE PROC gluTessBeginContour (GLUtesselator tess)
gluTessBeginPolygon
occGL.inc
5408

FFI interface to C function

FFI interface to C function
GLUtesselator

is a pointer to a p.GLUtesselator

INT

is a pointer to a p.GLvoid

INLINE PROC gluTessBeginPolygon (GLUtesselator tess, INT data)
gluTessEndContour
occGL.inc
5416

FFI interface to C function

FFI interface to C function
GLUtesselator

is a pointer to a p.GLUtesselator

INLINE PROC gluTessEndContour (GLUtesselator tess)
gluTessEndPolygon
occGL.inc
5424

FFI interface to C function

FFI interface to C function
GLUtesselator

is a pointer to a p.GLUtesselator

INLINE PROC gluTessEndPolygon (GLUtesselator tess)
gluTessNormal
occGL.inc
5435

FFI interface to C function

FFI interface to C function
GLUtesselator

is a pointer to a p.GLUtesselator

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

INLINE PROC gluTessNormal (GLUtesselator tess, VAL REAL64 valueX, VAL REAL64 valueY, VAL REAL64 valueZ)
gluTessProperty
occGL.inc
5445

FFI interface to C function

FFI interface to C function
GLUtesselator

is a pointer to a p.GLUtesselator

VAL INT

is a pointer to a GLenum

VAL REAL64

is a pointer to a GLdouble

INLINE PROC gluTessProperty (GLUtesselator tess, VAL INT which, VAL REAL64 data)
gluTessVertex
occGL.inc
5455

FFI interface to C function

FFI interface to C function
GLUtesselator

is a pointer to a p.GLUtesselator

REAL64

is a pointer to a p.GLdouble

INT

is a pointer to a p.GLvoid

INLINE PROC gluTessVertex (GLUtesselator tess, REAL64 location, INT data)
gluUnProject
occGL.inc
5472

FFI interface to C function

FFI interface to C function
RESULT INT

contains the return value of the function and is of type GLint

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

VAL REAL64

is a pointer to a GLdouble

REAL64

is a pointer to a p.q(const).GLdouble

REAL64

is a pointer to a p.q(const).GLdouble

INT

is a pointer to a p.q(const).GLint

REAL64

is a pointer to a p.GLdouble

REAL64

is a pointer to a p.GLdouble

REAL64

is a pointer to a p.GLdouble

INLINE PROC gluUnProject (RESULT INT return.value, VAL REAL64 winX, VAL REAL64 winY, VAL REAL64 winZ, REAL64 model, REAL64 proj, INT view, REAL64 objX, REAL64 objY, REAL64 objZ)
occSDL

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

Interface to foreign library occSDL
SDL.INIT.TIMER
occSDL.inc
16

Foreign int constant SDL_INIT_TIMER.

Foreign int constant SDL_INIT_TIMER
VAL INT SDL.INIT.TIMER
SDL.INIT.AUDIO
occSDL.inc
18

Foreign int constant SDL_INIT_AUDIO.

Foreign int constant SDL_INIT_AUDIO
VAL INT SDL.INIT.AUDIO
SDL.INIT.VIDEO
occSDL.inc
20

Foreign int constant SDL_INIT_VIDEO.

Foreign int constant SDL_INIT_VIDEO
VAL INT SDL.INIT.VIDEO
SDL.INIT.CDROM
occSDL.inc
22

Foreign int constant SDL_INIT_CDROM.

Foreign int constant SDL_INIT_CDROM
VAL INT SDL.INIT.CDROM
SDL.INIT.JOYSTICK
occSDL.inc
24

Foreign int constant SDL_INIT_JOYSTICK.

Foreign int constant SDL_INIT_JOYSTICK
VAL INT SDL.INIT.JOYSTICK
SDL.INIT.NOPARACHUTE
occSDL.inc
26

Foreign int constant SDL_INIT_NOPARACHUTE.

Foreign int constant SDL_INIT_NOPARACHUTE
VAL INT SDL.INIT.NOPARACHUTE
SDL.INIT.EVENTTHREAD
occSDL.inc
28

Foreign int constant SDL_INIT_EVENTTHREAD.

Foreign int constant SDL_INIT_EVENTTHREAD
VAL INT SDL.INIT.EVENTTHREAD
SDL.INIT.EVERYTHING
occSDL.inc
30

Foreign int constant SDL_INIT_EVERYTHING.

Foreign int constant SDL_INIT_EVERYTHING
VAL INT SDL.INIT.EVERYTHING
SDL.Init
occSDL.inc
36

Foreign function SDL_Init.

Foreign function SDL_Init
RESULT INT

Function return value with type int.

VAL INT

Argument with type Uint32.

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

Foreign function occ_SDL_Init.

Foreign function occ_SDL_Init
RESULT INT

Function return value with type int.

VAL INT

Argument with type Uint32.

INLINE PROC occ.SDL.Init (RESULT INT return.value, VAL INT flags)
SDL.InitSubSystem
occSDL.inc
54

Foreign function SDL_InitSubSystem.

Foreign function SDL_InitSubSystem
RESULT INT

Function return value with type int.

VAL INT

Argument with type Uint32.

INLINE PROC SDL.InitSubSystem (RESULT INT return.value, VAL INT flags)
SDL.QuitSubSystem
occSDL.inc
62

Foreign function SDL_QuitSubSystem.

Foreign function SDL_QuitSubSystem
VAL INT

Argument with type Uint32.

INLINE PROC SDL.QuitSubSystem (VAL INT flags)
SDL.WasInit
occSDL.inc
71

Foreign function SDL_WasInit.

Foreign function SDL_WasInit
RESULT INT

Function return value with type Uint32.

VAL INT

Argument with type Uint32.

INLINE PROC SDL.WasInit (RESULT INT return.value, VAL INT flags)
SDL.Quit
occSDL.inc
78

Foreign function SDL_Quit.

Foreign function SDL_Quit
INLINE PROC SDL.Quit ()
SDL.bool
occSDL.inc
83

Foreign enumeration SDL_bool.

Foreign enumeration SDL_bool
SDL.DUMMY.ENUM
occSDL.inc
89

Foreign enumeration SDL_DUMMY_ENUM.

Foreign enumeration SDL_DUMMY_ENUM
arbitrary.name0
occSDL.inc
93

Foreign enumeration .

Foreign enumeration
SDL.ALPHA.OPAQUE
occSDL.inc
99

Foreign int constant SDL_ALPHA_OPAQUE.

Foreign int constant SDL_ALPHA_OPAQUE
VAL INT SDL.ALPHA.OPAQUE
SDL.ALPHA.TRANSPARENT
occSDL.inc
101

Foreign int constant SDL_ALPHA_TRANSPARENT.

Foreign int constant SDL_ALPHA_TRANSPARENT
VAL INT SDL.ALPHA.TRANSPARENT
SDL.Rect
occSDL.inc
103

Foreign structure pointer type SDL_Rect.

Foreign structure pointer type SDL_Rect
DATA TYPE SDL.Rect
create.SDL.Rect
occSDL.inc
108

Allocate foreign structure SDL.Rect.

Allocate foreign structure SDL.Rect
RESULT SDL.Rect

Pointer to newly-allocated structure.

INLINE PROC create.SDL.Rect (RESULT SDL.Rect ptr)
delete.SDL.Rect
occSDL.inc
114

Free foreign structure SDL.Rect.

Free foreign structure SDL.Rect
SDL.Rect

Pointer to structure to free.

INLINE PROC delete.SDL.Rect (SDL.Rect ptr)
get.SDL.Rect.x
occSDL.inc
121

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

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

Contents of the member x.

VAL SDL.Rect

Pointer to foreign structure SDL.Rect.

INLINE PROC get.SDL.Rect.x (RESULT INT16 value, VAL SDL.Rect ptr)
set.SDL.Rect.x
occSDL.inc
128

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

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

New contents of the member x.

VAL SDL.Rect

Pointer to foreign structure SDL.Rect.

INLINE PROC set.SDL.Rect.x (VAL INT16 value, VAL SDL.Rect ptr)
get.SDL.Rect.y
occSDL.inc
135

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

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

Contents of the member y.

VAL SDL.Rect

Pointer to foreign structure SDL.Rect.

INLINE PROC get.SDL.Rect.y (RESULT INT16 value, VAL SDL.Rect ptr)
set.SDL.Rect.y
occSDL.inc
142

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

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

New contents of the member y.

VAL SDL.Rect

Pointer to foreign structure SDL.Rect.

INLINE PROC set.SDL.Rect.y (VAL INT16 value, VAL SDL.Rect ptr)
get.SDL.Rect.w
occSDL.inc
149

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

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

Contents of the member w.

VAL SDL.Rect

Pointer to foreign structure SDL.Rect.

INLINE PROC get.SDL.Rect.w (RESULT INT16 value, VAL SDL.Rect ptr)
set.SDL.Rect.w
occSDL.inc
156

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

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

New contents of the member w.

VAL SDL.Rect

Pointer to foreign structure SDL.Rect.

INLINE PROC set.SDL.Rect.w (VAL INT16 value, VAL SDL.Rect ptr)
get.SDL.Rect.h
occSDL.inc
163

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

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

Contents of the member h.

VAL SDL.Rect

Pointer to foreign structure SDL.Rect.

INLINE PROC get.SDL.Rect.h (RESULT INT16 value, VAL SDL.Rect ptr)
set.SDL.Rect.h
occSDL.inc
170

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

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

New contents of the member h.

VAL SDL.Rect

Pointer to foreign structure SDL.Rect.

INLINE PROC set.SDL.Rect.h (VAL INT16 value, VAL SDL.Rect ptr)
SDL.Color
occSDL.inc
175

Foreign structure pointer type SDL_Color.

Foreign structure pointer type SDL_Color
DATA TYPE SDL.Color
create.SDL.Color
occSDL.inc
180

Allocate foreign structure SDL.Color.

Allocate foreign structure SDL.Color
RESULT SDL.Color

Pointer to newly-allocated structure.

INLINE PROC create.SDL.Color (RESULT SDL.Color ptr)
delete.SDL.Color
occSDL.inc
186

Free foreign structure SDL.Color.

Free foreign structure SDL.Color
SDL.Color

Pointer to structure to free.

INLINE PROC delete.SDL.Color (SDL.Color ptr)
get.SDL.Color.r
occSDL.inc
193

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

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

Contents of the member r.

VAL SDL.Color

Pointer to foreign structure SDL.Color.

INLINE PROC get.SDL.Color.r (RESULT BYTE value, VAL SDL.Color ptr)
set.SDL.Color.r
occSDL.inc
200

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

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

New contents of the member r.

VAL SDL.Color

Pointer to foreign structure SDL.Color.

INLINE PROC set.SDL.Color.r (VAL BYTE value, VAL SDL.Color ptr)
get.SDL.Color.g
occSDL.inc
207

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

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

Contents of the member g.

VAL SDL.Color

Pointer to foreign structure SDL.Color.

INLINE PROC get.SDL.Color.g (RESULT BYTE value, VAL SDL.Color ptr)
set.SDL.Color.g
occSDL.inc
214

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

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

New contents of the member g.

VAL SDL.Color

Pointer to foreign structure SDL.Color.

INLINE PROC set.SDL.Color.g (VAL BYTE value, VAL SDL.Color ptr)
get.SDL.Color.b
occSDL.inc
221

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

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

Contents of the member b.

VAL SDL.Color

Pointer to foreign structure SDL.Color.

INLINE PROC get.SDL.Color.b (RESULT BYTE value, VAL SDL.Color ptr)
set.SDL.Color.b
occSDL.inc
228

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

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

New contents of the member b.

VAL SDL.Color

Pointer to foreign structure SDL.Color.

INLINE PROC set.SDL.Color.b (VAL BYTE value, VAL SDL.Color ptr)
get.SDL.Color.unused
occSDL.inc
235

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

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

Contents of the member unused.

VAL SDL.Color

Pointer to foreign structure SDL.Color.

INLINE PROC get.SDL.Color.unused (RESULT BYTE value, VAL SDL.Color ptr)
set.SDL.Color.unused
occSDL.inc
242

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

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

New contents of the member unused.

VAL SDL.Color

Pointer to foreign structure SDL.Color.

INLINE PROC set.SDL.Color.unused (VAL BYTE value, VAL SDL.Color ptr)
SDL.Palette
occSDL.inc
247

Foreign structure pointer type SDL_Palette.

Foreign structure pointer type SDL_Palette
DATA TYPE SDL.Palette
create.SDL.Palette
occSDL.inc
252

Allocate foreign structure SDL.Palette.

Allocate foreign structure SDL.Palette
RESULT SDL.Palette

Pointer to newly-allocated structure.

INLINE PROC create.SDL.Palette (RESULT SDL.Palette ptr)
delete.SDL.Palette
occSDL.inc
258

Free foreign structure SDL.Palette.

Free foreign structure SDL.Palette
SDL.Palette

Pointer to structure to free.

INLINE PROC delete.SDL.Palette (SDL.Palette ptr)
get.SDL.Palette.ncolors
occSDL.inc
265

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

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

Contents of the member ncolors.

VAL SDL.Palette

Pointer to foreign structure SDL.Palette.

INLINE PROC get.SDL.Palette.ncolors (RESULT INT value, VAL SDL.Palette ptr)
set.SDL.Palette.ncolors
occSDL.inc
272

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

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

New contents of the member ncolors.

VAL SDL.Palette

Pointer to foreign structure SDL.Palette.

INLINE PROC set.SDL.Palette.ncolors (VAL INT value, VAL SDL.Palette ptr)
get.SDL.Palette.colors
occSDL.inc
279

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

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

Contents of the member colors.

VAL SDL.Palette

Pointer to foreign structure SDL.Palette.

INLINE PROC get.SDL.Palette.colors (RESULT SDL.Color value, VAL SDL.Palette ptr)
SDL.PixelFormat
occSDL.inc
284

Foreign structure pointer type SDL_PixelFormat.

Foreign structure pointer type SDL_PixelFormat
DATA TYPE SDL.PixelFormat
create.SDL.PixelFormat
occSDL.inc
289

Allocate foreign structure SDL.PixelFormat.

Allocate foreign structure SDL.PixelFormat
RESULT SDL.PixelFormat

Pointer to newly-allocated structure.

INLINE PROC create.SDL.PixelFormat (RESULT SDL.PixelFormat ptr)
delete.SDL.PixelFormat
occSDL.inc
295

Free foreign structure SDL.PixelFormat.

Free foreign structure SDL.PixelFormat
SDL.PixelFormat

Pointer to structure to free.

INLINE PROC delete.SDL.PixelFormat (SDL.PixelFormat ptr)
get.SDL.PixelFormat.palette
occSDL.inc
302

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

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

Contents of the member palette.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC get.SDL.PixelFormat.palette (RESULT SDL.Palette value, VAL SDL.PixelFormat ptr)
get.SDL.PixelFormat.BitsPerPixel
occSDL.inc
309

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

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

Contents of the member BitsPerPixel.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC get.SDL.PixelFormat.BitsPerPixel (RESULT BYTE value, VAL SDL.PixelFormat ptr)
set.SDL.PixelFormat.BitsPerPixel
occSDL.inc
316

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

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

New contents of the member BitsPerPixel.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC set.SDL.PixelFormat.BitsPerPixel (VAL BYTE value, VAL SDL.PixelFormat ptr)
get.SDL.PixelFormat.BytesPerPixel
occSDL.inc
323

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

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

Contents of the member BytesPerPixel.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC get.SDL.PixelFormat.BytesPerPixel (RESULT BYTE value, VAL SDL.PixelFormat ptr)
set.SDL.PixelFormat.BytesPerPixel
occSDL.inc
330

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

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

New contents of the member BytesPerPixel.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC set.SDL.PixelFormat.BytesPerPixel (VAL BYTE value, VAL SDL.PixelFormat ptr)
get.SDL.PixelFormat.Rloss
occSDL.inc
337

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

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

Contents of the member Rloss.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC get.SDL.PixelFormat.Rloss (RESULT BYTE value, VAL SDL.PixelFormat ptr)
set.SDL.PixelFormat.Rloss
occSDL.inc
344

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

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

New contents of the member Rloss.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC set.SDL.PixelFormat.Rloss (VAL BYTE value, VAL SDL.PixelFormat ptr)
get.SDL.PixelFormat.Gloss
occSDL.inc
351

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

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

Contents of the member Gloss.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC get.SDL.PixelFormat.Gloss (RESULT BYTE value, VAL SDL.PixelFormat ptr)
set.SDL.PixelFormat.Gloss
occSDL.inc
358

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

Set value of member Gloss of foreign structure SDL.PixelFormat
VAL BYTE

New contents of the member Gloss.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC set.SDL.PixelFormat.Gloss (VAL BYTE value, VAL SDL.PixelFormat ptr)
get.SDL.PixelFormat.Bloss
occSDL.inc
365

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

Get value of member Bloss of foreign structure SDL.PixelFormat
RESULT BYTE

Contents of the member Bloss.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC get.SDL.PixelFormat.Bloss (RESULT BYTE value, VAL SDL.PixelFormat ptr)
set.SDL.PixelFormat.Bloss
occSDL.inc
372

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

Set value of member Bloss of foreign structure SDL.PixelFormat
VAL BYTE

New contents of the member Bloss.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC set.SDL.PixelFormat.Bloss (VAL BYTE value, VAL SDL.PixelFormat ptr)
get.SDL.PixelFormat.Aloss
occSDL.inc
379

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

Get value of member Aloss of foreign structure SDL.PixelFormat
RESULT BYTE

Contents of the member Aloss.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC get.SDL.PixelFormat.Aloss (RESULT BYTE value, VAL SDL.PixelFormat ptr)
set.SDL.PixelFormat.Aloss
occSDL.inc
386

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

Set value of member Aloss of foreign structure SDL.PixelFormat
VAL BYTE

New contents of the member Aloss.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC set.SDL.PixelFormat.Aloss (VAL BYTE value, VAL SDL.PixelFormat ptr)
get.SDL.PixelFormat.Rshift
occSDL.inc
393

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

Get value of member Rshift of foreign structure SDL.PixelFormat
RESULT BYTE

Contents of the member Rshift.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC get.SDL.PixelFormat.Rshift (RESULT BYTE value, VAL SDL.PixelFormat ptr)
set.SDL.PixelFormat.Rshift
occSDL.inc
400

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

Set value of member Rshift of foreign structure SDL.PixelFormat
VAL BYTE

New contents of the member Rshift.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC set.SDL.PixelFormat.Rshift (VAL BYTE value, VAL SDL.PixelFormat ptr)
get.SDL.PixelFormat.Gshift
occSDL.inc
407

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

Get value of member Gshift of foreign structure SDL.PixelFormat
RESULT BYTE

Contents of the member Gshift.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC get.SDL.PixelFormat.Gshift (RESULT BYTE value, VAL SDL.PixelFormat ptr)
set.SDL.PixelFormat.Gshift
occSDL.inc
414

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

Set value of member Gshift of foreign structure SDL.PixelFormat
VAL BYTE

New contents of the member Gshift.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC set.SDL.PixelFormat.Gshift (VAL BYTE value, VAL SDL.PixelFormat ptr)
get.SDL.PixelFormat.Bshift
occSDL.inc
421

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

Get value of member Bshift of foreign structure SDL.PixelFormat
RESULT BYTE

Contents of the member Bshift.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC get.SDL.PixelFormat.Bshift (RESULT BYTE value, VAL SDL.PixelFormat ptr)
set.SDL.PixelFormat.Bshift
occSDL.inc
428

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

Set value of member Bshift of foreign structure SDL.PixelFormat
VAL BYTE

New contents of the member Bshift.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC set.SDL.PixelFormat.Bshift (VAL BYTE value, VAL SDL.PixelFormat ptr)
get.SDL.PixelFormat.Ashift
occSDL.inc
435

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

Get value of member Ashift of foreign structure SDL.PixelFormat
RESULT BYTE

Contents of the member Ashift.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC get.SDL.PixelFormat.Ashift (RESULT BYTE value, VAL SDL.PixelFormat ptr)
set.SDL.PixelFormat.Ashift
occSDL.inc
442

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

Set value of member Ashift of foreign structure SDL.PixelFormat
VAL BYTE

New contents of the member Ashift.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC set.SDL.PixelFormat.Ashift (VAL BYTE value, VAL SDL.PixelFormat ptr)
get.SDL.PixelFormat.Rmask
occSDL.inc
449

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

Get value of member Rmask of foreign structure SDL.PixelFormat
RESULT INT

Contents of the member Rmask.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC get.SDL.PixelFormat.Rmask (RESULT INT value, VAL SDL.PixelFormat ptr)
set.SDL.PixelFormat.Rmask
occSDL.inc
456

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

Set value of member Rmask of foreign structure SDL.PixelFormat
VAL INT

New contents of the member Rmask.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC set.SDL.PixelFormat.Rmask (VAL INT value, VAL SDL.PixelFormat ptr)
get.SDL.PixelFormat.Gmask
occSDL.inc
463

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

Get value of member Gmask of foreign structure SDL.PixelFormat
RESULT INT

Contents of the member Gmask.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC get.SDL.PixelFormat.Gmask (RESULT INT value, VAL SDL.PixelFormat ptr)
set.SDL.PixelFormat.Gmask
occSDL.inc
470

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

Set value of member Gmask of foreign structure SDL.PixelFormat
VAL INT

New contents of the member Gmask.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC set.SDL.PixelFormat.Gmask (VAL INT value, VAL SDL.PixelFormat ptr)
get.SDL.PixelFormat.Bmask
occSDL.inc
477

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

Get value of member Bmask of foreign structure SDL.PixelFormat
RESULT INT

Contents of the member Bmask.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC get.SDL.PixelFormat.Bmask (RESULT INT value, VAL SDL.PixelFormat ptr)
set.SDL.PixelFormat.Bmask
occSDL.inc
484

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

Set value of member Bmask of foreign structure SDL.PixelFormat
VAL INT

New contents of the member Bmask.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC set.SDL.PixelFormat.Bmask (VAL INT value, VAL SDL.PixelFormat ptr)
get.SDL.PixelFormat.Amask
occSDL.inc
491

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

Get value of member Amask of foreign structure SDL.PixelFormat
RESULT INT

Contents of the member Amask.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC get.SDL.PixelFormat.Amask (RESULT INT value, VAL SDL.PixelFormat ptr)
set.SDL.PixelFormat.Amask
occSDL.inc
498

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

Set value of member Amask of foreign structure SDL.PixelFormat
VAL INT

New contents of the member Amask.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC set.SDL.PixelFormat.Amask (VAL INT value, VAL SDL.PixelFormat ptr)
get.SDL.PixelFormat.colorkey
occSDL.inc
505

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

Get value of member colorkey of foreign structure SDL.PixelFormat
RESULT INT

Contents of the member colorkey.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC get.SDL.PixelFormat.colorkey (RESULT INT value, VAL SDL.PixelFormat ptr)
set.SDL.PixelFormat.colorkey
occSDL.inc
512

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

Set value of member colorkey of foreign structure SDL.PixelFormat
VAL INT

New contents of the member colorkey.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC set.SDL.PixelFormat.colorkey (VAL INT value, VAL SDL.PixelFormat ptr)
get.SDL.PixelFormat.alpha
occSDL.inc
519

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

Get value of member alpha of foreign structure SDL.PixelFormat
RESULT BYTE

Contents of the member alpha.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC get.SDL.PixelFormat.alpha (RESULT BYTE value, VAL SDL.PixelFormat ptr)
set.SDL.PixelFormat.alpha
occSDL.inc
526

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

Set value of member alpha of foreign structure SDL.PixelFormat
VAL BYTE

New contents of the member alpha.

VAL SDL.PixelFormat

Pointer to foreign structure SDL.PixelFormat.

INLINE PROC set.SDL.PixelFormat.alpha (VAL BYTE value, VAL SDL.PixelFormat ptr)
SDL.blit
occSDL.inc
531

Foreign function pointer type SDL_blit.

Foreign function pointer type SDL_blit
DATA TYPE SDL.blit
SDL.Surface
occSDL.inc
534

Foreign structure pointer type SDL_Surface.

Foreign structure pointer type SDL_Surface
DATA TYPE SDL.Surface
create.SDL.Surface
occSDL.inc
539

Allocate foreign structure SDL.Surface.

Allocate foreign structure SDL.Surface
RESULT SDL.Surface

Pointer to newly-allocated structure.

INLINE PROC create.SDL.Surface (RESULT SDL.Surface ptr)
delete.SDL.Surface
occSDL.inc
545

Free foreign structure SDL.Surface.

Free foreign structure SDL.Surface
SDL.Surface

Pointer to structure to free.

INLINE PROC delete.SDL.Surface (SDL.Surface ptr)
get.SDL.Surface.flags
occSDL.inc
552

Get value of member flags of foreign structure SDL.Surface.

Get value of member flags of foreign structure SDL.Surface
RESULT INT

Contents of the member flags.

VAL SDL.Surface

Pointer to foreign structure SDL.Surface.

INLINE PROC get.SDL.Surface.flags (RESULT INT value, VAL SDL.Surface ptr)
set.SDL.Surface.flags
occSDL.inc
559

Set value of member flags of foreign structure SDL.Surface.

Set value of member flags of foreign structure SDL.Surface
VAL INT

New contents of the member flags.

VAL SDL.Surface

Pointer to foreign structure SDL.Surface.

INLINE PROC set.SDL.Surface.flags (VAL INT value, VAL SDL.Surface ptr)
get.SDL.Surface.format
occSDL.inc
566

Get value of member format of foreign structure SDL.Surface.

Get value of member format of foreign structure SDL.Surface
RESULT SDL.PixelFormat

Contents of the member format.

VAL SDL.Surface

Pointer to foreign structure SDL.Surface.

INLINE PROC get.SDL.Surface.format (RESULT SDL.PixelFormat value, VAL SDL.Surface ptr)
get.SDL.Surface.w
occSDL.inc
573

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

Get value of member w of foreign structure SDL.Surface
RESULT INT

Contents of the member w.

VAL SDL.Surface

Pointer to foreign structure SDL.Surface.

INLINE PROC get.SDL.Surface.w (RESULT INT value, VAL SDL.Surface ptr)
set.SDL.Surface.w
occSDL.inc
580

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

Set value of member w of foreign structure SDL.Surface
VAL INT

New contents of the member w.

VAL SDL.Surface

Pointer to foreign structure SDL.Surface.

INLINE PROC set.SDL.Surface.w (VAL INT value, VAL SDL.Surface ptr)
get.SDL.Surface.h
occSDL.inc
587

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

Get value of member h of foreign structure SDL.Surface
RESULT INT

Contents of the member h.

VAL SDL.Surface

Pointer to foreign structure SDL.Surface.

INLINE PROC get.SDL.Surface.h (RESULT INT value, VAL SDL.Surface ptr)
set.SDL.Surface.h
occSDL.inc
594

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

Set value of member h of foreign structure SDL.Surface
VAL INT

New contents of the member h.

VAL SDL.Surface

Pointer to foreign structure SDL.Surface.

INLINE PROC set.SDL.Surface.h (VAL INT value, VAL SDL.Surface ptr)
get.SDL.Surface.pitch
occSDL.inc
601

Get value of member pitch of foreign structure SDL.Surface.

Get value of member pitch of foreign structure SDL.Surface
RESULT INT16

Contents of the member pitch.

VAL SDL.Surface

Pointer to foreign structure SDL.Surface.

INLINE PROC get.SDL.Surface.pitch (RESULT INT16 value, VAL SDL.Surface ptr)
set.SDL.Surface.pitch
occSDL.inc
608

Set value of member pitch of foreign structure SDL.Surface.

Set value of member pitch of foreign structure SDL.Surface
VAL INT16

New contents of the member pitch.

VAL SDL.Surface

Pointer to foreign structure SDL.Surface.

INLINE PROC set.SDL.Surface.pitch (VAL INT16 value, VAL SDL.Surface ptr)
get.SDL.Surface.pixels
occSDL.inc
615

Get value of member pixels of foreign structure SDL.Surface.

Get value of member pixels of foreign structure SDL.Surface
RESULT INT

Contents of the member pixels.

VAL SDL.Surface

Pointer to foreign structure SDL.Surface.

INLINE PROC get.SDL.Surface.pixels (RESULT INT value, VAL SDL.Surface ptr)
set.SDL.Surface.pixels
occSDL.inc
622

Set value of member pixels of foreign structure SDL.Surface.

Set value of member pixels of foreign structure SDL.Surface
VAL INT

New contents of the member pixels.

VAL SDL.Surface

Pointer to foreign structure SDL.Surface.

INLINE PROC set.SDL.Surface.pixels (VAL INT value, VAL SDL.Surface ptr)
get.SDL.Surface.offset
occSDL.inc
629

Get value of member offset of foreign structure SDL.Surface.

Get value of member offset of foreign structure SDL.Surface
RESULT INT

Contents of the member offset.

VAL SDL.Surface

Pointer to foreign structure SDL.Surface.

INLINE PROC get.SDL.Surface.offset (RESULT INT value, VAL SDL.Surface ptr)
set.SDL.Surface.offset
occSDL.inc
636

Set value of member offset of foreign structure SDL.Surface.

Set value of member offset of foreign structure SDL.Surface
VAL INT

New contents of the member offset.

VAL SDL.Surface

Pointer to foreign structure SDL.Surface.

INLINE PROC set.SDL.Surface.offset (VAL INT value, VAL SDL.Surface ptr)
get.SDL.Surface.clip.rect
occSDL.inc
643

Get value of member clip.rect of foreign structure SDL.Surface.

Get value of member clip.rect of foreign structure SDL.Surface
RESULT SDL.Rect

Contents of the member clip.rect.

VAL SDL.Surface

Pointer to foreign structure SDL.Surface.

INLINE PROC get.SDL.Surface.clip.rect (RESULT SDL.Rect value, VAL SDL.Surface ptr)
get.SDL.Surface.unused1
occSDL.inc
650

Get value of member unused1 of foreign structure SDL.Surface.

Get value of member unused1 of foreign structure SDL.Surface
RESULT INT

Contents of the member unused1.

VAL SDL.Surface

Pointer to foreign structure SDL.Surface.

INLINE PROC get.SDL.Surface.unused1 (RESULT INT value, VAL SDL.Surface ptr)
set.SDL.Surface.unused1
occSDL.inc
657

Set value of member unused1 of foreign structure SDL.Surface.

Set value of member unused1 of foreign structure SDL.Surface
VAL INT

New contents of the member unused1.

VAL SDL.Surface

Pointer to foreign structure SDL.Surface.

INLINE PROC set.SDL.Surface.unused1 (VAL INT value, VAL SDL.Surface ptr)
get.SDL.Surface.locked
occSDL.inc
664

Get value of member locked of foreign structure SDL.Surface.

Get value of member locked of foreign structure SDL.Surface
RESULT INT

Contents of the member locked.

VAL SDL.Surface

Pointer to foreign structure SDL.Surface.

INLINE PROC get.SDL.Surface.locked (RESULT INT value, VAL SDL.Surface ptr)
set.SDL.Surface.locked
occSDL.inc
671

Set value of member locked of foreign structure SDL.Surface.

Set value of member locked of foreign structure SDL.Surface
VAL INT

New contents of the member locked.

VAL SDL.Surface

Pointer to foreign structure SDL.Surface.

INLINE PROC set.SDL.Surface.locked (VAL INT value, VAL SDL.Surface ptr)
get.SDL.Surface.format.version
occSDL.inc
678

Get value of member format.version of foreign structure SDL.Surface.

Get value of member format.version of foreign structure SDL.Surface
RESULT INT

Contents of the member format.version.

VAL SDL.Surface

Pointer to foreign structure SDL.Surface.

INLINE PROC get.SDL.Surface.format.version (RESULT INT value, VAL SDL.Surface ptr)
set.SDL.Surface.format.version
occSDL.inc
685

Set value of member format.version of foreign structure SDL.Surface.

Set value of member format.version of foreign structure SDL.Surface
VAL INT

New contents of the member format.version.

VAL SDL.Surface

Pointer to foreign structure SDL.Surface.

INLINE PROC set.SDL.Surface.format.version (VAL INT value, VAL SDL.Surface ptr)
get.SDL.Surface.refcount
occSDL.inc
692

Get value of member refcount of foreign structure SDL.Surface.

Get value of member refcount of foreign structure SDL.Surface
RESULT INT

Contents of the member refcount.

VAL SDL.Surface

Pointer to foreign structure SDL.Surface.

INLINE PROC get.SDL.Surface.refcount (RESULT INT value, VAL SDL.Surface ptr)
set.SDL.Surface.refcount
occSDL.inc
699

Set value of member refcount of foreign structure SDL.Surface.

Set value of member refcount of foreign structure SDL.Surface
VAL INT

New contents of the member refcount.

VAL SDL.Surface

Pointer to foreign structure SDL.Surface.

INLINE PROC set.SDL.Surface.refcount (VAL INT value, VAL SDL.Surface ptr)
occ.get.SDL.Surface.pixels
occSDL.inc
708

Foreign function occ_get_SDL_Surface_pixels.

Foreign function occ_get_SDL_Surface_pixels
[]INT

Array pointer argument with element type int.

SDL.Surface

Argument with type SDL_Surface *.

INLINE PROC occ.get.SDL.Surface.pixels ([]INT pixels, SDL.Surface surface)
SDL.SWSURFACE
occSDL.inc
713

Foreign int constant SDL_SWSURFACE.

Foreign int constant SDL_SWSURFACE
VAL INT SDL.SWSURFACE
SDL.HWSURFACE
occSDL.inc
715

Foreign int constant SDL_HWSURFACE.

Foreign int constant SDL_HWSURFACE
VAL INT SDL.HWSURFACE
SDL.ASYNCBLIT
occSDL.inc
717

Foreign int constant SDL_ASYNCBLIT.

Foreign int constant SDL_ASYNCBLIT
VAL INT SDL.ASYNCBLIT
SDL.ANYFORMAT
occSDL.inc
719

Foreign int constant SDL_ANYFORMAT.

Foreign int constant SDL_ANYFORMAT
VAL INT SDL.ANYFORMAT
SDL.HWPALETTE
occSDL.inc
721

Foreign int constant SDL_HWPALETTE.

Foreign int constant SDL_HWPALETTE
VAL INT SDL.HWPALETTE
SDL.DOUBLEBUF
occSDL.inc
723

Foreign int constant SDL_DOUBLEBUF.

Foreign int constant SDL_DOUBLEBUF
VAL INT SDL.DOUBLEBUF
SDL.FULLSCREEN
occSDL.inc
725

Foreign int constant SDL_FULLSCREEN.

Foreign int constant SDL_FULLSCREEN
VAL INT SDL.FULLSCREEN
SDL.OPENGL
occSDL.inc
727

Foreign int constant SDL_OPENGL.

Foreign int constant SDL_OPENGL
VAL INT SDL.OPENGL
SDL.OPENGLBLIT
occSDL.inc
729

Foreign int constant SDL_OPENGLBLIT.

Foreign int constant SDL_OPENGLBLIT
VAL INT SDL.OPENGLBLIT
SDL.RESIZABLE
occSDL.inc
731

Foreign int constant SDL_RESIZABLE.

Foreign int constant SDL_RESIZABLE
VAL INT SDL.RESIZABLE
SDL.NOFRAME
occSDL.inc
733

Foreign int constant SDL_NOFRAME.

Foreign int constant SDL_NOFRAME
VAL INT SDL.NOFRAME
SDL.HWACCEL
occSDL.inc
735

Foreign int constant SDL_HWACCEL.

Foreign int constant SDL_HWACCEL
VAL INT SDL.HWACCEL
SDL.SRCCOLORKEY
occSDL.inc
737

Foreign int constant SDL_SRCCOLORKEY.

Foreign int constant SDL_SRCCOLORKEY
VAL INT SDL.SRCCOLORKEY
SDL.RLEACCELOK
occSDL.inc
739

Foreign int constant SDL_RLEACCELOK.

Foreign int constant SDL_RLEACCELOK
VAL INT SDL.RLEACCELOK
SDL.RLEACCEL
occSDL.inc
741

Foreign int constant SDL_RLEACCEL.

Foreign int constant SDL_RLEACCEL
VAL INT SDL.RLEACCEL
SDL.SRCALPHA
occSDL.inc
743

Foreign int constant SDL_SRCALPHA.

Foreign int constant SDL_SRCALPHA
VAL INT SDL.SRCALPHA
SDL.PREALLOC
occSDL.inc
745

Foreign int constant SDL_PREALLOC.

Foreign int constant SDL_PREALLOC
VAL INT SDL.PREALLOC
SDL.VideoInfo
occSDL.inc
747

Foreign structure pointer type SDL_VideoInfo.

Foreign structure pointer type SDL_VideoInfo
DATA TYPE SDL.VideoInfo
create.SDL.VideoInfo
occSDL.inc
752

Allocate foreign structure SDL.VideoInfo.

Allocate foreign structure SDL.VideoInfo
RESULT SDL.VideoInfo

Pointer to newly-allocated structure.

INLINE PROC create.SDL.VideoInfo (RESULT SDL.VideoInfo ptr)
delete.SDL.VideoInfo
occSDL.inc
758

Free foreign structure SDL.VideoInfo.

Free foreign structure SDL.VideoInfo
SDL.VideoInfo

Pointer to structure to free.

INLINE PROC delete.SDL.VideoInfo (SDL.VideoInfo ptr)
get.SDL.VideoInfo.hw.available
occSDL.inc
765

Get value of member hw.available of foreign structure SDL.VideoInfo.

Get value of member hw.available of foreign structure SDL.VideoInfo
RESULT INT

Contents of the member hw.available.

VAL SDL.VideoInfo

Pointer to foreign structure SDL.VideoInfo.

INLINE PROC get.SDL.VideoInfo.hw.available (RESULT INT value, VAL SDL.VideoInfo ptr)
set.SDL.VideoInfo.hw.available
occSDL.inc
772

Set value of member hw.available of foreign structure SDL.VideoInfo.

Set value of member hw.available of foreign structure SDL.VideoInfo
VAL INT

New contents of the member hw.available.

VAL SDL.VideoInfo

Pointer to foreign structure SDL.VideoInfo.

INLINE PROC set.SDL.VideoInfo.hw.available (VAL INT value, VAL SDL.VideoInfo ptr)
get.SDL.VideoInfo.wm.available
occSDL.inc
779

Get value of member wm.available of foreign structure SDL.VideoInfo.

Get value of member wm.available of foreign structure SDL.VideoInfo
RESULT INT

Contents of the member wm.available.

VAL SDL.VideoInfo

Pointer to foreign structure SDL.VideoInfo.

INLINE PROC get.SDL.VideoInfo.wm.available (RESULT INT value, VAL SDL.VideoInfo ptr)
set.SDL.VideoInfo.wm.available
occSDL.inc
786

Set value of member wm.available of foreign structure SDL.VideoInfo.

Set value of member wm.available of foreign structure SDL.VideoInfo
VAL INT

New contents of the member wm.available.

VAL SDL.VideoInfo

Pointer to foreign structure SDL.VideoInfo.

INLINE PROC set.SDL.VideoInfo.wm.available (VAL INT value, VAL SDL.VideoInfo ptr)
get.SDL.VideoInfo.UnusedBits1
occSDL.inc
793

Get value of member UnusedBits1 of foreign structure SDL.VideoInfo.

Get value of member UnusedBits1 of foreign structure SDL.VideoInfo
RESULT INT

Contents of the member UnusedBits1.

VAL SDL.VideoInfo

Pointer to foreign structure SDL.VideoInfo.

INLINE PROC get.SDL.VideoInfo.UnusedBits1 (RESULT INT value, VAL SDL.VideoInfo ptr)
set.SDL.VideoInfo.UnusedBits1
occSDL.inc
800

Set value of member UnusedBits1 of foreign structure SDL.VideoInfo.

Set value of member UnusedBits1 of foreign structure SDL.VideoInfo
VAL INT

New contents of the member UnusedBits1.

VAL SDL.VideoInfo

Pointer to foreign structure SDL.VideoInfo.

INLINE PROC set.SDL.VideoInfo.UnusedBits1 (VAL INT value, VAL SDL.VideoInfo ptr)
get.SDL.VideoInfo.UnusedBits2
occSDL.inc
807

Get value of member UnusedBits2 of foreign structure SDL.VideoInfo.

Get value of member UnusedBits2 of foreign structure SDL.VideoInfo
RESULT INT

Contents of the member UnusedBits2.

VAL SDL.VideoInfo

Pointer to foreign structure SDL.VideoInfo.

INLINE PROC get.SDL.VideoInfo.UnusedBits2 (RESULT INT value, VAL SDL.VideoInfo ptr)
set.SDL.VideoInfo.UnusedBits2
occSDL.inc
814

Set value of member UnusedBits2 of foreign structure SDL.VideoInfo.

Set value of member UnusedBits2 of foreign structure SDL.VideoInfo
VAL INT

New contents of the member UnusedBits2.

VAL SDL.VideoInfo

Pointer to foreign structure SDL.VideoInfo.

INLINE PROC set.SDL.VideoInfo.UnusedBits2 (VAL INT value, VAL SDL.VideoInfo ptr)
get.SDL.VideoInfo.blit.hw
occSDL.inc
821

Get value of member blit.hw of foreign structure SDL.VideoInfo.

Get value of member blit.hw of foreign structure SDL.VideoInfo
RESULT INT

Contents of the member blit.hw.

VAL SDL.VideoInfo

Pointer to foreign structure SDL.VideoInfo.

INLINE PROC get.SDL.VideoInfo.blit.hw (RESULT INT value, VAL SDL.VideoInfo ptr)
set.SDL.VideoInfo.blit.hw
occSDL.inc
828

Set value of member blit.hw of foreign structure SDL.VideoInfo.

Set value of member blit.hw of foreign structure SDL.VideoInfo
VAL INT

New contents of the member blit.hw.

VAL SDL.VideoInfo

Pointer to foreign structure SDL.VideoInfo.

INLINE PROC set.SDL.VideoInfo.blit.hw (VAL INT value, VAL SDL.VideoInfo ptr)
get.SDL.VideoInfo.blit.hw.CC
occSDL.inc
835

Get value of member blit.hw.CC of foreign structure SDL.VideoInfo.

Get value of member blit.hw.CC of foreign structure SDL.VideoInfo
RESULT INT

Contents of the member blit.hw.CC.

VAL SDL.VideoInfo

Pointer to foreign structure SDL.VideoInfo.

INLINE PROC get.SDL.VideoInfo.blit.hw.CC (RESULT INT value, VAL SDL.VideoInfo ptr)
set.SDL.VideoInfo.blit.hw.CC
occSDL.inc
842

Set value of member blit.hw.CC of foreign structure SDL.VideoInfo.

Set value of member blit.hw.CC of foreign structure SDL.VideoInfo
VAL INT

New contents of the member blit.hw.CC.

VAL SDL.VideoInfo

Pointer to foreign structure SDL.VideoInfo.

INLINE PROC set.SDL.VideoInfo.blit.hw.CC (VAL INT value, VAL SDL.VideoInfo ptr)
get.SDL.VideoInfo.blit.hw.A
occSDL.inc
849

Get value of member blit.hw.A of foreign structure SDL.VideoInfo.

Get value of member blit.hw.A of foreign structure SDL.VideoInfo
RESULT INT

Contents of the member blit.hw.A.

VAL SDL.VideoInfo

Pointer to foreign structure SDL.VideoInfo.

INLINE PROC get.SDL.VideoInfo.blit.hw.A (RESULT INT value, VAL SDL.VideoInfo ptr)
set.SDL.VideoInfo.blit.hw.A
occSDL.inc
856

Set value of member blit.hw.A of foreign structure SDL.VideoInfo.

Set value of member blit.hw.A of foreign structure SDL.VideoInfo
VAL INT

New contents of the member blit.hw.A.

VAL SDL.VideoInfo

Pointer to foreign structure SDL.VideoInfo.

INLINE PROC set.SDL.VideoInfo.blit.hw.A (VAL INT value, VAL SDL.VideoInfo ptr)
get.SDL.VideoInfo.blit.sw
occSDL.inc
863

Get value of member blit.sw of foreign structure SDL.VideoInfo.

Get value of member blit.sw of foreign structure SDL.VideoInfo
RESULT INT

Contents of the member blit.sw.

VAL SDL.VideoInfo

Pointer to foreign structure SDL.VideoInfo.

INLINE PROC get.SDL.VideoInfo.blit.sw (RESULT INT value, VAL SDL.VideoInfo ptr)
set.SDL.VideoInfo.blit.sw
occSDL.inc
870

Set value of member blit.sw of foreign structure SDL.VideoInfo.

Set value of member blit.sw of foreign structure SDL.VideoInfo
VAL INT

New contents of the member blit.sw.

VAL SDL.VideoInfo

Pointer to foreign structure SDL.VideoInfo.

INLINE PROC set.SDL.VideoInfo.blit.sw (VAL INT value, VAL SDL.VideoInfo ptr)
get.SDL.VideoInfo.blit.sw.CC
occSDL.inc
877

Get value of member blit.sw.CC of foreign structure SDL.VideoInfo.

Get value of member blit.sw.CC of foreign structure SDL.VideoInfo
RESULT INT

Contents of the member blit.sw.CC.

VAL SDL.VideoInfo

Pointer to foreign structure SDL.VideoInfo.

INLINE PROC get.SDL.VideoInfo.blit.sw.CC (RESULT INT value, VAL SDL.VideoInfo ptr)
set.SDL.VideoInfo.blit.sw.CC
occSDL.inc
884

Set value of member blit.sw.CC of foreign structure SDL.VideoInfo.

Set value of member blit.sw.CC of foreign structure SDL.VideoInfo
VAL INT

New contents of the member blit.sw.CC.

VAL SDL.VideoInfo

Pointer to foreign structure SDL.VideoInfo.

INLINE PROC set.SDL.VideoInfo.blit.sw.CC (VAL INT value, VAL SDL.VideoInfo ptr)
get.SDL.VideoInfo.blit.sw.A
occSDL.inc
891

Get value of member blit.sw.A of foreign structure SDL.VideoInfo.

Get value of member blit.sw.A of foreign structure SDL.VideoInfo
RESULT INT

Contents of the member blit.sw.A.

VAL SDL.VideoInfo

Pointer to foreign structure SDL.VideoInfo.

INLINE PROC get.SDL.VideoInfo.blit.sw.A (RESULT INT value, VAL SDL.VideoInfo ptr)
set.SDL.VideoInfo.blit.sw.A
occSDL.inc
898

Set value of member blit.sw.A of foreign structure SDL.VideoInfo.

Set value of member blit.sw.A of foreign structure SDL.VideoInfo
VAL INT

New contents of the member blit.sw.A.

VAL SDL.VideoInfo

Pointer to foreign structure SDL.VideoInfo.

INLINE PROC set.SDL.VideoInfo.blit.sw.A (VAL INT value, VAL SDL.VideoInfo ptr)
get.SDL.VideoInfo.blit.fill
occSDL.inc
905

Get value of member blit.fill of foreign structure SDL.VideoInfo.

Get value of member blit.fill of foreign structure SDL.VideoInfo
RESULT INT

Contents of the member blit.fill.

VAL SDL.VideoInfo

Pointer to foreign structure SDL.VideoInfo.

INLINE PROC get.SDL.VideoInfo.blit.fill (RESULT INT value, VAL SDL.VideoInfo ptr)
set.SDL.VideoInfo.blit.fill
occSDL.inc
912

Set value of member blit.fill of foreign structure SDL.VideoInfo.

Set value of member blit.fill of foreign structure SDL.VideoInfo
VAL INT

New contents of the member blit.fill.

VAL SDL.VideoInfo

Pointer to foreign structure SDL.VideoInfo.

INLINE PROC set.SDL.VideoInfo.blit.fill (VAL INT value, VAL SDL.VideoInfo ptr)
get.SDL.VideoInfo.UnusedBits3
occSDL.inc
919

Get value of member UnusedBits3 of foreign structure SDL.VideoInfo.

Get value of member UnusedBits3 of foreign structure SDL.VideoInfo
RESULT INT

Contents of the member UnusedBits3.

VAL SDL.VideoInfo

Pointer to foreign structure SDL.VideoInfo.

INLINE PROC get.SDL.VideoInfo.UnusedBits3 (RESULT INT value, VAL SDL.VideoInfo ptr)
set.SDL.VideoInfo.UnusedBits3
occSDL.inc
926

Set value of member UnusedBits3 of foreign structure SDL.VideoInfo.

Set value of member UnusedBits3 of foreign structure SDL.VideoInfo
VAL INT

New contents of the member UnusedBits3.

VAL SDL.VideoInfo

Pointer to foreign structure SDL.VideoInfo.

INLINE PROC set.SDL.VideoInfo.UnusedBits3 (VAL INT value, VAL SDL.VideoInfo ptr)
get.SDL.VideoInfo.video.mem
occSDL.inc
933

Get value of member video.mem of foreign structure SDL.VideoInfo.

Get value of member video.mem of foreign structure SDL.VideoInfo
RESULT INT

Contents of the member video.mem.

VAL SDL.VideoInfo

Pointer to foreign structure SDL.VideoInfo.

INLINE PROC get.SDL.VideoInfo.video.mem (RESULT INT value, VAL SDL.VideoInfo ptr)
set.SDL.VideoInfo.video.mem
occSDL.inc
940

Set value of member video.mem of foreign structure SDL.VideoInfo.

Set value of member video.mem of foreign structure SDL.VideoInfo
VAL INT

New contents of the member video.mem.

VAL SDL.VideoInfo

Pointer to foreign structure SDL.VideoInfo.

INLINE PROC set.SDL.VideoInfo.video.mem (VAL INT value, VAL SDL.VideoInfo ptr)
get.SDL.VideoInfo.vfmt
occSDL.inc
947

Get value of member vfmt of foreign structure SDL.VideoInfo.

Get value of member vfmt of foreign structure SDL.VideoInfo
RESULT SDL.PixelFormat

Contents of the member vfmt.

VAL SDL.VideoInfo

Pointer to foreign structure SDL.VideoInfo.

INLINE PROC get.SDL.VideoInfo.vfmt (RESULT SDL.PixelFormat value, VAL SDL.VideoInfo ptr)
SDL.YV12.OVERLAY
occSDL.inc
952

Foreign int constant SDL_YV12_OVERLAY.

Foreign int constant SDL_YV12_OVERLAY
VAL INT SDL.YV12.OVERLAY
SDL.IYUV.OVERLAY
occSDL.inc
954

Foreign int constant SDL_IYUV_OVERLAY.

Foreign int constant SDL_IYUV_OVERLAY
VAL INT SDL.IYUV.OVERLAY
SDL.YUY2.OVERLAY
occSDL.inc
956

Foreign int constant SDL_YUY2_OVERLAY.

Foreign int constant SDL_YUY2_OVERLAY
VAL INT SDL.YUY2.OVERLAY
SDL.UYVY.OVERLAY
occSDL.inc
958

Foreign int constant SDL_UYVY_OVERLAY.

Foreign int constant SDL_UYVY_OVERLAY
VAL INT SDL.UYVY.OVERLAY
SDL.YVYU.OVERLAY
occSDL.inc
960

Foreign int constant SDL_YVYU_OVERLAY.

Foreign int constant SDL_YVYU_OVERLAY
VAL INT SDL.YVYU.OVERLAY
SDL.Overlay
occSDL.inc
962

Foreign structure pointer type SDL_Overlay.

Foreign structure pointer type SDL_Overlay
DATA TYPE SDL.Overlay
create.SDL.Overlay
occSDL.inc
967

Allocate foreign structure SDL.Overlay.

Allocate foreign structure SDL.Overlay
RESULT SDL.Overlay

Pointer to newly-allocated structure.

INLINE PROC create.SDL.Overlay (RESULT SDL.Overlay ptr)
delete.SDL.Overlay
occSDL.inc
973

Free foreign structure SDL.Overlay.

Free foreign structure SDL.Overlay
SDL.Overlay

Pointer to structure to free.

INLINE PROC delete.SDL.Overlay (SDL.Overlay ptr)
get.SDL.Overlay.format
occSDL.inc
980

Get value of member format of foreign structure SDL.Overlay.

Get value of member format of foreign structure SDL.Overlay
RESULT INT

Contents of the member format.

VAL SDL.Overlay

Pointer to foreign structure SDL.Overlay.

INLINE PROC get.SDL.Overlay.format (RESULT INT value, VAL SDL.Overlay ptr)
set.SDL.Overlay.format
occSDL.inc
987

Set value of member format of foreign structure SDL.Overlay.

Set value of member format of foreign structure SDL.Overlay
VAL INT

New contents of the member format.

VAL SDL.Overlay

Pointer to foreign structure SDL.Overlay.

INLINE PROC set.SDL.Overlay.format (VAL INT value, VAL SDL.Overlay ptr)
get.SDL.Overlay.w
occSDL.inc
994

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

Get value of member w of foreign structure SDL.Overlay
RESULT INT

Contents of the member w.

VAL SDL.Overlay

Pointer to foreign structure SDL.Overlay.

INLINE PROC get.SDL.Overlay.w (RESULT INT value, VAL SDL.Overlay ptr)
set.SDL.Overlay.w
occSDL.inc
1001

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

Set value of member w of foreign structure SDL.Overlay
VAL INT

New contents of the member w.

VAL SDL.Overlay

Pointer to foreign structure SDL.Overlay.

INLINE PROC set.SDL.Overlay.w (VAL INT value, VAL SDL.Overlay ptr)
get.SDL.Overlay.h
occSDL.inc
1008

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

Get value of member h of foreign structure SDL.Overlay
RESULT INT

Contents of the member h.

VAL SDL.Overlay

Pointer to foreign structure SDL.Overlay.

INLINE PROC get.SDL.Overlay.h (RESULT INT value, VAL SDL.Overlay ptr)
set.SDL.Overlay.h
occSDL.inc
1015

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

Set value of member h of foreign structure SDL.Overlay
VAL INT

New contents of the member h.

VAL SDL.Overlay

Pointer to foreign structure SDL.Overlay.

INLINE PROC set.SDL.Overlay.h (VAL INT value, VAL SDL.Overlay ptr)
get.SDL.Overlay.planes
occSDL.inc
1022

Get value of member planes of foreign structure SDL.Overlay.

Get value of member planes of foreign structure SDL.Overlay
RESULT INT

Contents of the member planes.

VAL SDL.Overlay

Pointer to foreign structure SDL.Overlay.

INLINE PROC get.SDL.Overlay.planes (RESULT INT value, VAL SDL.Overlay ptr)
set.SDL.Overlay.planes
occSDL.inc
1029

Set value of member planes of foreign structure SDL.Overlay.

Set value of member planes of foreign structure SDL.Overlay
VAL INT

New contents of the member planes.

VAL SDL.Overlay

Pointer to foreign structure SDL.Overlay.

INLINE PROC set.SDL.Overlay.planes (VAL INT value, VAL SDL.Overlay ptr)
get.SDL.Overlay.pitches
occSDL.inc
1036

Get value of member pitches of foreign structure SDL.Overlay.

Get value of member pitches of foreign structure SDL.Overlay
RESULT INT16

Contents of the member pitches.

VAL SDL.Overlay

Pointer to foreign structure SDL.Overlay.

INLINE PROC get.SDL.Overlay.pitches (RESULT INT16 value, VAL SDL.Overlay ptr)
set.SDL.Overlay.pitches
occSDL.inc
1043

Set value of member pitches of foreign structure SDL.Overlay.

Set value of member pitches of foreign structure SDL.Overlay
VAL INT16

New contents of the member pitches.

VAL SDL.Overlay

Pointer to foreign structure SDL.Overlay.

INLINE PROC set.SDL.Overlay.pitches (VAL INT16 value, VAL SDL.Overlay ptr)
get.SDL.Overlay.pixels
occSDL.inc
1050

Get value of member pixels of foreign structure SDL.Overlay.

Get value of member pixels of foreign structure SDL.Overlay
RESULT BYTE

Contents of the member pixels.

VAL SDL.Overlay

Pointer to foreign structure SDL.Overlay.

INLINE PROC get.SDL.Overlay.pixels (RESULT BYTE value, VAL SDL.Overlay ptr)
set.SDL.Overlay.pixels
occSDL.inc
1057

Set value of member pixels of foreign structure SDL.Overlay.

Set value of member pixels of foreign structure SDL.Overlay
VAL BYTE

New contents of the member pixels.

VAL SDL.Overlay

Pointer to foreign structure SDL.Overlay.

INLINE PROC set.SDL.Overlay.pixels (VAL BYTE value, VAL SDL.Overlay ptr)
get.SDL.Overlay.hw.overlay
occSDL.inc
1064

Get value of member hw.overlay of foreign structure SDL.Overlay.

Get value of member hw.overlay of foreign structure SDL.Overlay
RESULT INT

Contents of the member hw.overlay.

VAL SDL.Overlay

Pointer to foreign structure SDL.Overlay.

INLINE PROC get.SDL.Overlay.hw.overlay (RESULT INT value, VAL SDL.Overlay ptr)
set.SDL.Overlay.hw.overlay
occSDL.inc
1071

Set value of member hw.overlay of foreign structure SDL.Overlay.

Set value of member hw.overlay of foreign structure SDL.Overlay
VAL INT

New contents of the member hw.overlay.

VAL SDL.Overlay

Pointer to foreign structure SDL.Overlay.

INLINE PROC set.SDL.Overlay.hw.overlay (VAL INT value, VAL SDL.Overlay ptr)
get.SDL.Overlay.UnusedBits
occSDL.inc
1078

Get value of member UnusedBits of foreign structure SDL.Overlay.

Get value of member UnusedBits of foreign structure SDL.Overlay
RESULT INT

Contents of the member UnusedBits.

VAL SDL.Overlay

Pointer to foreign structure SDL.Overlay.

INLINE PROC get.SDL.Overlay.UnusedBits (RESULT INT value, VAL SDL.Overlay ptr)
set.SDL.Overlay.UnusedBits
occSDL.inc
1085

Set value of member UnusedBits of foreign structure SDL.Overlay.

Set value of member UnusedBits of foreign structure SDL.Overlay
VAL INT

New contents of the member UnusedBits.

VAL SDL.Overlay

Pointer to foreign structure SDL.Overlay.

INLINE PROC set.SDL.Overlay.UnusedBits (VAL INT value, VAL SDL.Overlay ptr)
SDL.GLattr
occSDL.inc
1090

Foreign enumeration SDL_GLattr.

Foreign enumeration SDL_GLattr
SDL.LOGPAL
occSDL.inc
1109

Foreign int constant SDL_LOGPAL.

Foreign int constant SDL_LOGPAL
VAL INT SDL.LOGPAL
SDL.PHYSPAL
occSDL.inc
1111

Foreign int constant SDL_PHYSPAL.

Foreign int constant SDL_PHYSPAL
VAL INT SDL.PHYSPAL
SDL.VideoInit
occSDL.inc
1118

Foreign function SDL_VideoInit.

Foreign function SDL_VideoInit
RESULT INT

Function return value with type int.

BYTE

Argument with type char const *.

VAL INT

Argument with type Uint32.

INLINE PROC SDL.VideoInit (RESULT INT return.value, BYTE driver.name, VAL INT flags)
SDL.VideoQuit
occSDL.inc
1125

Foreign function SDL_VideoQuit.

Foreign function SDL_VideoQuit
INLINE PROC SDL.VideoQuit ()
SDL.VideoDriverName
occSDL.inc
1135

Foreign function SDL_VideoDriverName.

Foreign function SDL_VideoDriverName
RESULT BYTE

Function return value with type char *.

BYTE

Argument with type char *.

VAL INT

Argument with type int.

INLINE PROC SDL.VideoDriverName (RESULT BYTE return.value, BYTE namebuf, VAL INT maxlen)
SDL.GetVideoSurface
occSDL.inc
1143

Foreign function SDL_GetVideoSurface.

Foreign function SDL_GetVideoSurface
SDL.Surface

Function return value with type SDL_Surface *.

INLINE PROC SDL.GetVideoSurface (SDL.Surface return.value)
SDL.GetVideoInfo
occSDL.inc
1151

Foreign function SDL_GetVideoInfo.

Foreign function SDL_GetVideoInfo
SDL.VideoInfo

Function return value with type SDL_VideoInfo const *.

INLINE PROC SDL.GetVideoInfo (SDL.VideoInfo return.value)
SDL.VideoModeOK
occSDL.inc
1163

Foreign function SDL_VideoModeOK.

Foreign function SDL_VideoModeOK
RESULT INT

Function return value with type int.

VAL INT

Argument with type int.

VAL INT

Argument with type int.

VAL INT

Argument with type int.

VAL INT

Argument with type Uint32.

INLINE PROC SDL.VideoModeOK (RESULT INT return.value, VAL INT width, VAL INT height, VAL INT bpp, VAL INT flags)
SDL.ListModes
occSDL.inc
1173

Foreign function SDL_ListModes.

Foreign function SDL_ListModes
SDL.Rect

Function return value with type SDL_Rect **.

SDL.PixelFormat

Argument with type SDL_PixelFormat *.

VAL INT

Argument with type Uint32.

INLINE PROC SDL.ListModes (SDL.Rect return.value, SDL.PixelFormat format, VAL INT flags)
SDL.SetVideoMode
occSDL.inc
1185

Foreign function SDL_SetVideoMode.

Foreign function SDL_SetVideoMode
SDL.Surface

Function return value with type SDL_Surface *.

VAL INT

Argument with type int.

VAL INT

Argument with type int.

VAL INT

Argument with type int.

VAL INT

Argument with type Uint32.

INLINE PROC SDL.SetVideoMode (SDL.Surface return.value, VAL INT width, VAL INT height, VAL INT bpp, VAL INT flags)
SDL.UpdateRects
occSDL.inc
1195

Foreign function SDL_UpdateRects.

Foreign function SDL_UpdateRects
SDL.Surface

Argument with type SDL_Surface *.

VAL INT

Argument with type int.

SDL.Rect

Argument with type SDL_Rect *.

INLINE PROC SDL.UpdateRects (SDL.Surface screen, VAL INT numrects, SDL.Rect rects)
SDL.UpdateRect
occSDL.inc
1207

Foreign function SDL_UpdateRect.

Foreign function SDL_UpdateRect
SDL.Surface

Argument with type SDL_Surface *.

VAL INT

Argument with type Sint32.

VAL INT

Argument with type Sint32.

VAL INT

Argument with type Uint32.

VAL INT

Argument with type Uint32.

INLINE PROC SDL.UpdateRect (SDL.Surface screen, VAL INT x, VAL INT y, VAL INT w, VAL INT h)
SDL.Flip
occSDL.inc
1216

Foreign function SDL_Flip.

Foreign function SDL_Flip
RESULT INT

Function return value with type int.

SDL.Surface

Argument with type SDL_Surface *.

INLINE PROC SDL.Flip (RESULT INT return.value, SDL.Surface screen)
SDL.SetGamma
occSDL.inc
1227

Foreign function SDL_SetGamma.

Foreign function SDL_SetGamma
RESULT INT

Function return value with type int.

VAL REAL32

Argument with type float.

VAL REAL32

Argument with type float.

VAL REAL32

Argument with type float.

INLINE PROC SDL.SetGamma (RESULT INT return.value, VAL REAL32 red, VAL REAL32 green, VAL REAL32 blue)
SDL.SetGammaRamp
occSDL.inc
1238

Foreign function SDL_SetGammaRamp.

Foreign function SDL_SetGammaRamp
RESULT INT

Function return value with type int.

INT16

Argument with type Uint16 const *.

INT16

Argument with type Uint16 const *.

INT16

Argument with type Uint16 const *.

INLINE PROC SDL.SetGammaRamp (RESULT INT return.value, INT16 red, INT16 green, INT16 blue)
SDL.GetGammaRamp
occSDL.inc
1249

Foreign function SDL_GetGammaRamp.

Foreign function SDL_GetGammaRamp
RESULT INT

Function return value with type int.

INT16

Argument with type Uint16 *.

INT16

Argument with type Uint16 *.

INT16

Argument with type Uint16 *.

INLINE PROC SDL.GetGammaRamp (RESULT INT return.value, INT16 red, INT16 green, INT16 blue)
SDL.SetColors
occSDL.inc
1261

Foreign function SDL_SetColors.

Foreign function SDL_SetColors
RESULT INT

Function return value with type int.

SDL.Surface

Argument with type SDL_Surface *.

SDL.Color

Argument with type SDL_Color *.

VAL INT

Argument with type int.

VAL INT

Argument with type int.

INLINE PROC SDL.SetColors (RESULT INT return.value, SDL.Surface surface, SDL.Color colors, VAL INT firstcolor, VAL INT ncolors)
SDL.SetPalette
occSDL.inc
1274

Foreign function SDL_SetPalette.

Foreign function SDL_SetPalette
RESULT INT

Function return value with type int.

SDL.Surface

Argument with type SDL_Surface *.

VAL INT

Argument with type int.

SDL.Color

Argument with type SDL_Color *.

VAL INT

Argument with type int.

VAL INT

Argument with type int.

INLINE PROC SDL.SetPalette (RESULT INT return.value, SDL.Surface surface, VAL INT flags, SDL.Color colors, VAL INT firstcolor, VAL INT ncolors)
SDL.MapRGB
occSDL.inc
1286

Foreign function SDL_MapRGB.

Foreign function SDL_MapRGB
RESULT INT

Function return value with type Uint32.

SDL.PixelFormat

Argument with type SDL_PixelFormat *.

VAL BYTE

Argument with type Uint8.

VAL BYTE

Argument with type Uint8.

VAL BYTE

Argument with type Uint8.

INLINE PROC SDL.MapRGB (RESULT INT return.value, SDL.PixelFormat format, VAL BYTE r, VAL BYTE g, VAL BYTE b)
SDL.MapRGBA
occSDL.inc
1299

Foreign function SDL_MapRGBA.

Foreign function SDL_MapRGBA
RESULT INT

Function return value with type Uint32.

SDL.PixelFormat

Argument with type SDL_PixelFormat *.

VAL BYTE

Argument with type Uint8.

VAL BYTE

Argument with type Uint8.

VAL BYTE

Argument with type Uint8.

VAL BYTE

Argument with type Uint8.

INLINE PROC SDL.MapRGBA (RESULT INT return.value, SDL.PixelFormat format, VAL BYTE r, VAL BYTE g, VAL BYTE b, VAL BYTE a)
SDL.GetRGB
occSDL.inc
1311

Foreign function SDL_GetRGB.

Foreign function SDL_GetRGB
VAL INT

Argument with type Uint32.

SDL.PixelFormat

Argument with type SDL_PixelFormat *.

BYTE

Argument with type Uint8 *.

BYTE

Argument with type Uint8 *.

BYTE

Argument with type Uint8 *.

INLINE PROC SDL.GetRGB (VAL INT pixel, SDL.PixelFormat fmt, BYTE r, BYTE g, BYTE b)
SDL.GetRGBA
occSDL.inc
1324

Foreign function SDL_GetRGBA.

Foreign function SDL_GetRGBA
VAL INT

Argument with type Uint32.

SDL.PixelFormat

Argument with type SDL_PixelFormat *.

BYTE

Argument with type Uint8 *.

BYTE

Argument with type Uint8 *.

BYTE

Argument with type Uint8 *.

BYTE

Argument with type Uint8 *.

INLINE PROC SDL.GetRGBA (VAL INT pixel, SDL.PixelFormat fmt, BYTE r, BYTE g, BYTE b, BYTE a)
SDL.CreateRGBSurface
occSDL.inc
1340

Foreign function SDL_CreateRGBSurface.

Foreign function SDL_CreateRGBSurface
SDL.Surface

Function return value with type SDL_Surface *.

VAL INT

Argument with type Uint32.

VAL INT

Argument with type int.

VAL INT

Argument with type int.

VAL INT

Argument with type int.

VAL INT

Argument with type Uint32.

VAL INT

Argument with type Uint32.

VAL INT

Argument with type Uint32.

VAL INT

Argument with type Uint32.

INLINE PROC SDL.CreateRGBSurface (SDL.Surface return.value, VAL INT flags, VAL INT width, VAL INT height, VAL INT depth, VAL INT Rmask, VAL INT Gmask, VAL INT Bmask, VAL INT Amask)
SDL.CreateRGBSurfaceFrom
occSDL.inc
1357

Foreign function SDL_CreateRGBSurfaceFrom.

Foreign function SDL_CreateRGBSurfaceFrom
SDL.Surface

Function return value with type SDL_Surface *.

INT

Argument with type void *.

VAL INT

Argument with type int.

VAL INT

Argument with type int.

VAL INT

Argument with type int.

VAL INT

Argument with type int.

VAL INT

Argument with type Uint32.

VAL INT

Argument with type Uint32.

VAL INT

Argument with type Uint32.

VAL INT

Argument with type Uint32.

INLINE PROC SDL.CreateRGBSurfaceFrom (SDL.Surface return.value, INT pixels, VAL INT width, VAL INT height, VAL INT depth, VAL INT pitch, VAL INT Rmask, VAL INT Gmask, VAL INT Bmask, VAL INT Amask)
SDL.FreeSurface
occSDL.inc
1365

Foreign function SDL_FreeSurface.

Foreign function SDL_FreeSurface
SDL.Surface

Argument with type SDL_Surface *.

INLINE PROC SDL.FreeSurface (SDL.Surface surface)
SDL.LockSurface
occSDL.inc
1374

Foreign function SDL_LockSurface.

Foreign function SDL_LockSurface
RESULT INT

Function return value with type int.

SDL.Surface

Argument with type SDL_Surface *.

INLINE PROC SDL.LockSurface (RESULT INT return.value, SDL.Surface surface)
SDL.UnlockSurface
occSDL.inc
1382

Foreign function SDL_UnlockSurface.

Foreign function SDL_UnlockSurface
SDL.Surface

Argument with type SDL_Surface *.

INLINE PROC SDL.UnlockSurface (SDL.Surface surface)
occ.SDL.LoadBMP
occSDL.inc
1391

Foreign function occ_SDL_LoadBMP.

Foreign function occ_SDL_LoadBMP
SDL.Surface

Function return value with type SDL_Surface *.

[]BYTE

Array pointer argument with element type char.

INLINE PROC occ.SDL.LoadBMP (SDL.Surface return.value, []BYTE file)
occ.SDL.SaveBMP
occSDL.inc
1401

Foreign function occ_SDL_SaveBMP.

Foreign function occ_SDL_SaveBMP
SDL.Surface

Function return value with type SDL_Surface *.

SDL.Surface

Argument with type SDL_Surface *.

[]BYTE

Array pointer argument with element type char.

INLINE PROC occ.SDL.SaveBMP (SDL.Surface return.value, SDL.Surface surface, []BYTE file)
SDL.SetColorKey
occSDL.inc
1412

Foreign function SDL_SetColorKey.

Foreign function SDL_SetColorKey
RESULT INT

Function return value with type int.

SDL.Surface

Argument with type SDL_Surface *.

VAL INT

Argument with type Uint32.

VAL INT

Argument with type Uint32.

INLINE PROC SDL.SetColorKey (RESULT INT return.value, SDL.Surface surface, VAL INT flag, VAL INT key)
SDL.SetAlpha
occSDL.inc
1423

Foreign function SDL_SetAlpha.

Foreign function SDL_SetAlpha
RESULT INT

Function return value with type int.

SDL.Surface

Argument with type SDL_Surface *.

VAL INT

Argument with type Uint32.

VAL BYTE

Argument with type Uint8.

INLINE PROC SDL.SetAlpha (RESULT INT return.value, SDL.Surface surface, VAL INT flag, VAL BYTE alpha)
SDL.SetClipRect
occSDL.inc
1433

Foreign function SDL_SetClipRect.

Foreign function SDL_SetClipRect
SDL.bool

Function return value with type SDL_bool.

SDL.Surface

Argument with type SDL_Surface *.

SDL.Rect

Argument with type SDL_Rect const *.

INLINE PROC SDL.SetClipRect (SDL.bool return.value, SDL.Surface surface, SDL.Rect rect)
SDL.GetClipRect
occSDL.inc
1442

Foreign function SDL_GetClipRect.

Foreign function SDL_GetClipRect
SDL.Surface

Argument with type SDL_Surface *.

SDL.Rect

Argument with type SDL_Rect *.

INLINE PROC SDL.GetClipRect (SDL.Surface surface, SDL.Rect rect)
SDL.ConvertSurface
occSDL.inc
1453

Foreign function SDL_ConvertSurface.

Foreign function SDL_ConvertSurface
SDL.Surface

Function return value with type SDL_Surface *.

SDL.Surface

Argument with type SDL_Surface *.

SDL.PixelFormat

Argument with type SDL_PixelFormat *.

VAL INT

Argument with type Uint32.

INLINE PROC SDL.ConvertSurface (SDL.Surface return.value, SDL.Surface src, SDL.PixelFormat fmt, VAL INT flags)
SDL.BlitSurface
occSDL.inc
1465

Foreign function SDL_BlitSurface.

Foreign function SDL_BlitSurface
RESULT INT

Function return value with type int.

SDL.Surface

Argument with type SDL_Surface *.

SDL.Rect

Argument with type SDL_Rect *.

SDL.Surface

Argument with type SDL_Surface *.

SDL.Rect

Argument with type SDL_Rect *.

INLINE PROC SDL.BlitSurface (RESULT INT return.value, SDL.Surface src, SDL.Rect srcrect, SDL.Surface dst, SDL.Rect dstrect)
SDL.UpperBlit
occSDL.inc
1477

Foreign function SDL_UpperBlit.

Foreign function SDL_UpperBlit
RESULT INT

Function return value with type int.

SDL.Surface

Argument with type SDL_Surface *.

SDL.Rect

Argument with type SDL_Rect *.

SDL.Surface

Argument with type SDL_Surface *.

SDL.Rect

Argument with type SDL_Rect *.

INLINE PROC SDL.UpperBlit (RESULT INT return.value, SDL.Surface src, SDL.Rect srcrect, SDL.Surface dst, SDL.Rect dstrect)
SDL.LowerBlit
occSDL.inc
1489

Foreign function SDL_LowerBlit.

Foreign function SDL_LowerBlit
RESULT INT

Function return value with type int.

SDL.Surface

Argument with type SDL_Surface *.

SDL.Rect

Argument with type SDL_Rect *.

SDL.Surface

Argument with type SDL_Surface *.

SDL.Rect

Argument with type SDL_Rect *.

INLINE PROC SDL.LowerBlit (RESULT INT return.value, SDL.Surface src, SDL.Rect srcrect, SDL.Surface dst, SDL.Rect dstrect)
SDL.FillRect
occSDL.inc
1500

Foreign function SDL_FillRect.

Foreign function SDL_FillRect
RESULT INT

Function return value with type int.

SDL.Surface

Argument with type SDL_Surface *.

SDL.Rect

Argument with type SDL_Rect *.

VAL INT

Argument with type Uint32.

INLINE PROC SDL.FillRect (RESULT INT return.value, SDL.Surface dst, SDL.Rect dstrect, VAL INT color)
SDL.DisplayFormat
occSDL.inc
1509

Foreign function SDL_DisplayFormat.

Foreign function SDL_DisplayFormat
SDL.Surface

Function return value with type SDL_Surface *.

SDL.Surface

Argument with type SDL_Surface *.

INLINE PROC SDL.DisplayFormat (SDL.Surface return.value, SDL.Surface surface)
SDL.DisplayFormatAlpha
occSDL.inc
1518

Foreign function SDL_DisplayFormatAlpha.

Foreign function SDL_DisplayFormatAlpha
SDL.Surface

Function return value with type SDL_Surface *.

SDL.Surface

Argument with type SDL_Surface *.

INLINE PROC SDL.DisplayFormatAlpha (SDL.Surface return.value, SDL.Surface surface)
SDL.CreateYUVOverlay
occSDL.inc
1530

Foreign function SDL_CreateYUVOverlay.

Foreign function SDL_CreateYUVOverlay
SDL.Overlay

Function return value with type SDL_Overlay *.

VAL INT

Argument with type int.

VAL INT

Argument with type int.

VAL INT

Argument with type Uint32.

SDL.Surface

Argument with type SDL_Surface *.

INLINE PROC SDL.CreateYUVOverlay (SDL.Overlay return.value, VAL INT width, VAL INT height, VAL INT format, SDL.Surface display)
SDL.LockYUVOverlay
occSDL.inc
1539

Foreign function SDL_LockYUVOverlay.

Foreign function SDL_LockYUVOverlay
RESULT INT

Function return value with type int.

SDL.Overlay

Argument with type SDL_Overlay *.

INLINE PROC SDL.LockYUVOverlay (RESULT INT return.value, SDL.Overlay overlay)
SDL.UnlockYUVOverlay
occSDL.inc
1547

Foreign function SDL_UnlockYUVOverlay.

Foreign function SDL_UnlockYUVOverlay
SDL.Overlay

Argument with type SDL_Overlay *.

INLINE PROC SDL.UnlockYUVOverlay (SDL.Overlay overlay)
SDL.DisplayYUVOverlay
occSDL.inc
1557

Foreign function SDL_DisplayYUVOverlay.

Foreign function SDL_DisplayYUVOverlay
RESULT INT

Function return value with type int.

SDL.Overlay

Argument with type SDL_Overlay *.

SDL.Rect

Argument with type SDL_Rect *.

INLINE PROC SDL.DisplayYUVOverlay (RESULT INT return.value, SDL.Overlay overlay, SDL.Rect dstrect)
SDL.FreeYUVOverlay
occSDL.inc
1565

Foreign function SDL_FreeYUVOverlay.

Foreign function SDL_FreeYUVOverlay
SDL.Overlay

Argument with type SDL_Overlay *.

INLINE PROC SDL.FreeYUVOverlay (SDL.Overlay overlay)
SDL.GL.LoadLibrary
occSDL.inc
1574

Foreign function SDL_GL_LoadLibrary.

Foreign function SDL_GL_LoadLibrary
RESULT INT

Function return value with type int.

BYTE

Argument with type char const *.

INLINE PROC SDL.GL.LoadLibrary (RESULT INT return.value, BYTE path)
SDL.GL.GetProcAddress
occSDL.inc
1582

Foreign function SDL_GL_GetProcAddress.

Foreign function SDL_GL_GetProcAddress
BYTE

Argument with type char const *.

INLINE PROC SDL.GL.GetProcAddress (BYTE proc)
SDL.GL.SetAttribute
occSDL.inc
1592

Foreign function SDL_GL_SetAttribute.

Foreign function SDL_GL_SetAttribute
RESULT INT

Function return value with type int.

VAL INT

Argument with type SDL_GLattr.

VAL INT

Argument with type int.

INLINE PROC SDL.GL.SetAttribute (RESULT INT return.value, VAL INT attr, VAL INT value)
SDL.GL.GetAttribute
occSDL.inc
1602

Foreign function SDL_GL_GetAttribute.

Foreign function SDL_GL_GetAttribute
RESULT INT

Function return value with type int.

VAL INT

Argument with type SDL_GLattr.

INT

Argument with type int *.

INLINE PROC SDL.GL.GetAttribute (RESULT INT return.value, VAL INT attr, INT value)
SDL.GL.SwapBuffers
occSDL.inc
1609

Foreign function SDL_GL_SwapBuffers.

Foreign function SDL_GL_SwapBuffers
INLINE PROC SDL.GL.SwapBuffers ()
SDL.GL.UpdateRects
occSDL.inc
1618

Foreign function SDL_GL_UpdateRects.

Foreign function SDL_GL_UpdateRects
VAL INT

Argument with type int.

SDL.Rect

Argument with type SDL_Rect *.

INLINE PROC SDL.GL.UpdateRects (VAL INT numrects, SDL.Rect rects)
SDL.GL.Lock
occSDL.inc
1625

Foreign function SDL_GL_Lock.

Foreign function SDL_GL_Lock
INLINE PROC SDL.GL.Lock ()
SDL.GL.Unlock
occSDL.inc
1632

Foreign function SDL_GL_Unlock.

Foreign function SDL_GL_Unlock
INLINE PROC SDL.GL.Unlock ()
SDL.WM.SetCaption
occSDL.inc
1641

Foreign function SDL_WM_SetCaption.

Foreign function SDL_WM_SetCaption
VAL []BYTE

Array pointer argument with element type char const.

VAL []BYTE

Array pointer argument with element type char const.

INLINE PROC SDL.WM.SetCaption (VAL []BYTE title, VAL []BYTE icon)
SDL.WM.GetCaption
occSDL.inc
1650

Foreign function SDL_WM_GetCaption.

Foreign function SDL_WM_GetCaption
BYTE

Argument with type char **.

BYTE

Argument with type char **.

INLINE PROC SDL.WM.GetCaption (BYTE title, BYTE icon)
SDL.WM.SetIcon
occSDL.inc
1659

Foreign function SDL_WM_SetIcon.

Foreign function SDL_WM_SetIcon
SDL.Surface

Argument with type SDL_Surface *.

BYTE

Argument with type Uint8 *.

INLINE PROC SDL.WM.SetIcon (SDL.Surface icon, BYTE mask)
SDL.WM.IconifyWindow
occSDL.inc
1667

Foreign function SDL_WM_IconifyWindow.

Foreign function SDL_WM_IconifyWindow
RESULT INT

Function return value with type int.

INLINE PROC SDL.WM.IconifyWindow (RESULT INT return.value)
SDL.WM.ToggleFullScreen
occSDL.inc
1676

Foreign function SDL_WM_ToggleFullScreen.

Foreign function SDL_WM_ToggleFullScreen
RESULT INT

Function return value with type int.

SDL.Surface

Argument with type SDL_Surface *.

INLINE PROC SDL.WM.ToggleFullScreen (RESULT INT return.value, SDL.Surface surface)
SDL.GrabMode
occSDL.inc
1681

Foreign enumeration SDL_GrabMode.

Foreign enumeration SDL_GrabMode
SDL.WM.GrabInput
occSDL.inc
1693

Foreign function SDL_WM_GrabInput.

Foreign function SDL_WM_GrabInput
SDL.GrabMode

Function return value with type SDL_GrabMode.

VAL INT

Argument with type SDL_GrabMode.

INLINE PROC SDL.WM.GrabInput (SDL.GrabMode return.value, VAL INT mode)
SDL.SoftStretch
occSDL.inc
1705

Foreign function SDL_SoftStretch.

Foreign function SDL_SoftStretch
RESULT INT

Function return value with type int.

SDL.Surface

Argument with type SDL_Surface *.

SDL.Rect

Argument with type SDL_Rect *.

SDL.Surface

Argument with type SDL_Surface *.

SDL.Rect

Argument with type SDL_Rect *.

INLINE PROC SDL.SoftStretch (RESULT INT return.value, SDL.Surface src, SDL.Rect srcrect, SDL.Surface dst, SDL.Rect dstrect)
SDLKey
occSDL.inc
1710

Foreign enumeration SDLKey.

Foreign enumeration SDLKey
SDLMod
occSDL.inc
1948

Foreign enumeration SDLMod.

Foreign enumeration SDLMod
SDL.keysym
occSDL.inc
1965

Foreign structure pointer type SDL_keysym.

Foreign structure pointer type SDL_keysym
DATA TYPE SDL.keysym
create.SDL.keysym
occSDL.inc
1970

Allocate foreign structure SDL.keysym.

Allocate foreign structure SDL.keysym
RESULT SDL.keysym

Pointer to newly-allocated structure.

INLINE PROC create.SDL.keysym (RESULT SDL.keysym ptr)
delete.SDL.keysym
occSDL.inc
1976

Free foreign structure SDL.keysym.

Free foreign structure SDL.keysym
SDL.keysym

Pointer to structure to free.

INLINE PROC delete.SDL.keysym (SDL.keysym ptr)
get.SDL.keysym.scancode
occSDL.inc
1983

Get value of member scancode of foreign structure SDL.keysym.

Get value of member scancode of foreign structure SDL.keysym
RESULT BYTE

Contents of the member scancode.

VAL SDL.keysym

Pointer to foreign structure SDL.keysym.

INLINE PROC get.SDL.keysym.scancode (RESULT BYTE value, VAL SDL.keysym ptr)
set.SDL.keysym.scancode
occSDL.inc
1990

Set value of member scancode of foreign structure SDL.keysym.

Set value of member scancode of foreign structure SDL.keysym
VAL BYTE

New contents of the member scancode.

VAL SDL.keysym

Pointer to foreign structure SDL.keysym.

INLINE PROC set.SDL.keysym.scancode (VAL BYTE value, VAL SDL.keysym ptr)
get.SDL.keysym.sym
occSDL.inc
1997

Get value of member sym of foreign structure SDL.keysym.

Get value of member sym of foreign structure SDL.keysym
RESULT INT

Contents of the member sym.

VAL SDL.keysym

Pointer to foreign structure SDL.keysym.

INLINE PROC get.SDL.keysym.sym (RESULT INT value, VAL SDL.keysym ptr)
set.SDL.keysym.sym
occSDL.inc
2004

Set value of member sym of foreign structure SDL.keysym.

Set value of member sym of foreign structure SDL.keysym
VAL INT

New contents of the member sym.

VAL SDL.keysym

Pointer to foreign structure SDL.keysym.

INLINE PROC set.SDL.keysym.sym (VAL INT value, VAL SDL.keysym ptr)
get.SDL.keysym.mod
occSDL.inc
2011

Get value of member mod of foreign structure SDL.keysym.

Get value of member mod of foreign structure SDL.keysym
RESULT INT

Contents of the member mod.

VAL SDL.keysym

Pointer to foreign structure SDL.keysym.

INLINE PROC get.SDL.keysym.mod (RESULT INT value, VAL SDL.keysym ptr)
set.SDL.keysym.mod
occSDL.inc
2018

Set value of member mod of foreign structure SDL.keysym.

Set value of member mod of foreign structure SDL.keysym
VAL INT

New contents of the member mod.

VAL SDL.keysym

Pointer to foreign structure SDL.keysym.

INLINE PROC set.SDL.keysym.mod (VAL INT value, VAL SDL.keysym ptr)
get.SDL.keysym.unicode
occSDL.inc
2025

Get value of member unicode of foreign structure SDL.keysym.

Get value of member unicode of foreign structure SDL.keysym
RESULT INT16

Contents of the member unicode.

VAL SDL.keysym

Pointer to foreign structure SDL.keysym.

INLINE PROC get.SDL.keysym.unicode (RESULT INT16 value, VAL SDL.keysym ptr)
set.SDL.keysym.unicode
occSDL.inc
2032

Set value of member unicode of foreign structure SDL.keysym.

Set value of member unicode of foreign structure SDL.keysym
VAL INT16

New contents of the member unicode.

VAL SDL.keysym

Pointer to foreign structure SDL.keysym.

INLINE PROC set.SDL.keysym.unicode (VAL INT16 value, VAL SDL.keysym ptr)
SDL.ALL.HOTKEYS
occSDL.inc
2037

Foreign int constant SDL_ALL_HOTKEYS.

Foreign int constant SDL_ALL_HOTKEYS
VAL INT SDL.ALL.HOTKEYS
SDL.EnableUNICODE
occSDL.inc
2043

Foreign function SDL_EnableUNICODE.

Foreign function SDL_EnableUNICODE
RESULT INT

Function return value with type int.

VAL INT

Argument with type int.

INLINE PROC SDL.EnableUNICODE (RESULT INT return.value, VAL INT enable)
SDL.DEFAULT.REPEAT.DELAY
occSDL.inc
2048

Foreign int constant SDL_DEFAULT_REPEAT_DELAY.

Foreign int constant SDL_DEFAULT_REPEAT_DELAY
VAL INT SDL.DEFAULT.REPEAT.DELAY
SDL.DEFAULT.REPEAT.INTERVAL
occSDL.inc
2050

Foreign int constant SDL_DEFAULT_REPEAT_INTERVAL.

Foreign int constant SDL_DEFAULT_REPEAT_INTERVAL
VAL INT SDL.DEFAULT.REPEAT.INTERVAL
SDL.EnableKeyRepeat
occSDL.inc
2057

Foreign function SDL_EnableKeyRepeat.

Foreign function SDL_EnableKeyRepeat
RESULT INT

Function return value with type int.

VAL INT

Argument with type int.

VAL INT

Argument with type int.

INLINE PROC SDL.EnableKeyRepeat (RESULT INT return.value, VAL INT delay, VAL INT interval)
SDL.GetKeyState
occSDL.inc
2066

Foreign function SDL_GetKeyState.

Foreign function SDL_GetKeyState
RESULT BYTE

Function return value with type Uint8 *.

INT

Argument with type int *.

INLINE PROC SDL.GetKeyState (RESULT BYTE return.value, INT numkeys)
SDL.GetModState
occSDL.inc
2074

Foreign function SDL_GetModState.

Foreign function SDL_GetModState
SDLMod

Function return value with type SDLMod.

INLINE PROC SDL.GetModState (SDLMod return.value)
SDL.SetModState
occSDL.inc
2082

Foreign function SDL_SetModState.

Foreign function SDL_SetModState
VAL INT

Argument with type SDLMod.

INLINE PROC SDL.SetModState (VAL INT modstate)
SDL.GetKeyName
occSDL.inc
2091

Foreign function SDL_GetKeyName.

Foreign function SDL_GetKeyName
RESULT BYTE

Function return value with type char *.

VAL INT

Argument with type SDLKey.

INLINE PROC SDL.GetKeyName (RESULT BYTE return.value, VAL INT key)
SDL.Joystick
occSDL.inc
2096

Foreign structure pointer type SDL_Joystick.

Foreign structure pointer type SDL_Joystick
DATA TYPE SDL.Joystick
SDL.NumJoysticks
occSDL.inc
2102

Foreign function SDL_NumJoysticks.

Foreign function SDL_NumJoysticks
RESULT INT

Function return value with type int.

INLINE PROC SDL.NumJoysticks (RESULT INT return.value)
SDL.JoystickName
occSDL.inc
2111

Foreign function SDL_JoystickName.

Foreign function SDL_JoystickName
RESULT BYTE

Function return value with type char const *.

VAL INT

Argument with type int.

INLINE PROC SDL.JoystickName (RESULT BYTE return.value, VAL INT device.index)
SDL.JoystickOpen
occSDL.inc
2120

Foreign function SDL_JoystickOpen.

Foreign function SDL_JoystickOpen
SDL.Joystick

Function return value with type SDL_Joystick *.

VAL INT

Argument with type int.

INLINE PROC SDL.JoystickOpen (SDL.Joystick return.value, VAL INT device.index)
SDL.JoystickOpened
occSDL.inc
2129

Foreign function SDL_JoystickOpened.

Foreign function SDL_JoystickOpened
RESULT INT

Function return value with type int.

VAL INT

Argument with type int.

INLINE PROC SDL.JoystickOpened (RESULT INT return.value, VAL INT device.index)
SDL.JoystickIndex
occSDL.inc
2138

Foreign function SDL_JoystickIndex.

Foreign function SDL_JoystickIndex
RESULT INT

Function return value with type int.

SDL.Joystick

Argument with type SDL_Joystick *.

INLINE PROC SDL.JoystickIndex (RESULT INT return.value, SDL.Joystick joystick)
SDL.JoystickNumAxes
occSDL.inc
2147

Foreign function SDL_JoystickNumAxes.

Foreign function SDL_JoystickNumAxes
RESULT INT

Function return value with type int.

SDL.Joystick

Argument with type SDL_Joystick *.

INLINE PROC SDL.JoystickNumAxes (RESULT INT return.value, SDL.Joystick joystick)
SDL.JoystickNumBalls
occSDL.inc
2156

Foreign function SDL_JoystickNumBalls.

Foreign function SDL_JoystickNumBalls
RESULT INT

Function return value with type int.

SDL.Joystick

Argument with type SDL_Joystick *.

INLINE PROC SDL.JoystickNumBalls (RESULT INT return.value, SDL.Joystick joystick)
SDL.JoystickNumHats
occSDL.inc
2165

Foreign function SDL_JoystickNumHats.

Foreign function SDL_JoystickNumHats
RESULT INT

Function return value with type int.

SDL.Joystick

Argument with type SDL_Joystick *.

INLINE PROC SDL.JoystickNumHats (RESULT INT return.value, SDL.Joystick joystick)
SDL.JoystickNumButtons
occSDL.inc
2174

Foreign function SDL_JoystickNumButtons.

Foreign function SDL_JoystickNumButtons
RESULT INT

Function return value with type int.

SDL.Joystick

Argument with type SDL_Joystick *.

INLINE PROC SDL.JoystickNumButtons (RESULT INT return.value, SDL.Joystick joystick)
SDL.JoystickUpdate
occSDL.inc
2181

Foreign function SDL_JoystickUpdate.

Foreign function SDL_JoystickUpdate
INLINE PROC SDL.JoystickUpdate ()
SDL.JoystickEventState
occSDL.inc
2190

Foreign function SDL_JoystickEventState.

Foreign function SDL_JoystickEventState
RESULT INT

Function return value with type int.

VAL INT

Argument with type int.

INLINE PROC SDL.JoystickEventState (RESULT INT return.value, VAL INT state)
SDL.JoystickGetAxis
occSDL.inc
2200

Foreign function SDL_JoystickGetAxis.

Foreign function SDL_JoystickGetAxis
RESULT INT16

Function return value with type Sint16.

SDL.Joystick

Argument with type SDL_Joystick *.

VAL INT

Argument with type int.

INLINE PROC SDL.JoystickGetAxis (RESULT INT16 return.value, SDL.Joystick joystick, VAL INT axis)
SDL.HAT.CENTERED
occSDL.inc
2205

Foreign int constant SDL_HAT_CENTERED.

Foreign int constant SDL_HAT_CENTERED
VAL INT SDL.HAT.CENTERED
SDL.HAT.UP
occSDL.inc
2207

Foreign int constant SDL_HAT_UP.

Foreign int constant SDL_HAT_UP
VAL INT SDL.HAT.UP
SDL.HAT.RIGHT
occSDL.inc
2209

Foreign int constant SDL_HAT_RIGHT.

Foreign int constant SDL_HAT_RIGHT
VAL INT SDL.HAT.RIGHT
SDL.HAT.DOWN
occSDL.inc
2211

Foreign int constant SDL_HAT_DOWN.

Foreign int constant SDL_HAT_DOWN
VAL INT SDL.HAT.DOWN
SDL.HAT.LEFT
occSDL.inc
2213

Foreign int constant SDL_HAT_LEFT.

Foreign int constant SDL_HAT_LEFT
VAL INT SDL.HAT.LEFT
SDL.JoystickGetHat
occSDL.inc
2220

Foreign function SDL_JoystickGetHat.

Foreign function SDL_JoystickGetHat
RESULT BYTE

Function return value with type Uint8.

SDL.Joystick

Argument with type SDL_Joystick *.

VAL INT

Argument with type int.

INLINE PROC SDL.JoystickGetHat (RESULT BYTE return.value, SDL.Joystick joystick, VAL INT hat)
SDL.JoystickGetBall
occSDL.inc
2232

Foreign function SDL_JoystickGetBall.

Foreign function SDL_JoystickGetBall
RESULT INT

Function return value with type int.

SDL.Joystick

Argument with type SDL_Joystick *.

VAL INT

Argument with type int.

INT

Argument with type int *.

INT

Argument with type int *.

INLINE PROC SDL.JoystickGetBall (RESULT INT return.value, SDL.Joystick joystick, VAL INT ball, INT dx, INT dy)
SDL.JoystickGetButton
occSDL.inc
2242

Foreign function SDL_JoystickGetButton.

Foreign function SDL_JoystickGetButton
RESULT BYTE

Function return value with type Uint8.

SDL.Joystick

Argument with type SDL_Joystick *.

VAL INT

Argument with type int.

INLINE PROC SDL.JoystickGetButton (RESULT BYTE return.value, SDL.Joystick joystick, VAL INT button)
SDL.JoystickClose
occSDL.inc
2250

Foreign function SDL_JoystickClose.

Foreign function SDL_JoystickClose
SDL.Joystick

Argument with type SDL_Joystick *.

INLINE PROC SDL.JoystickClose (SDL.Joystick joystick)
SDL.AudioSpec
occSDL.inc
2255

Foreign structure pointer type SDL_AudioSpec.

Foreign structure pointer type SDL_AudioSpec
DATA TYPE SDL.AudioSpec
create.SDL.AudioSpec
occSDL.inc
2260

Allocate foreign structure SDL.AudioSpec.

Allocate foreign structure SDL.AudioSpec
RESULT SDL.AudioSpec

Pointer to newly-allocated structure.

INLINE PROC create.SDL.AudioSpec (RESULT SDL.AudioSpec ptr)
delete.SDL.AudioSpec
occSDL.inc
2266

Free foreign structure SDL.AudioSpec.

Free foreign structure SDL.AudioSpec
SDL.AudioSpec

Pointer to structure to free.

INLINE PROC delete.SDL.AudioSpec (SDL.AudioSpec ptr)
get.SDL.AudioSpec.freq
occSDL.inc
2273

Get value of member freq of foreign structure SDL.AudioSpec.

Get value of member freq of foreign structure SDL.AudioSpec
RESULT INT

Contents of the member freq.

VAL SDL.AudioSpec

Pointer to foreign structure SDL.AudioSpec.

INLINE PROC get.SDL.AudioSpec.freq (RESULT INT value, VAL SDL.AudioSpec ptr)
set.SDL.AudioSpec.freq
occSDL.inc
2280

Set value of member freq of foreign structure SDL.AudioSpec.

Set value of member freq of foreign structure SDL.AudioSpec
VAL INT

New contents of the member freq.

VAL SDL.AudioSpec

Pointer to foreign structure SDL.AudioSpec.

INLINE PROC set.SDL.AudioSpec.freq (VAL INT value, VAL SDL.AudioSpec ptr)
get.SDL.AudioSpec.format
occSDL.inc
2287

Get value of member format of foreign structure SDL.AudioSpec.

Get value of member format of foreign structure SDL.AudioSpec
RESULT INT16

Contents of the member format.

VAL SDL.AudioSpec

Pointer to foreign structure SDL.AudioSpec.

INLINE PROC get.SDL.AudioSpec.format (RESULT INT16 value, VAL SDL.AudioSpec ptr)
set.SDL.AudioSpec.format
occSDL.inc
2294

Set value of member format of foreign structure SDL.AudioSpec.

Set value of member format of foreign structure SDL.AudioSpec
VAL INT16

New contents of the member format.

VAL SDL.AudioSpec

Pointer to foreign structure SDL.AudioSpec.

INLINE PROC set.SDL.AudioSpec.format (VAL INT16 value, VAL SDL.AudioSpec ptr)
get.SDL.AudioSpec.channels
occSDL.inc
2301

Get value of member channels of foreign structure SDL.AudioSpec.

Get value of member channels of foreign structure SDL.AudioSpec
RESULT BYTE

Contents of the member channels.

VAL SDL.AudioSpec

Pointer to foreign structure SDL.AudioSpec.

INLINE PROC get.SDL.AudioSpec.channels (RESULT BYTE value, VAL SDL.AudioSpec ptr)
set.SDL.AudioSpec.channels
occSDL.inc
2308

Set value of member channels of foreign structure SDL.AudioSpec.

Set value of member channels of foreign structure SDL.AudioSpec
VAL BYTE

New contents of the member channels.

VAL SDL.AudioSpec

Pointer to foreign structure SDL.AudioSpec.

INLINE PROC set.SDL.AudioSpec.channels (VAL BYTE value, VAL SDL.AudioSpec ptr)
get.SDL.AudioSpec.silence
occSDL.inc
2315

Get value of member silence of foreign structure SDL.AudioSpec.

Get value of member silence of foreign structure SDL.AudioSpec
RESULT BYTE

Contents of the member silence.

VAL SDL.AudioSpec

Pointer to foreign structure SDL.AudioSpec.

INLINE PROC get.SDL.AudioSpec.silence (RESULT BYTE value, VAL SDL.AudioSpec ptr)
set.SDL.AudioSpec.silence
occSDL.inc
2322

Set value of member silence of foreign structure SDL.AudioSpec.

Set value of member silence of foreign structure SDL.AudioSpec
VAL BYTE

New contents of the member silence.

VAL SDL.AudioSpec

Pointer to foreign structure SDL.AudioSpec.

INLINE PROC set.SDL.AudioSpec.silence (VAL BYTE value, VAL SDL.AudioSpec ptr)
get.SDL.AudioSpec.samples
occSDL.inc
2329

Get value of member samples of foreign structure SDL.AudioSpec.

Get value of member samples of foreign structure SDL.AudioSpec
RESULT INT16

Contents of the member samples.

VAL SDL.AudioSpec

Pointer to foreign structure SDL.AudioSpec.

INLINE PROC get.SDL.AudioSpec.samples (RESULT INT16 value, VAL SDL.AudioSpec ptr)
set.SDL.AudioSpec.samples
occSDL.inc
2336

Set value of member samples of foreign structure SDL.AudioSpec.

Set value of member samples of foreign structure SDL.AudioSpec
VAL INT16

New contents of the member samples.

VAL SDL.AudioSpec

Pointer to foreign structure SDL.AudioSpec.

INLINE PROC set.SDL.AudioSpec.samples (VAL INT16 value, VAL SDL.AudioSpec ptr)
get.SDL.AudioSpec.padding
occSDL.inc
2343

Get value of member padding of foreign structure SDL.AudioSpec.

Get value of member padding of foreign structure SDL.AudioSpec
RESULT INT16

Contents of the member padding.

VAL SDL.AudioSpec

Pointer to foreign structure SDL.AudioSpec.

INLINE PROC get.SDL.AudioSpec.padding (RESULT INT16 value, VAL SDL.AudioSpec ptr)
set.SDL.AudioSpec.padding
occSDL.inc
2350

Set value of member padding of foreign structure SDL.AudioSpec.

Set value of member padding of foreign structure SDL.AudioSpec
VAL INT16

New contents of the member padding.

VAL SDL.AudioSpec

Pointer to foreign structure SDL.AudioSpec.

INLINE PROC set.SDL.AudioSpec.padding (VAL INT16 value, VAL SDL.AudioSpec ptr)
get.SDL.AudioSpec.size
occSDL.inc
2357

Get value of member size of foreign structure SDL.AudioSpec.

Get value of member size of foreign structure SDL.AudioSpec
RESULT INT

Contents of the member size.

VAL SDL.AudioSpec

Pointer to foreign structure SDL.AudioSpec.

INLINE PROC get.SDL.AudioSpec.size (RESULT INT value, VAL SDL.AudioSpec ptr)
set.SDL.AudioSpec.size
occSDL.inc
2364

Set value of member size of foreign structure SDL.AudioSpec.

Set value of member size of foreign structure SDL.AudioSpec
VAL INT

New contents of the member size.

VAL SDL.AudioSpec

Pointer to foreign structure SDL.AudioSpec.

INLINE PROC set.SDL.AudioSpec.size (VAL INT value, VAL SDL.AudioSpec ptr)
get.SDL.AudioSpec.callback
occSDL.inc
2371

Get value of member callback of foreign structure SDL.AudioSpec.

Get value of member callback of foreign structure SDL.AudioSpec
RESULT INT

Contents of the member callback.

VAL SDL.AudioSpec

Pointer to foreign structure SDL.AudioSpec.

INLINE PROC get.SDL.AudioSpec.callback (RESULT INT value, VAL SDL.AudioSpec ptr)
set.SDL.AudioSpec.callback
occSDL.inc
2378

Set value of member callback of foreign structure SDL.AudioSpec.

Set value of member callback of foreign structure SDL.AudioSpec
VAL INT

New contents of the member callback.

VAL SDL.AudioSpec

Pointer to foreign structure SDL.AudioSpec.

INLINE PROC set.SDL.AudioSpec.callback (VAL INT value, VAL SDL.AudioSpec ptr)
get.SDL.AudioSpec.userdata
occSDL.inc
2385

Get value of member userdata of foreign structure SDL.AudioSpec.

Get value of member userdata of foreign structure SDL.AudioSpec
RESULT INT

Contents of the member userdata.

VAL SDL.AudioSpec

Pointer to foreign structure SDL.AudioSpec.

INLINE PROC get.SDL.AudioSpec.userdata (RESULT INT value, VAL SDL.AudioSpec ptr)
set.SDL.AudioSpec.userdata
occSDL.inc
2392

Set value of member userdata of foreign structure SDL.AudioSpec.

Set value of member userdata of foreign structure SDL.AudioSpec
VAL INT

New contents of the member userdata.

VAL SDL.AudioSpec

Pointer to foreign structure SDL.AudioSpec.

INLINE PROC set.SDL.AudioSpec.userdata (VAL INT value, VAL SDL.AudioSpec ptr)
AUDIO.U8
occSDL.inc
2397

Foreign int constant AUDIO_U8.

Foreign int constant AUDIO_U8
VAL INT AUDIO.U8
AUDIO.S8
occSDL.inc
2399

Foreign int constant AUDIO_S8.

Foreign int constant AUDIO_S8
VAL INT AUDIO.S8
AUDIO.U16LSB
occSDL.inc
2401

Foreign int constant AUDIO_U16LSB.

Foreign int constant AUDIO_U16LSB
VAL INT AUDIO.U16LSB
AUDIO.S16LSB
occSDL.inc
2403

Foreign int constant AUDIO_S16LSB.

Foreign int constant AUDIO_S16LSB
VAL INT AUDIO.S16LSB
AUDIO.U16MSB
occSDL.inc
2405

Foreign int constant AUDIO_U16MSB.

Foreign int constant AUDIO_U16MSB
VAL INT AUDIO.U16MSB
AUDIO.S16MSB
occSDL.inc
2407

Foreign int constant AUDIO_S16MSB.

Foreign int constant AUDIO_S16MSB
VAL INT AUDIO.S16MSB
AUDIO.U16
occSDL.inc
2409

Foreign int constant AUDIO_U16.

Foreign int constant AUDIO_U16
VAL INT AUDIO.U16
AUDIO.S16
occSDL.inc
2411

Foreign int constant AUDIO_S16.

Foreign int constant AUDIO_S16
VAL INT AUDIO.S16
SDL.AudioCVT
occSDL.inc
2413

Foreign structure pointer type SDL_AudioCVT.

Foreign structure pointer type SDL_AudioCVT
DATA TYPE SDL.AudioCVT
create.SDL.AudioCVT
occSDL.inc
2418

Allocate foreign structure SDL.AudioCVT.

Allocate foreign structure SDL.AudioCVT
RESULT SDL.AudioCVT

Pointer to newly-allocated structure.

INLINE PROC create.SDL.AudioCVT (RESULT SDL.AudioCVT ptr)
delete.SDL.AudioCVT
occSDL.inc
2424

Free foreign structure SDL.AudioCVT.

Free foreign structure SDL.AudioCVT
SDL.AudioCVT

Pointer to structure to free.

INLINE PROC delete.SDL.AudioCVT (SDL.AudioCVT ptr)
get.SDL.AudioCVT.needed
occSDL.inc
2431

Get value of member needed of foreign structure SDL.AudioCVT.

Get value of member needed of foreign structure SDL.AudioCVT
RESULT INT

Contents of the member needed.

VAL SDL.AudioCVT

Pointer to foreign structure SDL.AudioCVT.

INLINE PROC get.SDL.AudioCVT.needed (RESULT INT value, VAL SDL.AudioCVT ptr)
set.SDL.AudioCVT.needed
occSDL.inc
2438

Set value of member needed of foreign structure SDL.AudioCVT.

Set value of member needed of foreign structure SDL.AudioCVT
VAL INT

New contents of the member needed.

VAL SDL.AudioCVT

Pointer to foreign structure SDL.AudioCVT.

INLINE PROC set.SDL.AudioCVT.needed (VAL INT value, VAL SDL.AudioCVT ptr)
get.SDL.AudioCVT.src.format
occSDL.inc
2445

Get value of member src.format of foreign structure SDL.AudioCVT.

Get value of member src.format of foreign structure SDL.AudioCVT
RESULT INT16

Contents of the member src.format.

VAL SDL.AudioCVT

Pointer to foreign structure SDL.AudioCVT.

INLINE PROC get.SDL.AudioCVT.src.format (RESULT INT16 value, VAL SDL.AudioCVT ptr)
set.SDL.AudioCVT.src.format
occSDL.inc
2452

Set value of member src.format of foreign structure SDL.AudioCVT.

Set value of member src.format of foreign structure SDL.AudioCVT
VAL INT16

New contents of the member src.format.

VAL SDL.AudioCVT

Pointer to foreign structure SDL.AudioCVT.

INLINE PROC set.SDL.AudioCVT.src.format (VAL INT16 value, VAL SDL.AudioCVT ptr)
get.SDL.AudioCVT.dst.format
occSDL.inc
2459

Get value of member dst.format of foreign structure SDL.AudioCVT.

Get value of member dst.format of foreign structure SDL.AudioCVT
RESULT INT16

Contents of the member dst.format.

VAL SDL.AudioCVT

Pointer to foreign structure SDL.AudioCVT.

INLINE PROC get.SDL.AudioCVT.dst.format (RESULT INT16 value, VAL SDL.AudioCVT ptr)
set.SDL.AudioCVT.dst.format
occSDL.inc
2466

Set value of member dst.format of foreign structure SDL.AudioCVT.

Set value of member dst.format of foreign structure SDL.AudioCVT
VAL INT16

New contents of the member dst.format.

VAL SDL.AudioCVT

Pointer to foreign structure SDL.AudioCVT.

INLINE PROC set.SDL.AudioCVT.dst.format (VAL INT16 value, VAL SDL.AudioCVT ptr)
get.SDL.AudioCVT.rate.incr
occSDL.inc
2473

Get value of member rate.incr of foreign structure SDL.AudioCVT.

Get value of member rate.incr of foreign structure SDL.AudioCVT
RESULT REAL64

Contents of the member rate.incr.

VAL SDL.AudioCVT

Pointer to foreign structure SDL.AudioCVT.

INLINE PROC get.SDL.AudioCVT.rate.incr (RESULT REAL64 value, VAL SDL.AudioCVT ptr)
set.SDL.AudioCVT.rate.incr
occSDL.inc
2480

Set value of member rate.incr of foreign structure SDL.AudioCVT.

Set value of member rate.incr of foreign structure SDL.AudioCVT
VAL REAL64

New contents of the member rate.incr.

VAL SDL.AudioCVT

Pointer to foreign structure SDL.AudioCVT.

INLINE PROC set.SDL.AudioCVT.rate.incr (VAL REAL64 value, VAL SDL.AudioCVT ptr)
get.SDL.AudioCVT.buf
occSDL.inc
2487

Get value of member buf of foreign structure SDL.AudioCVT.

Get value of member buf of foreign structure SDL.AudioCVT
RESULT BYTE

Contents of the member buf.

VAL SDL.AudioCVT

Pointer to foreign structure SDL.AudioCVT.

INLINE PROC get.SDL.AudioCVT.buf (RESULT BYTE value, VAL SDL.AudioCVT ptr)
set.SDL.AudioCVT.buf
occSDL.inc
2494

Set value of member buf of foreign structure SDL.AudioCVT.

Set value of member buf of foreign structure SDL.AudioCVT
VAL BYTE

New contents of the member buf.

VAL SDL.AudioCVT

Pointer to foreign structure SDL.AudioCVT.

INLINE PROC set.SDL.AudioCVT.buf (VAL BYTE value, VAL SDL.AudioCVT ptr)
get.SDL.AudioCVT.len
occSDL.inc
2501

Get value of member len of foreign structure SDL.AudioCVT.

Get value of member len of foreign structure SDL.AudioCVT
RESULT INT

Contents of the member len.

VAL SDL.AudioCVT

Pointer to foreign structure SDL.AudioCVT.

INLINE PROC get.SDL.AudioCVT.len (RESULT INT value, VAL SDL.AudioCVT ptr)
set.SDL.AudioCVT.len
occSDL.inc
2508

Set value of member len of foreign structure SDL.AudioCVT.

Set value of member len of foreign structure SDL.AudioCVT
VAL INT

New contents of the member len.

VAL SDL.AudioCVT

Pointer to foreign structure SDL.AudioCVT.

INLINE PROC set.SDL.AudioCVT.len (VAL INT value, VAL SDL.AudioCVT ptr)
get.SDL.AudioCVT.len.cvt
occSDL.inc
2515

Get value of member len.cvt of foreign structure SDL.AudioCVT.

Get value of member len.cvt of foreign structure SDL.AudioCVT
RESULT INT

Contents of the member len.cvt.

VAL SDL.AudioCVT

Pointer to foreign structure SDL.AudioCVT.

INLINE PROC get.SDL.AudioCVT.len.cvt (RESULT INT value, VAL SDL.AudioCVT ptr)
set.SDL.AudioCVT.len.cvt
occSDL.inc
2522

Set value of member len.cvt of foreign structure SDL.AudioCVT.

Set value of member len.cvt of foreign structure SDL.AudioCVT
VAL INT

New contents of the member len.cvt.

VAL SDL.AudioCVT

Pointer to foreign structure SDL.AudioCVT.

INLINE PROC set.SDL.AudioCVT.len.cvt (VAL INT value, VAL SDL.AudioCVT ptr)
get.SDL.AudioCVT.len.mult
occSDL.inc
2529

Get value of member len.mult of foreign structure SDL.AudioCVT.

Get value of member len.mult of foreign structure SDL.AudioCVT
RESULT INT

Contents of the member len.mult.

VAL SDL.AudioCVT

Pointer to foreign structure SDL.AudioCVT.

INLINE PROC get.SDL.AudioCVT.len.mult (RESULT INT value, VAL SDL.AudioCVT ptr)
set.SDL.AudioCVT.len.mult
occSDL.inc
2536

Set value of member len.mult of foreign structure SDL.AudioCVT.

Set value of member len.mult of foreign structure SDL.AudioCVT
VAL INT

New contents of the member len.mult.

VAL SDL.AudioCVT

Pointer to foreign structure SDL.AudioCVT.

INLINE PROC set.SDL.AudioCVT.len.mult (VAL INT value, VAL SDL.AudioCVT ptr)
get.SDL.AudioCVT.len.ratio
occSDL.inc
2543

Get value of member len.ratio of foreign structure SDL.AudioCVT.

Get value of member len.ratio of foreign structure SDL.AudioCVT
RESULT REAL64

Contents of the member len.ratio.

VAL SDL.AudioCVT

Pointer to foreign structure SDL.AudioCVT.

INLINE PROC get.SDL.AudioCVT.len.ratio (RESULT REAL64 value, VAL SDL.AudioCVT ptr)
set.SDL.AudioCVT.len.ratio
occSDL.inc
2550

Set value of member len.ratio of foreign structure SDL.AudioCVT.

Set value of member len.ratio of foreign structure SDL.AudioCVT
VAL REAL64

New contents of the member len.ratio.

VAL SDL.AudioCVT

Pointer to foreign structure SDL.AudioCVT.

INLINE PROC set.SDL.AudioCVT.len.ratio (VAL REAL64 value, VAL SDL.AudioCVT ptr)
get.SDL.AudioCVT.filter.index
occSDL.inc
2557

Get value of member filter.index of foreign structure SDL.AudioCVT.

Get value of member filter.index of foreign structure SDL.AudioCVT
RESULT INT

Contents of the member filter.index.

VAL SDL.AudioCVT

Pointer to foreign structure SDL.AudioCVT.

INLINE PROC get.SDL.AudioCVT.filter.index (RESULT INT value, VAL SDL.AudioCVT ptr)
set.SDL.AudioCVT.filter.index
occSDL.inc
2564

Set value of member filter.index of foreign structure SDL.AudioCVT.

Set value of member filter.index of foreign structure SDL.AudioCVT
VAL INT

New contents of the member filter.index.

VAL SDL.AudioCVT

Pointer to foreign structure SDL.AudioCVT.

INLINE PROC set.SDL.AudioCVT.filter.index (VAL INT value, VAL SDL.AudioCVT ptr)
SDL.AudioDriverName
occSDL.inc
2574

Foreign function SDL_AudioDriverName.

Foreign function SDL_AudioDriverName
RESULT BYTE

Function return value with type char *.

[]BYTE

Array pointer argument with element type char.

VAL INT

Argument with type int.

INLINE PROC SDL.AudioDriverName (RESULT BYTE return.value, []BYTE namebuf, VAL INT maxlen)
SDL.OpenAudio
occSDL.inc
2584

Foreign function SDL_OpenAudio.

Foreign function SDL_OpenAudio
RESULT INT

Function return value with type int.

SDL.AudioSpec

Argument with type SDL_AudioSpec *.

SDL.AudioSpec

Argument with type SDL_AudioSpec *.

INLINE PROC SDL.OpenAudio (RESULT INT return.value, SDL.AudioSpec desired, SDL.AudioSpec obtained)
SDL.audiostatus
occSDL.inc
2589

Foreign enumeration SDL_audiostatus.

Foreign enumeration SDL_audiostatus
SDL.GetAudioStatus
occSDL.inc
2599

Foreign function SDL_GetAudioStatus.

Foreign function SDL_GetAudioStatus
SDL.audiostatus

Function return value with type SDL_audiostatus.

INLINE PROC SDL.GetAudioStatus (SDL.audiostatus return.value)
SDL.PauseAudio
occSDL.inc
2607

Foreign function SDL_PauseAudio.

Foreign function SDL_PauseAudio
VAL INT

Argument with type int.

INLINE PROC SDL.PauseAudio (VAL INT pause.on)
occ.SDL.LoadWAV
occSDL.inc
2619

Foreign function occ_SDL_LoadWAV.

Foreign function occ_SDL_LoadWAV
SDL.AudioSpec

Function return value with type SDL_AudioSpec *.

[]BYTE

Array pointer argument with element type char.

SDL.AudioSpec

Argument with type SDL_AudioSpec *.

[][]BYTE

Array pointer argument with element type Uint8.

[]INT

Array pointer argument with element type Uint32.

INLINE PROC occ.SDL.LoadWAV (SDL.AudioSpec return.value, []BYTE file, SDL.AudioSpec spec, [][]BYTE audio.buf, []INT audio.len)
SDL.FreeWAV
occSDL.inc
2627

Foreign function SDL_FreeWAV.

Foreign function SDL_FreeWAV
BYTE

Argument with type Uint8 *.

INLINE PROC SDL.FreeWAV (BYTE audio.buf)
SDL.BuildAudioCVT
occSDL.inc
2642

Foreign function SDL_BuildAudioCVT.

Foreign function SDL_BuildAudioCVT
RESULT INT

Function return value with type int.

SDL.AudioCVT

Argument with type SDL_AudioCVT *.

VAL INT16

Argument with type Uint16.

VAL BYTE

Argument with type Uint8.

VAL INT

Argument with type int.

VAL INT16

Argument with type Uint16.

VAL BYTE

Argument with type Uint8.

VAL INT

Argument with type int.

INLINE PROC SDL.BuildAudioCVT (RESULT INT return.value, SDL.AudioCVT cvt, VAL INT16 src.format, VAL BYTE src.channels, VAL INT src.rate, VAL INT16 dst.format, VAL BYTE dst.channels, VAL INT dst.rate)
SDL.ConvertAudio
occSDL.inc
2651

Foreign function SDL_ConvertAudio.

Foreign function SDL_ConvertAudio
RESULT INT

Function return value with type int.

SDL.AudioCVT

Argument with type SDL_AudioCVT *.

INLINE PROC SDL.ConvertAudio (RESULT INT return.value, SDL.AudioCVT cvt)
SDL.MIX.MAXVOLUME
occSDL.inc
2656

Foreign int constant SDL_MIX_MAXVOLUME.

Foreign int constant SDL_MIX_MAXVOLUME
VAL INT SDL.MIX.MAXVOLUME
SDL.MixAudio
occSDL.inc
2664

Foreign function SDL_MixAudio.

Foreign function SDL_MixAudio
BYTE

Argument with type Uint8 *.

BYTE

Argument with type Uint8 const *.

VAL INT

Argument with type Uint32.

VAL INT

Argument with type int.

INLINE PROC SDL.MixAudio (BYTE dst, BYTE src, VAL INT len, VAL INT volume)
SDL.LockAudio
occSDL.inc
2671

Foreign function SDL_LockAudio.

Foreign function SDL_LockAudio
INLINE PROC SDL.LockAudio ()
SDL.UnlockAudio
occSDL.inc
2678

Foreign function SDL_UnlockAudio.

Foreign function SDL_UnlockAudio
INLINE PROC SDL.UnlockAudio ()
SDL.CloseAudio
occSDL.inc
2685

Foreign function SDL_CloseAudio.

Foreign function SDL_CloseAudio
INLINE PROC SDL.CloseAudio ()
arbitrary.name21
occSDL.inc
2689

Foreign enumeration .

Foreign enumeration
arbitrary.name22
occSDL.inc
2718

Foreign enumeration .

Foreign enumeration
SDL.ALLEVENTS
occSDL.inc
2739

Foreign int constant SDL_ALLEVENTS.

Foreign int constant SDL_ALLEVENTS
VAL INT SDL.ALLEVENTS
SDL.ActiveEvent
occSDL.inc
2741

Foreign structure pointer type SDL_ActiveEvent.

Foreign structure pointer type SDL_ActiveEvent
DATA TYPE SDL.ActiveEvent
create.SDL.ActiveEvent
occSDL.inc
2746

Allocate foreign structure SDL.ActiveEvent.

Allocate foreign structure SDL.ActiveEvent
RESULT SDL.ActiveEvent

Pointer to newly-allocated structure.

INLINE PROC create.SDL.ActiveEvent (RESULT SDL.ActiveEvent ptr)
delete.SDL.ActiveEvent
occSDL.inc
2752

Free foreign structure SDL.ActiveEvent.

Free foreign structure SDL.ActiveEvent
SDL.ActiveEvent

Pointer to structure to free.

INLINE PROC delete.SDL.ActiveEvent (SDL.ActiveEvent ptr)
get.SDL.ActiveEvent.type
occSDL.inc
2759

Get value of member type of foreign structure SDL.ActiveEvent.

Get value of member type of foreign structure SDL.ActiveEvent
RESULT BYTE

Contents of the member type.

VAL SDL.ActiveEvent

Pointer to foreign structure SDL.ActiveEvent.

INLINE PROC get.SDL.ActiveEvent.type (RESULT BYTE value, VAL SDL.ActiveEvent ptr)
set.SDL.ActiveEvent.type
occSDL.inc
2766

Set value of member type of foreign structure SDL.ActiveEvent.

Set value of member type of foreign structure SDL.ActiveEvent
VAL BYTE

New contents of the member type.

VAL SDL.ActiveEvent

Pointer to foreign structure SDL.ActiveEvent.

INLINE PROC set.SDL.ActiveEvent.type (VAL BYTE value, VAL SDL.ActiveEvent ptr)
get.SDL.ActiveEvent.gain
occSDL.inc
2773

Get value of member gain of foreign structure SDL.ActiveEvent.

Get value of member gain of foreign structure SDL.ActiveEvent
RESULT BYTE

Contents of the member gain.

VAL SDL.ActiveEvent

Pointer to foreign structure SDL.ActiveEvent.

INLINE PROC get.SDL.ActiveEvent.gain (RESULT BYTE value, VAL SDL.ActiveEvent ptr)
set.SDL.ActiveEvent.gain
occSDL.inc
2780

Set value of member gain of foreign structure SDL.ActiveEvent.

Set value of member gain of foreign structure SDL.ActiveEvent
VAL BYTE

New contents of the member gain.

VAL SDL.ActiveEvent

Pointer to foreign structure SDL.ActiveEvent.

INLINE PROC set.SDL.ActiveEvent.gain (VAL BYTE value, VAL SDL.ActiveEvent ptr)
get.SDL.ActiveEvent.state
occSDL.inc
2787

Get value of member state of foreign structure SDL.ActiveEvent.

Get value of member state of foreign structure SDL.ActiveEvent
RESULT BYTE

Contents of the member state.

VAL SDL.ActiveEvent

Pointer to foreign structure SDL.ActiveEvent.

INLINE PROC get.SDL.ActiveEvent.state (RESULT BYTE value, VAL SDL.ActiveEvent ptr)
set.SDL.ActiveEvent.state
occSDL.inc
2794

Set value of member state of foreign structure SDL.ActiveEvent.

Set value of member state of foreign structure SDL.ActiveEvent
VAL BYTE

New contents of the member state.

VAL SDL.ActiveEvent

Pointer to foreign structure SDL.ActiveEvent.

INLINE PROC set.SDL.ActiveEvent.state (VAL BYTE value, VAL SDL.ActiveEvent ptr)
SDL.KeyboardEvent
occSDL.inc
2799

Foreign structure pointer type SDL_KeyboardEvent.

Foreign structure pointer type SDL_KeyboardEvent
DATA TYPE SDL.KeyboardEvent
create.SDL.KeyboardEvent
occSDL.inc
2804

Allocate foreign structure SDL.KeyboardEvent.

Allocate foreign structure SDL.KeyboardEvent
RESULT SDL.KeyboardEvent

Pointer to newly-allocated structure.

INLINE PROC create.SDL.KeyboardEvent (RESULT SDL.KeyboardEvent ptr)
delete.SDL.KeyboardEvent
occSDL.inc
2810

Free foreign structure SDL.KeyboardEvent.

Free foreign structure SDL.KeyboardEvent
SDL.KeyboardEvent

Pointer to structure to free.

INLINE PROC delete.SDL.KeyboardEvent (SDL.KeyboardEvent ptr)
get.SDL.KeyboardEvent.type
occSDL.inc
2817

Get value of member type of foreign structure SDL.KeyboardEvent.

Get value of member type of foreign structure SDL.KeyboardEvent
RESULT BYTE

Contents of the member type.

VAL SDL.KeyboardEvent

Pointer to foreign structure SDL.KeyboardEvent.

INLINE PROC get.SDL.KeyboardEvent.type (RESULT BYTE value, VAL SDL.KeyboardEvent ptr)
set.SDL.KeyboardEvent.type
occSDL.inc
2824

Set value of member type of foreign structure SDL.KeyboardEvent.

Set value of member type of foreign structure SDL.KeyboardEvent
VAL BYTE

New contents of the member type.

VAL SDL.KeyboardEvent

Pointer to foreign structure SDL.KeyboardEvent.

INLINE PROC set.SDL.KeyboardEvent.type (VAL BYTE value, VAL SDL.KeyboardEvent ptr)
get.SDL.KeyboardEvent.which
occSDL.inc
2831

Get value of member which of foreign structure SDL.KeyboardEvent.

Get value of member which of foreign structure SDL.KeyboardEvent
RESULT BYTE

Contents of the member which.

VAL SDL.KeyboardEvent

Pointer to foreign structure SDL.KeyboardEvent.

INLINE PROC get.SDL.KeyboardEvent.which (RESULT BYTE value, VAL SDL.KeyboardEvent ptr)
set.SDL.KeyboardEvent.which
occSDL.inc
2838

Set value of member which of foreign structure SDL.KeyboardEvent.

Set value of member which of foreign structure SDL.KeyboardEvent
VAL BYTE

New contents of the member which.

VAL SDL.KeyboardEvent

Pointer to foreign structure SDL.KeyboardEvent.

INLINE PROC set.SDL.KeyboardEvent.which (VAL BYTE value, VAL SDL.KeyboardEvent ptr)
get.SDL.KeyboardEvent.state
occSDL.inc
2845

Get value of member state of foreign structure SDL.KeyboardEvent.

Get value of member state of foreign structure SDL.KeyboardEvent
RESULT BYTE

Contents of the member state.

VAL SDL.KeyboardEvent

Pointer to foreign structure SDL.KeyboardEvent.

INLINE PROC get.SDL.KeyboardEvent.state (RESULT BYTE value, VAL SDL.KeyboardEvent ptr)
set.SDL.KeyboardEvent.state
occSDL.inc
2852

Set value of member state of foreign structure SDL.KeyboardEvent.

Set value of member state of foreign structure SDL.KeyboardEvent
VAL BYTE

New contents of the member state.

VAL SDL.KeyboardEvent

Pointer to foreign structure SDL.KeyboardEvent.

INLINE PROC set.SDL.KeyboardEvent.state (VAL BYTE value, VAL SDL.KeyboardEvent ptr)
get.SDL.KeyboardEvent.keysym
occSDL.inc
2859

Get value of member keysym of foreign structure SDL.KeyboardEvent.

Get value of member keysym of foreign structure SDL.KeyboardEvent
RESULT SDL.keysym

Contents of the member keysym.

VAL SDL.KeyboardEvent

Pointer to foreign structure SDL.KeyboardEvent.

INLINE PROC get.SDL.KeyboardEvent.keysym (RESULT SDL.keysym value, VAL SDL.KeyboardEvent ptr)
SDL.MouseMotionEvent
occSDL.inc
2864

Foreign structure pointer type SDL_MouseMotionEvent.

Foreign structure pointer type SDL_MouseMotionEvent
DATA TYPE SDL.MouseMotionEvent
create.SDL.MouseMotionEvent
occSDL.inc
2869

Allocate foreign structure SDL.MouseMotionEvent.

Allocate foreign structure SDL.MouseMotionEvent
RESULT SDL.MouseMotionEvent

Pointer to newly-allocated structure.

INLINE PROC create.SDL.MouseMotionEvent (RESULT SDL.MouseMotionEvent ptr)
delete.SDL.MouseMotionEvent
occSDL.inc
2875

Free foreign structure SDL.MouseMotionEvent.

Free foreign structure SDL.MouseMotionEvent
SDL.MouseMotionEvent

Pointer to structure to free.

INLINE PROC delete.SDL.MouseMotionEvent (SDL.MouseMotionEvent ptr)
get.SDL.MouseMotionEvent.type
occSDL.inc
2882

Get value of member type of foreign structure SDL.MouseMotionEvent.

Get value of member type of foreign structure SDL.MouseMotionEvent
RESULT BYTE

Contents of the member type.

VAL SDL.MouseMotionEvent

Pointer to foreign structure SDL.MouseMotionEvent.

INLINE PROC get.SDL.MouseMotionEvent.type (RESULT BYTE value, VAL SDL.MouseMotionEvent ptr)
set.SDL.MouseMotionEvent.type
occSDL.inc
2889

Set value of member type of foreign structure SDL.MouseMotionEvent.

Set value of member type of foreign structure SDL.MouseMotionEvent
VAL BYTE

New contents of the member type.

VAL SDL.MouseMotionEvent

Pointer to foreign structure SDL.MouseMotionEvent.

INLINE PROC set.SDL.MouseMotionEvent.type (VAL BYTE value, VAL SDL.MouseMotionEvent ptr)
get.SDL.MouseMotionEvent.which
occSDL.inc
2896

Get value of member which of foreign structure SDL.MouseMotionEvent.

Get value of member which of foreign structure SDL.MouseMotionEvent
RESULT BYTE

Contents of the member which.

VAL SDL.MouseMotionEvent

Pointer to foreign structure SDL.MouseMotionEvent.

INLINE PROC get.SDL.MouseMotionEvent.which (RESULT BYTE value, VAL SDL.MouseMotionEvent ptr)
set.SDL.MouseMotionEvent.which
occSDL.inc
2903

Set value of member which of foreign structure SDL.MouseMotionEvent.

Set value of member which of foreign structure SDL.MouseMotionEvent
VAL BYTE

New contents of the member which.

VAL SDL.MouseMotionEvent

Pointer to foreign structure SDL.MouseMotionEvent.

INLINE PROC set.SDL.MouseMotionEvent.which (VAL BYTE value, VAL SDL.MouseMotionEvent ptr)
get.SDL.MouseMotionEvent.state
occSDL.inc
2910

Get value of member state of foreign structure SDL.MouseMotionEvent.

Get value of member state of foreign structure SDL.MouseMotionEvent
RESULT BYTE

Contents of the member state.

VAL SDL.MouseMotionEvent

Pointer to foreign structure SDL.MouseMotionEvent.

INLINE PROC get.SDL.MouseMotionEvent.state (RESULT BYTE value, VAL SDL.MouseMotionEvent ptr)
set.SDL.MouseMotionEvent.state
occSDL.inc
2917

Set value of member state of foreign structure SDL.MouseMotionEvent.

Set value of member state of foreign structure SDL.MouseMotionEvent
VAL BYTE

New contents of the member state.

VAL SDL.MouseMotionEvent

Pointer to foreign structure SDL.MouseMotionEvent.

INLINE PROC set.SDL.MouseMotionEvent.state (VAL BYTE value, VAL SDL.MouseMotionEvent ptr)
get.SDL.MouseMotionEvent.x
occSDL.inc
2924

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

Get value of member x of foreign structure SDL.MouseMotionEvent
RESULT INT16

Contents of the member x.

VAL SDL.MouseMotionEvent

Pointer to foreign structure SDL.MouseMotionEvent.

INLINE PROC get.SDL.MouseMotionEvent.x (RESULT INT16 value, VAL SDL.MouseMotionEvent ptr)
set.SDL.MouseMotionEvent.x
occSDL.inc
2931

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

Set value of member x of foreign structure SDL.MouseMotionEvent
VAL INT16

New contents of the member x.

VAL SDL.MouseMotionEvent

Pointer to foreign structure SDL.MouseMotionEvent.

INLINE PROC set.SDL.MouseMotionEvent.x (VAL INT16 value, VAL SDL.MouseMotionEvent ptr)
get.SDL.MouseMotionEvent.y
occSDL.inc
2938

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

Get value of member y of foreign structure SDL.MouseMotionEvent
RESULT INT16

Contents of the member y.

VAL SDL.MouseMotionEvent

Pointer to foreign structure SDL.MouseMotionEvent.

INLINE PROC get.SDL.MouseMotionEvent.y (RESULT INT16 value, VAL SDL.MouseMotionEvent ptr)
set.SDL.MouseMotionEvent.y
occSDL.inc
2945

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

Set value of member y of foreign structure SDL.MouseMotionEvent
VAL INT16

New contents of the member y.

VAL SDL.MouseMotionEvent

Pointer to foreign structure SDL.MouseMotionEvent.

INLINE PROC set.SDL.MouseMotionEvent.y (VAL INT16 value, VAL SDL.MouseMotionEvent ptr)
get.SDL.MouseMotionEvent.xrel
occSDL.inc
2952

Get value of member xrel of foreign structure SDL.MouseMotionEvent.

Get value of member xrel of foreign structure SDL.MouseMotionEvent
RESULT INT16

Contents of the member xrel.

VAL SDL.MouseMotionEvent

Pointer to foreign structure SDL.MouseMotionEvent.

INLINE PROC get.SDL.MouseMotionEvent.xrel (RESULT INT16 value, VAL SDL.MouseMotionEvent ptr)
set.SDL.MouseMotionEvent.xrel
occSDL.inc
2959

Set value of member xrel of foreign structure SDL.MouseMotionEvent.

Set value of member xrel of foreign structure SDL.MouseMotionEvent
VAL INT16

New contents of the member xrel.

VAL SDL.MouseMotionEvent

Pointer to foreign structure SDL.MouseMotionEvent.

INLINE PROC set.SDL.MouseMotionEvent.xrel (VAL INT16 value, VAL SDL.MouseMotionEvent ptr)
get.SDL.MouseMotionEvent.yrel
occSDL.inc
2966

Get value of member yrel of foreign structure SDL.MouseMotionEvent.

Get value of member yrel of foreign structure SDL.MouseMotionEvent
RESULT INT16

Contents of the member yrel.

VAL SDL.MouseMotionEvent

Pointer to foreign structure SDL.MouseMotionEvent.

INLINE PROC get.SDL.MouseMotionEvent.yrel (RESULT INT16 value, VAL SDL.MouseMotionEvent ptr)
set.SDL.MouseMotionEvent.yrel
occSDL.inc
2973

Set value of member yrel of foreign structure SDL.MouseMotionEvent.

Set value of member yrel of foreign structure SDL.MouseMotionEvent
VAL INT16

New contents of the member yrel.

VAL SDL.MouseMotionEvent

Pointer to foreign structure SDL.MouseMotionEvent.

INLINE PROC set.SDL.MouseMotionEvent.yrel (VAL INT16 value, VAL SDL.MouseMotionEvent ptr)
SDL.MouseButtonEvent
occSDL.inc
2978

Foreign structure pointer type SDL_MouseButtonEvent.

Foreign structure pointer type SDL_MouseButtonEvent
DATA TYPE SDL.MouseButtonEvent
create.SDL.MouseButtonEvent
occSDL.inc
2983

Allocate foreign structure SDL.MouseButtonEvent.

Allocate foreign structure SDL.MouseButtonEvent
RESULT SDL.MouseButtonEvent

Pointer to newly-allocated structure.

INLINE PROC create.SDL.MouseButtonEvent (RESULT SDL.MouseButtonEvent ptr)
delete.SDL.MouseButtonEvent
occSDL.inc
2989

Free foreign structure SDL.MouseButtonEvent.

Free foreign structure SDL.MouseButtonEvent
SDL.MouseButtonEvent

Pointer to structure to free.

INLINE PROC delete.SDL.MouseButtonEvent (SDL.MouseButtonEvent ptr)
get.SDL.MouseButtonEvent.type
occSDL.inc
2996

Get value of member type of foreign structure SDL.MouseButtonEvent.

Get value of member type of foreign structure SDL.MouseButtonEvent
RESULT BYTE

Contents of the member type.

VAL SDL.MouseButtonEvent

Pointer to foreign structure SDL.MouseButtonEvent.

INLINE PROC get.SDL.MouseButtonEvent.type (RESULT BYTE value, VAL SDL.MouseButtonEvent ptr)
set.SDL.MouseButtonEvent.type
occSDL.inc
3003

Set value of member type of foreign structure SDL.MouseButtonEvent.

Set value of member type of foreign structure SDL.MouseButtonEvent
VAL BYTE

New contents of the member type.

VAL SDL.MouseButtonEvent

Pointer to foreign structure SDL.MouseButtonEvent.

INLINE PROC set.SDL.MouseButtonEvent.type (VAL BYTE value, VAL SDL.MouseButtonEvent ptr)
get.SDL.MouseButtonEvent.which
occSDL.inc
3010

Get value of member which of foreign structure SDL.MouseButtonEvent.

Get value of member which of foreign structure SDL.MouseButtonEvent
RESULT BYTE

Contents of the member which.

VAL SDL.MouseButtonEvent

Pointer to foreign structure SDL.MouseButtonEvent.

INLINE PROC get.SDL.MouseButtonEvent.which (RESULT BYTE value, VAL SDL.MouseButtonEvent ptr)
set.SDL.MouseButtonEvent.which
occSDL.inc
3017

Set value of member which of foreign structure SDL.MouseButtonEvent.

Set value of member which of foreign structure SDL.MouseButtonEvent
VAL BYTE

New contents of the member which.

VAL SDL.MouseButtonEvent

Pointer to foreign structure SDL.MouseButtonEvent.

INLINE PROC set.SDL.MouseButtonEvent.which (VAL BYTE value, VAL SDL.MouseButtonEvent ptr)
get.SDL.MouseButtonEvent.button
occSDL.inc
3024

Get value of member button of foreign structure SDL.MouseButtonEvent.

Get value of member button of foreign structure SDL.MouseButtonEvent
RESULT BYTE

Contents of the member button.

VAL SDL.MouseButtonEvent

Pointer to foreign structure SDL.MouseButtonEvent.

INLINE PROC get.SDL.MouseButtonEvent.button (RESULT BYTE value, VAL SDL.MouseButtonEvent ptr)
set.SDL.MouseButtonEvent.button
occSDL.inc
3031

Set value of member button of foreign structure SDL.MouseButtonEvent.

Set value of member button of foreign structure SDL.MouseButtonEvent
VAL BYTE

New contents of the member button.

VAL SDL.MouseButtonEvent

Pointer to foreign structure SDL.MouseButtonEvent.

INLINE PROC set.SDL.MouseButtonEvent.button (VAL BYTE value, VAL SDL.MouseButtonEvent ptr)
get.SDL.MouseButtonEvent.state
occSDL.inc
3038

Get value of member state of foreign structure SDL.MouseButtonEvent.

Get value of member state of foreign structure SDL.MouseButtonEvent
RESULT BYTE

Contents of the member state.

VAL SDL.MouseButtonEvent

Pointer to foreign structure SDL.MouseButtonEvent.

INLINE PROC get.SDL.MouseButtonEvent.state (RESULT BYTE value, VAL SDL.MouseButtonEvent ptr)
set.SDL.MouseButtonEvent.state
occSDL.inc
3045

Set value of member state of foreign structure SDL.MouseButtonEvent.

Set value of member state of foreign structure SDL.MouseButtonEvent
VAL BYTE

New contents of the member state.

VAL SDL.MouseButtonEvent

Pointer to foreign structure SDL.MouseButtonEvent.

INLINE PROC set.SDL.MouseButtonEvent.state (VAL BYTE value, VAL SDL.MouseButtonEvent ptr)
get.SDL.MouseButtonEvent.x
occSDL.inc
3052

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

Get value of member x of foreign structure SDL.MouseButtonEvent
RESULT INT16

Contents of the member x.

VAL SDL.MouseButtonEvent

Pointer to foreign structure SDL.MouseButtonEvent.

INLINE PROC get.SDL.MouseButtonEvent.x (RESULT INT16 value, VAL SDL.MouseButtonEvent ptr)
set.SDL.MouseButtonEvent.x
occSDL.inc
3059

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

Set value of member x of foreign structure SDL.MouseButtonEvent
VAL INT16

New contents of the member x.

VAL SDL.MouseButtonEvent

Pointer to foreign structure SDL.MouseButtonEvent.

INLINE PROC set.SDL.MouseButtonEvent.x (VAL INT16 value, VAL SDL.MouseButtonEvent ptr)
get.SDL.MouseButtonEvent.y
occSDL.inc
3066

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

Get value of member y of foreign structure SDL.MouseButtonEvent
RESULT INT16

Contents of the member y.

VAL SDL.MouseButtonEvent

Pointer to foreign structure SDL.MouseButtonEvent.

INLINE PROC get.SDL.MouseButtonEvent.y (RESULT INT16 value, VAL SDL.MouseButtonEvent ptr)
set.SDL.MouseButtonEvent.y
occSDL.inc
3073

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

Set value of member y of foreign structure SDL.MouseButtonEvent
VAL INT16

New contents of the member y.

VAL SDL.MouseButtonEvent

Pointer to foreign structure SDL.MouseButtonEvent.

INLINE PROC set.SDL.MouseButtonEvent.y (VAL INT16 value, VAL SDL.MouseButtonEvent ptr)
SDL.JoyAxisEvent
occSDL.inc
3078

Foreign structure pointer type SDL_JoyAxisEvent.

Foreign structure pointer type SDL_JoyAxisEvent
DATA TYPE SDL.JoyAxisEvent
create.SDL.JoyAxisEvent
occSDL.inc
3083

Allocate foreign structure SDL.JoyAxisEvent.

Allocate foreign structure SDL.JoyAxisEvent
RESULT SDL.JoyAxisEvent

Pointer to newly-allocated structure.

INLINE PROC create.SDL.JoyAxisEvent (RESULT SDL.JoyAxisEvent ptr)
delete.SDL.JoyAxisEvent
occSDL.inc
3089

Free foreign structure SDL.JoyAxisEvent.

Free foreign structure SDL.JoyAxisEvent
SDL.JoyAxisEvent

Pointer to structure to free.

INLINE PROC delete.SDL.JoyAxisEvent (SDL.JoyAxisEvent ptr)
get.SDL.JoyAxisEvent.type
occSDL.inc
3096

Get value of member type of foreign structure SDL.JoyAxisEvent.

Get value of member type of foreign structure SDL.JoyAxisEvent
RESULT BYTE

Contents of the member type.

VAL SDL.JoyAxisEvent

Pointer to foreign structure SDL.JoyAxisEvent.

INLINE PROC get.SDL.JoyAxisEvent.type (RESULT BYTE value, VAL SDL.JoyAxisEvent ptr)
set.SDL.JoyAxisEvent.type
occSDL.inc
3103

Set value of member type of foreign structure SDL.JoyAxisEvent.

Set value of member type of foreign structure SDL.JoyAxisEvent
VAL BYTE

New contents of the member type.

VAL SDL.JoyAxisEvent

Pointer to foreign structure SDL.JoyAxisEvent.

INLINE PROC set.SDL.JoyAxisEvent.type (VAL BYTE value, VAL SDL.JoyAxisEvent ptr)
get.SDL.JoyAxisEvent.which
occSDL.inc
3110

Get value of member which of foreign structure SDL.JoyAxisEvent.

Get value of member which of foreign structure SDL.JoyAxisEvent
RESULT BYTE

Contents of the member which.

VAL SDL.JoyAxisEvent

Pointer to foreign structure SDL.JoyAxisEvent.

INLINE PROC get.SDL.JoyAxisEvent.which (RESULT BYTE value, VAL SDL.JoyAxisEvent ptr)
set.SDL.JoyAxisEvent.which
occSDL.inc
3117

Set value of member which of foreign structure SDL.JoyAxisEvent.

Set value of member which of foreign structure SDL.JoyAxisEvent
VAL BYTE

New contents of the member which.

VAL SDL.JoyAxisEvent

Pointer to foreign structure SDL.JoyAxisEvent.

INLINE PROC set.SDL.JoyAxisEvent.which (VAL BYTE value, VAL SDL.JoyAxisEvent ptr)
get.SDL.JoyAxisEvent.axis
occSDL.inc
3124

Get value of member axis of foreign structure SDL.JoyAxisEvent.

Get value of member axis of foreign structure SDL.JoyAxisEvent
RESULT BYTE

Contents of the member axis.

VAL SDL.JoyAxisEvent

Pointer to foreign structure SDL.JoyAxisEvent.

INLINE PROC get.SDL.JoyAxisEvent.axis (RESULT BYTE value, VAL SDL.JoyAxisEvent ptr)
set.SDL.JoyAxisEvent.axis
occSDL.inc
3131

Set value of member axis of foreign structure SDL.JoyAxisEvent.

Set value of member axis of foreign structure SDL.JoyAxisEvent
VAL BYTE

New contents of the member axis.

VAL SDL.JoyAxisEvent

Pointer to foreign structure SDL.JoyAxisEvent.

INLINE PROC set.SDL.JoyAxisEvent.axis (VAL BYTE value, VAL SDL.JoyAxisEvent ptr)
get.SDL.JoyAxisEvent.value
occSDL.inc
3138

Get value of member value of foreign structure SDL.JoyAxisEvent.

Get value of member value of foreign structure SDL.JoyAxisEvent
RESULT INT16

Contents of the member value.

VAL SDL.JoyAxisEvent

Pointer to foreign structure SDL.JoyAxisEvent.

INLINE PROC get.SDL.JoyAxisEvent.value (RESULT INT16 value, VAL SDL.JoyAxisEvent ptr)
set.SDL.JoyAxisEvent.value
occSDL.inc
3145

Set value of member value of foreign structure SDL.JoyAxisEvent.

Set value of member value of foreign structure SDL.JoyAxisEvent
VAL INT16

New contents of the member value.

VAL SDL.JoyAxisEvent

Pointer to foreign structure SDL.JoyAxisEvent.

INLINE PROC set.SDL.JoyAxisEvent.value (VAL INT16 value, VAL SDL.JoyAxisEvent ptr)
SDL.JoyBallEvent
occSDL.inc
3150

Foreign structure pointer type SDL_JoyBallEvent.

Foreign structure pointer type SDL_JoyBallEvent
DATA TYPE SDL.JoyBallEvent
create.SDL.JoyBallEvent
occSDL.inc
3155

Allocate foreign structure SDL.JoyBallEvent.

Allocate foreign structure SDL.JoyBallEvent
RESULT SDL.JoyBallEvent

Pointer to newly-allocated structure.

INLINE PROC create.SDL.JoyBallEvent (RESULT SDL.JoyBallEvent ptr)
delete.SDL.JoyBallEvent
occSDL.inc
3161

Free foreign structure SDL.JoyBallEvent.

Free foreign structure SDL.JoyBallEvent
SDL.JoyBallEvent

Pointer to structure to free.

INLINE PROC delete.SDL.JoyBallEvent (SDL.JoyBallEvent ptr)
get.SDL.JoyBallEvent.type
occSDL.inc
3168

Get value of member type of foreign structure SDL.JoyBallEvent.

Get value of member type of foreign structure SDL.JoyBallEvent
RESULT BYTE

Contents of the member type.

VAL SDL.JoyBallEvent

Pointer to foreign structure SDL.JoyBallEvent.

INLINE PROC get.SDL.JoyBallEvent.type (RESULT BYTE value, VAL SDL.JoyBallEvent ptr)
set.SDL.JoyBallEvent.type
occSDL.inc
3175

Set value of member type of foreign structure SDL.JoyBallEvent.

Set value of member type of foreign structure SDL.JoyBallEvent
VAL BYTE

New contents of the member type.

VAL SDL.JoyBallEvent

Pointer to foreign structure SDL.JoyBallEvent.

INLINE PROC set.SDL.JoyBallEvent.type (VAL BYTE value, VAL SDL.JoyBallEvent ptr)
get.SDL.JoyBallEvent.which
occSDL.inc
3182

Get value of member which of foreign structure SDL.JoyBallEvent.

Get value of member which of foreign structure SDL.JoyBallEvent
RESULT BYTE

Contents of the member which.

VAL SDL.JoyBallEvent

Pointer to foreign structure SDL.JoyBallEvent.

INLINE PROC get.SDL.JoyBallEvent.which (RESULT BYTE value, VAL SDL.JoyBallEvent ptr)
set.SDL.JoyBallEvent.which
occSDL.inc
3189

Set value of member which of foreign structure SDL.JoyBallEvent.

Set value of member which of foreign structure SDL.JoyBallEvent
VAL BYTE

New contents of the member which.

VAL SDL.JoyBallEvent

Pointer to foreign structure SDL.JoyBallEvent.

INLINE PROC set.SDL.JoyBallEvent.which (VAL BYTE value, VAL SDL.JoyBallEvent ptr)
get.SDL.JoyBallEvent.ball
occSDL.inc
3196

Get value of member ball of foreign structure SDL.JoyBallEvent.

Get value of member ball of foreign structure SDL.JoyBallEvent
RESULT BYTE

Contents of the member ball.

VAL SDL.JoyBallEvent

Pointer to foreign structure SDL.JoyBallEvent.

INLINE PROC get.SDL.JoyBallEvent.ball (RESULT BYTE value, VAL SDL.JoyBallEvent ptr)
set.SDL.JoyBallEvent.ball
occSDL.inc
3203

Set value of member ball of foreign structure SDL.JoyBallEvent.

Set value of member ball of foreign structure SDL.JoyBallEvent
VAL BYTE

New contents of the member ball.

VAL SDL.JoyBallEvent

Pointer to foreign structure SDL.JoyBallEvent.

INLINE PROC set.SDL.JoyBallEvent.ball (VAL BYTE value, VAL SDL.JoyBallEvent ptr)
get.SDL.JoyBallEvent.xrel
occSDL.inc
3210

Get value of member xrel of foreign structure SDL.JoyBallEvent.

Get value of member xrel of foreign structure SDL.JoyBallEvent
RESULT INT16

Contents of the member xrel.

VAL SDL.JoyBallEvent

Pointer to foreign structure SDL.JoyBallEvent.

INLINE PROC get.SDL.JoyBallEvent.xrel (RESULT INT16 value, VAL SDL.JoyBallEvent ptr)
set.SDL.JoyBallEvent.xrel
occSDL.inc
3217

Set value of member xrel of foreign structure SDL.JoyBallEvent.

Set value of member xrel of foreign structure SDL.JoyBallEvent
VAL INT16

New contents of the member xrel.

VAL SDL.JoyBallEvent

Pointer to foreign structure SDL.JoyBallEvent.

INLINE PROC set.SDL.JoyBallEvent.xrel (VAL INT16 value, VAL SDL.JoyBallEvent ptr)
get.SDL.JoyBallEvent.yrel
occSDL.inc
3224

Get value of member yrel of foreign structure SDL.JoyBallEvent.

Get value of member yrel of foreign structure SDL.JoyBallEvent
RESULT INT16

Contents of the member yrel.

VAL SDL.JoyBallEvent

Pointer to foreign structure SDL.JoyBallEvent.

INLINE PROC get.SDL.JoyBallEvent.yrel (RESULT INT16 value, VAL SDL.JoyBallEvent ptr)
set.SDL.JoyBallEvent.yrel
occSDL.inc
3231

Set value of member yrel of foreign structure SDL.JoyBallEvent.

Set value of member yrel of foreign structure SDL.JoyBallEvent
VAL INT16

New contents of the member yrel.

VAL SDL.JoyBallEvent

Pointer to foreign structure SDL.JoyBallEvent.

INLINE PROC set.SDL.JoyBallEvent.yrel (VAL INT16 value, VAL SDL.JoyBallEvent ptr)
SDL.JoyHatEvent
occSDL.inc
3236

Foreign structure pointer type SDL_JoyHatEvent.

Foreign structure pointer type SDL_JoyHatEvent
DATA TYPE SDL.JoyHatEvent
create.SDL.JoyHatEvent
occSDL.inc
3241

Allocate foreign structure SDL.JoyHatEvent.

Allocate foreign structure SDL.JoyHatEvent
RESULT SDL.JoyHatEvent

Pointer to newly-allocated structure.

INLINE PROC create.SDL.JoyHatEvent (RESULT SDL.JoyHatEvent ptr)
delete.SDL.JoyHatEvent
occSDL.inc
3247

Free foreign structure SDL.JoyHatEvent.

Free foreign structure SDL.JoyHatEvent
SDL.JoyHatEvent

Pointer to structure to free.

INLINE PROC delete.SDL.JoyHatEvent (SDL.JoyHatEvent ptr)
get.SDL.JoyHatEvent.type
occSDL.inc
3254

Get value of member type of foreign structure SDL.JoyHatEvent.

Get value of member type of foreign structure SDL.JoyHatEvent
RESULT BYTE

Contents of the member type.

VAL SDL.JoyHatEvent

Pointer to foreign structure SDL.JoyHatEvent.

INLINE PROC get.SDL.JoyHatEvent.type (RESULT BYTE value, VAL SDL.JoyHatEvent ptr)
set.SDL.JoyHatEvent.type
occSDL.inc
3261

Set value of member type of foreign structure SDL.JoyHatEvent.

Set value of member type of foreign structure SDL.JoyHatEvent
VAL BYTE

New contents of the member type.

VAL SDL.JoyHatEvent

Pointer to foreign structure SDL.JoyHatEvent.

INLINE PROC set.SDL.JoyHatEvent.type (VAL BYTE value, VAL SDL.JoyHatEvent ptr)
get.SDL.JoyHatEvent.which
occSDL.inc
3268

Get value of member which of foreign structure SDL.JoyHatEvent.

Get value of member which of foreign structure SDL.JoyHatEvent
RESULT BYTE

Contents of the member which.

VAL SDL.JoyHatEvent

Pointer to foreign structure SDL.JoyHatEvent.

INLINE PROC get.SDL.JoyHatEvent.which (RESULT BYTE value, VAL SDL.JoyHatEvent ptr)
set.SDL.JoyHatEvent.which
occSDL.inc
3275

Set value of member which of foreign structure SDL.JoyHatEvent.

Set value of member which of foreign structure SDL.JoyHatEvent
VAL BYTE

New contents of the member which.

VAL SDL.JoyHatEvent

Pointer to foreign structure SDL.JoyHatEvent.

INLINE PROC set.SDL.JoyHatEvent.which (VAL BYTE value, VAL SDL.JoyHatEvent ptr)
get.SDL.JoyHatEvent.hat
occSDL.inc
3282

Get value of member hat of foreign structure SDL.JoyHatEvent.

Get value of member hat of foreign structure SDL.JoyHatEvent
RESULT BYTE

Contents of the member hat.

VAL SDL.JoyHatEvent

Pointer to foreign structure SDL.JoyHatEvent.

INLINE PROC get.SDL.JoyHatEvent.hat (RESULT BYTE value, VAL SDL.JoyHatEvent ptr)
set.SDL.JoyHatEvent.hat
occSDL.inc
3289

Set value of member hat of foreign structure SDL.JoyHatEvent.

Set value of member hat of foreign structure SDL.JoyHatEvent
VAL BYTE

New contents of the member hat.

VAL SDL.JoyHatEvent

Pointer to foreign structure SDL.JoyHatEvent.

INLINE PROC set.SDL.JoyHatEvent.hat (VAL BYTE value, VAL SDL.JoyHatEvent ptr)
get.SDL.JoyHatEvent.value
occSDL.inc
3296

Get value of member value of foreign structure SDL.JoyHatEvent.

Get value of member value of foreign structure SDL.JoyHatEvent
RESULT BYTE

Contents of the member value.

VAL SDL.JoyHatEvent

Pointer to foreign structure SDL.JoyHatEvent.

INLINE PROC get.SDL.JoyHatEvent.value (RESULT BYTE value, VAL SDL.JoyHatEvent ptr)
set.SDL.JoyHatEvent.value
occSDL.inc
3303

Set value of member value of foreign structure SDL.JoyHatEvent.

Set value of member value of foreign structure SDL.JoyHatEvent
VAL BYTE

New contents of the member value.

VAL SDL.JoyHatEvent

Pointer to foreign structure SDL.JoyHatEvent.

INLINE PROC set.SDL.JoyHatEvent.value (VAL BYTE value, VAL SDL.JoyHatEvent ptr)
SDL.JoyButtonEvent
occSDL.inc
3308

Foreign structure pointer type SDL_JoyButtonEvent.

Foreign structure pointer type SDL_JoyButtonEvent
DATA TYPE SDL.JoyButtonEvent
create.SDL.JoyButtonEvent
occSDL.inc
3313

Allocate foreign structure SDL.JoyButtonEvent.

Allocate foreign structure SDL.JoyButtonEvent
RESULT SDL.JoyButtonEvent

Pointer to newly-allocated structure.

INLINE PROC create.SDL.JoyButtonEvent (RESULT SDL.JoyButtonEvent ptr)
delete.SDL.JoyButtonEvent
occSDL.inc
3319

Free foreign structure SDL.JoyButtonEvent.

Free foreign structure SDL.JoyButtonEvent
SDL.JoyButtonEvent

Pointer to structure to free.

INLINE PROC delete.SDL.JoyButtonEvent (SDL.JoyButtonEvent ptr)
get.SDL.JoyButtonEvent.type
occSDL.inc
3326

Get value of member type of foreign structure SDL.JoyButtonEvent.

Get value of member type of foreign structure SDL.JoyButtonEvent
RESULT BYTE

Contents of the member type.

VAL SDL.JoyButtonEvent

Pointer to foreign structure SDL.JoyButtonEvent.

INLINE PROC get.SDL.JoyButtonEvent.type (RESULT BYTE value, VAL SDL.JoyButtonEvent ptr)
set.SDL.JoyButtonEvent.type
occSDL.inc
3333

Set value of member type of foreign structure SDL.JoyButtonEvent.

Set value of member type of foreign structure SDL.JoyButtonEvent
VAL BYTE

New contents of the member type.

VAL SDL.JoyButtonEvent

Pointer to foreign structure SDL.JoyButtonEvent.

INLINE PROC set.SDL.JoyButtonEvent.type (VAL BYTE value, VAL SDL.JoyButtonEvent ptr)
get.SDL.JoyButtonEvent.which
occSDL.inc
3340

Get value of member which of foreign structure SDL.JoyButtonEvent.

Get value of member which of foreign structure SDL.JoyButtonEvent
RESULT BYTE

Contents of the member which.

VAL SDL.JoyButtonEvent

Pointer to foreign structure SDL.JoyButtonEvent.

INLINE PROC get.SDL.JoyButtonEvent.which (RESULT BYTE value, VAL SDL.JoyButtonEvent ptr)
set.SDL.JoyButtonEvent.which
occSDL.inc
3347

Set value of member which of foreign structure SDL.JoyButtonEvent.

Set value of member which of foreign structure SDL.JoyButtonEvent
VAL BYTE

New contents of the member which.

VAL SDL.JoyButtonEvent

Pointer to foreign structure SDL.JoyButtonEvent.

INLINE PROC set.SDL.JoyButtonEvent.which (VAL BYTE value, VAL SDL.JoyButtonEvent ptr)
get.SDL.JoyButtonEvent.button
occSDL.inc
3354

Get value of member button of foreign structure SDL.JoyButtonEvent.

Get value of member button of foreign structure SDL.JoyButtonEvent
RESULT BYTE

Contents of the member button.

VAL SDL.JoyButtonEvent

Pointer to foreign structure SDL.JoyButtonEvent.

INLINE PROC get.SDL.JoyButtonEvent.button (RESULT BYTE value, VAL SDL.JoyButtonEvent ptr)
set.SDL.JoyButtonEvent.button
occSDL.inc
3361

Set value of member button of foreign structure SDL.JoyButtonEvent.

Set value of member button of foreign structure SDL.JoyButtonEvent
VAL BYTE

New contents of the member button.

VAL SDL.JoyButtonEvent

Pointer to foreign structure SDL.JoyButtonEvent.

INLINE PROC set.SDL.JoyButtonEvent.button (VAL BYTE value, VAL SDL.JoyButtonEvent ptr)
get.SDL.JoyButtonEvent.state
occSDL.inc
3368

Get value of member state of foreign structure SDL.JoyButtonEvent.

Get value of member state of foreign structure SDL.JoyButtonEvent
RESULT BYTE

Contents of the member state.

VAL SDL.JoyButtonEvent

Pointer to foreign structure SDL.JoyButtonEvent.

INLINE PROC get.SDL.JoyButtonEvent.state (RESULT BYTE value, VAL SDL.JoyButtonEvent ptr)
set.SDL.JoyButtonEvent.state
occSDL.inc
3375

Set value of member state of foreign structure SDL.JoyButtonEvent.

Set value of member state of foreign structure SDL.JoyButtonEvent
VAL BYTE

New contents of the member state.

VAL SDL.JoyButtonEvent

Pointer to foreign structure SDL.JoyButtonEvent.

INLINE PROC set.SDL.JoyButtonEvent.state (VAL BYTE value, VAL SDL.JoyButtonEvent ptr)
SDL.ResizeEvent
occSDL.inc
3380

Foreign structure pointer type SDL_ResizeEvent.

Foreign structure pointer type SDL_ResizeEvent
DATA TYPE SDL.ResizeEvent
create.SDL.ResizeEvent
occSDL.inc
3385

Allocate foreign structure SDL.ResizeEvent.

Allocate foreign structure SDL.ResizeEvent
RESULT SDL.ResizeEvent

Pointer to newly-allocated structure.

INLINE PROC create.SDL.ResizeEvent (RESULT SDL.ResizeEvent ptr)
delete.SDL.ResizeEvent
occSDL.inc
3391

Free foreign structure SDL.ResizeEvent.

Free foreign structure SDL.ResizeEvent
SDL.ResizeEvent

Pointer to structure to free.

INLINE PROC delete.SDL.ResizeEvent (SDL.ResizeEvent ptr)
get.SDL.ResizeEvent.type
occSDL.inc
3398

Get value of member type of foreign structure SDL.ResizeEvent.

Get value of member type of foreign structure SDL.ResizeEvent
RESULT BYTE

Contents of the member type.

VAL SDL.ResizeEvent

Pointer to foreign structure SDL.ResizeEvent.

INLINE PROC get.SDL.ResizeEvent.type (RESULT BYTE value, VAL SDL.ResizeEvent ptr)
set.SDL.ResizeEvent.type
occSDL.inc
3405

Set value of member type of foreign structure SDL.ResizeEvent.

Set value of member type of foreign structure SDL.ResizeEvent
VAL BYTE

New contents of the member type.

VAL SDL.ResizeEvent

Pointer to foreign structure SDL.ResizeEvent.

INLINE PROC set.SDL.ResizeEvent.type (VAL BYTE value, VAL SDL.ResizeEvent ptr)
get.SDL.ResizeEvent.w
occSDL.inc
3412

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

Get value of member w of foreign structure SDL.ResizeEvent
RESULT INT

Contents of the member w.

VAL SDL.ResizeEvent

Pointer to foreign structure SDL.ResizeEvent.

INLINE PROC get.SDL.ResizeEvent.w (RESULT INT value, VAL SDL.ResizeEvent ptr)
set.SDL.ResizeEvent.w
occSDL.inc
3419

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

Set value of member w of foreign structure SDL.ResizeEvent
VAL INT

New contents of the member w.

VAL SDL.ResizeEvent

Pointer to foreign structure SDL.ResizeEvent.

INLINE PROC set.SDL.ResizeEvent.w (VAL INT value, VAL SDL.ResizeEvent ptr)
get.SDL.ResizeEvent.h
occSDL.inc
3426

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

Get value of member h of foreign structure SDL.ResizeEvent
RESULT INT

Contents of the member h.

VAL SDL.ResizeEvent

Pointer to foreign structure SDL.ResizeEvent.

INLINE PROC get.SDL.ResizeEvent.h (RESULT INT value, VAL SDL.ResizeEvent ptr)
set.SDL.ResizeEvent.h
occSDL.inc
3433

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

Set value of member h of foreign structure SDL.ResizeEvent
VAL INT

New contents of the member h.

VAL SDL.ResizeEvent

Pointer to foreign structure SDL.ResizeEvent.

INLINE PROC set.SDL.ResizeEvent.h (VAL INT value, VAL SDL.ResizeEvent ptr)
SDL.ExposeEvent
occSDL.inc
3438

Foreign structure pointer type SDL_ExposeEvent.

Foreign structure pointer type SDL_ExposeEvent
DATA TYPE SDL.ExposeEvent
create.SDL.ExposeEvent
occSDL.inc
3443

Allocate foreign structure SDL.ExposeEvent.

Allocate foreign structure SDL.ExposeEvent
RESULT SDL.ExposeEvent

Pointer to newly-allocated structure.

INLINE PROC create.SDL.ExposeEvent (RESULT SDL.ExposeEvent ptr)
delete.SDL.ExposeEvent
occSDL.inc
3449

Free foreign structure SDL.ExposeEvent.

Free foreign structure SDL.ExposeEvent
SDL.ExposeEvent

Pointer to structure to free.

INLINE PROC delete.SDL.ExposeEvent (SDL.ExposeEvent ptr)
get.SDL.ExposeEvent.type
occSDL.inc
3456

Get value of member type of foreign structure SDL.ExposeEvent.

Get value of member type of foreign structure SDL.ExposeEvent
RESULT BYTE

Contents of the member type.

VAL SDL.ExposeEvent

Pointer to foreign structure SDL.ExposeEvent.

INLINE PROC get.SDL.ExposeEvent.type (RESULT BYTE value, VAL SDL.ExposeEvent ptr)
set.SDL.ExposeEvent.type
occSDL.inc
3463

Set value of member type of foreign structure SDL.ExposeEvent.

Set value of member type of foreign structure SDL.ExposeEvent
VAL BYTE

New contents of the member type.

VAL SDL.ExposeEvent

Pointer to foreign structure SDL.ExposeEvent.

INLINE PROC set.SDL.ExposeEvent.type (VAL BYTE value, VAL SDL.ExposeEvent ptr)
SDL.QuitEvent
occSDL.inc
3468

Foreign structure pointer type SDL_QuitEvent.

Foreign structure pointer type SDL_QuitEvent
DATA TYPE SDL.QuitEvent
create.SDL.QuitEvent
occSDL.inc
3473

Allocate foreign structure SDL.QuitEvent.

Allocate foreign structure SDL.QuitEvent
RESULT SDL.QuitEvent

Pointer to newly-allocated structure.

INLINE PROC create.SDL.QuitEvent (RESULT SDL.QuitEvent ptr)
delete.SDL.QuitEvent
occSDL.inc
3479

Free foreign structure SDL.QuitEvent.

Free foreign structure SDL.QuitEvent
SDL.QuitEvent

Pointer to structure to free.

INLINE PROC delete.SDL.QuitEvent (SDL.QuitEvent ptr)
get.SDL.QuitEvent.type
occSDL.inc
3486

Get value of member type of foreign structure SDL.QuitEvent.

Get value of member type of foreign structure SDL.QuitEvent
RESULT BYTE

Contents of the member type.

VAL SDL.QuitEvent

Pointer to foreign structure SDL.QuitEvent.

INLINE PROC get.SDL.QuitEvent.type (RESULT BYTE value, VAL SDL.QuitEvent ptr)
set.SDL.QuitEvent.type
occSDL.inc
3493

Set value of member type of foreign structure SDL.QuitEvent.

Set value of member type of foreign structure SDL.QuitEvent
VAL BYTE

New contents of the member type.

VAL SDL.QuitEvent

Pointer to foreign structure SDL.QuitEvent.

INLINE PROC set.SDL.QuitEvent.type (VAL BYTE value, VAL SDL.QuitEvent ptr)
SDL.UserEvent
occSDL.inc
3498

Foreign structure pointer type SDL_UserEvent.

Foreign structure pointer type SDL_UserEvent
DATA TYPE SDL.UserEvent
create.SDL.UserEvent
occSDL.inc
3503

Allocate foreign structure SDL.UserEvent.

Allocate foreign structure SDL.UserEvent
RESULT SDL.UserEvent

Pointer to newly-allocated structure.

INLINE PROC create.SDL.UserEvent (RESULT SDL.UserEvent ptr)
delete.SDL.UserEvent
occSDL.inc
3509

Free foreign structure SDL.UserEvent.

Free foreign structure SDL.UserEvent
SDL.UserEvent

Pointer to structure to free.

INLINE PROC delete.SDL.UserEvent (SDL.UserEvent ptr)
get.SDL.UserEvent.type
occSDL.inc
3516

Get value of member type of foreign structure SDL.UserEvent.

Get value of member type of foreign structure SDL.UserEvent
RESULT BYTE

Contents of the member type.

VAL SDL.UserEvent

Pointer to foreign structure SDL.UserEvent.

INLINE PROC get.SDL.UserEvent.type (RESULT BYTE value, VAL SDL.UserEvent ptr)
set.SDL.UserEvent.type
occSDL.inc
3523

Set value of member type of foreign structure SDL.UserEvent.

Set value of member type of foreign structure SDL.UserEvent
VAL BYTE

New contents of the member type.

VAL SDL.UserEvent

Pointer to foreign structure SDL.UserEvent.

INLINE PROC set.SDL.UserEvent.type (VAL BYTE value, VAL SDL.UserEvent ptr)
get.SDL.UserEvent.code
occSDL.inc
3530

Get value of member code of foreign structure SDL.UserEvent.

Get value of member code of foreign structure SDL.UserEvent
RESULT INT

Contents of the member code.

VAL SDL.UserEvent

Pointer to foreign structure SDL.UserEvent.

INLINE PROC get.SDL.UserEvent.code (RESULT INT value, VAL SDL.UserEvent ptr)
set.SDL.UserEvent.code
occSDL.inc
3537

Set value of member code of foreign structure SDL.UserEvent.

Set value of member code of foreign structure SDL.UserEvent
VAL INT

New contents of the member code.

VAL SDL.UserEvent

Pointer to foreign structure SDL.UserEvent.

INLINE PROC set.SDL.UserEvent.code (VAL INT value, VAL SDL.UserEvent ptr)
get.SDL.UserEvent.data1
occSDL.inc
3544

Get value of member data1 of foreign structure SDL.UserEvent.

Get value of member data1 of foreign structure SDL.UserEvent
RESULT INT

Contents of the member data1.

VAL SDL.UserEvent

Pointer to foreign structure SDL.UserEvent.

INLINE PROC get.SDL.UserEvent.data1 (RESULT INT value, VAL SDL.UserEvent ptr)
set.SDL.UserEvent.data1
occSDL.inc
3551

Set value of member data1 of foreign structure SDL.UserEvent.

Set value of member data1 of foreign structure SDL.UserEvent
VAL INT

New contents of the member data1.

VAL SDL.UserEvent

Pointer to foreign structure SDL.UserEvent.

INLINE PROC set.SDL.UserEvent.data1 (VAL INT value, VAL SDL.UserEvent ptr)
get.SDL.UserEvent.data2
occSDL.inc
3558

Get value of member data2 of foreign structure SDL.UserEvent.

Get value of member data2 of foreign structure SDL.UserEvent
RESULT INT

Contents of the member data2.

VAL SDL.UserEvent

Pointer to foreign structure SDL.UserEvent.

INLINE PROC get.SDL.UserEvent.data2 (RESULT INT value, VAL SDL.UserEvent ptr)
set.SDL.UserEvent.data2
occSDL.inc
3565

Set value of member data2 of foreign structure SDL.UserEvent.

Set value of member data2 of foreign structure SDL.UserEvent
VAL INT

New contents of the member data2.

VAL SDL.UserEvent

Pointer to foreign structure SDL.UserEvent.

INLINE PROC set.SDL.UserEvent.data2 (VAL INT value, VAL SDL.UserEvent ptr)
SDL.SysWMmsg
occSDL.inc
3570

Foreign structure pointer type SDL_SysWMmsg.

Foreign structure pointer type SDL_SysWMmsg
DATA TYPE SDL.SysWMmsg
SDL.SysWMEvent
occSDL.inc
3573

Foreign structure pointer type SDL_SysWMEvent.

Foreign structure pointer type SDL_SysWMEvent
DATA TYPE SDL.SysWMEvent
create.SDL.SysWMEvent
occSDL.inc
3578

Allocate foreign structure SDL.SysWMEvent.

Allocate foreign structure SDL.SysWMEvent
RESULT SDL.SysWMEvent

Pointer to newly-allocated structure.

INLINE PROC create.SDL.SysWMEvent (RESULT SDL.SysWMEvent ptr)
delete.SDL.SysWMEvent
occSDL.inc
3584

Free foreign structure SDL.SysWMEvent.

Free foreign structure SDL.SysWMEvent
SDL.SysWMEvent

Pointer to structure to free.

INLINE PROC delete.SDL.SysWMEvent (SDL.SysWMEvent ptr)
get.SDL.SysWMEvent.type
occSDL.inc
3591

Get value of member type of foreign structure SDL.SysWMEvent.

Get value of member type of foreign structure SDL.SysWMEvent
RESULT BYTE

Contents of the member type.

VAL SDL.SysWMEvent

Pointer to foreign structure SDL.SysWMEvent.

INLINE PROC get.SDL.SysWMEvent.type (RESULT BYTE value, VAL SDL.SysWMEvent ptr)
set.SDL.SysWMEvent.type
occSDL.inc
3598

Set value of member type of foreign structure SDL.SysWMEvent.

Set value of member type of foreign structure SDL.SysWMEvent
VAL BYTE

New contents of the member type.

VAL SDL.SysWMEvent

Pointer to foreign structure SDL.SysWMEvent.

INLINE PROC set.SDL.SysWMEvent.type (VAL BYTE value, VAL SDL.SysWMEvent ptr)
get.SDL.SysWMEvent.msg
occSDL.inc
3605

Get value of member msg of foreign structure SDL.SysWMEvent.

Get value of member msg of foreign structure SDL.SysWMEvent
RESULT SDL.SysWMmsg

Contents of the member msg.

VAL SDL.SysWMEvent

Pointer to foreign structure SDL.SysWMEvent.

INLINE PROC get.SDL.SysWMEvent.msg (RESULT SDL.SysWMmsg value, VAL SDL.SysWMEvent ptr)
SDL.Event
occSDL.inc
3610

Foreign union pointer type SDL.Event.

Foreign union pointer type SDL.Event
DATA TYPE SDL.Event
create.SDL.Event
occSDL.inc
3615

Allocate foreign union SDL.Event.

Allocate foreign union SDL.Event
RESULT SDL.Event

Pointer to newly-allocated union.

INLINE PROC create.SDL.Event (RESULT SDL.Event ptr)
delete.SDL.Event
occSDL.inc
3621

Free foreign union SDL.Event.

Free foreign union SDL.Event
VAL SDL.Event

Pointer to union to free.

INLINE PROC delete.SDL.Event (VAL SDL.Event ptr)
get.SDL.Event.type
occSDL.inc
3629

Foreign function get_SDL_Event_type.

Foreign function get_SDL_Event_type
RESULT BYTE

Function return value with type Uint8.

SDL.Event

Argument with type SDL_Event *.

INLINE PROC get.SDL.Event.type (RESULT BYTE return.value, SDL.Event event)
SDL.PumpEvents
occSDL.inc
3636

Foreign function SDL_PumpEvents.

Foreign function SDL_PumpEvents
INLINE PROC SDL.PumpEvents ()
SDL.eventaction
occSDL.inc
3641

Foreign enumeration SDL_eventaction.

Foreign enumeration SDL_eventaction
SDL.PeepEvents
occSDL.inc
3655

Foreign function SDL_PeepEvents.

Foreign function SDL_PeepEvents
RESULT INT

Function return value with type int.

SDL.Event

Argument with type SDL_Event *.

VAL INT

Argument with type int.

VAL INT

Argument with type SDL_eventaction.

VAL INT

Argument with type Uint32.

INLINE PROC SDL.PeepEvents (RESULT INT return.value, SDL.Event events, VAL INT numevents, VAL INT action, VAL INT mask)
SDL.PollEvent
occSDL.inc
3664

Foreign function SDL_PollEvent.

Foreign function SDL_PollEvent
RESULT INT

Function return value with type int.

SDL.Event

Argument with type SDL_Event *.

INLINE PROC SDL.PollEvent (RESULT INT return.value, SDL.Event event)
SDL.WaitEvent
occSDL.inc
3673

Foreign function SDL_WaitEvent.

Foreign function SDL_WaitEvent
RESULT INT

Function return value with type int.

SDL.Event

Argument with type SDL_Event *.

INLINE PROC SDL.WaitEvent (RESULT INT return.value, SDL.Event event)
SDL.PushEvent
occSDL.inc
3682

Foreign function SDL_PushEvent.

Foreign function SDL_PushEvent
RESULT INT

Function return value with type int.

SDL.Event

Argument with type SDL_Event *.

INLINE PROC SDL.PushEvent (RESULT INT return.value, SDL.Event event)
SDL.QUERY
occSDL.inc
3687

Foreign int constant SDL_QUERY.

Foreign int constant SDL_QUERY
VAL INT SDL.QUERY
SDL.IGNORE
occSDL.inc
3689

Foreign int constant SDL_IGNORE.

Foreign int constant SDL_IGNORE
VAL INT SDL.IGNORE
SDL.DISABLE
occSDL.inc
3691

Foreign int constant SDL_DISABLE.

Foreign int constant SDL_DISABLE
VAL INT SDL.DISABLE
SDL.ENABLE
occSDL.inc
3693

Foreign int constant SDL_ENABLE.

Foreign int constant SDL_ENABLE
VAL INT SDL.ENABLE
SDL.EventState
occSDL.inc
3700

Foreign function SDL_EventState.

Foreign function SDL_EventState
RESULT BYTE

Function return value with type Uint8.

VAL BYTE

Argument with type Uint8.

VAL INT

Argument with type int.

INLINE PROC SDL.EventState (RESULT BYTE return.value, VAL BYTE type, VAL INT state)
occ.SDL.GetError
occSDL.inc
3710

Foreign function occ_SDL_GetError.

Foreign function occ_SDL_GetError
[]BYTE

Array pointer argument with element type char.

VAL INT

Argument with type int.

INT

Argument with type int *.

INLINE PROC occ.SDL.GetError ([]BYTE err.str, VAL INT err.str.len, INT str.len)
SDL.ClearError
occSDL.inc
3717

Foreign function SDL_ClearError.

Foreign function SDL_ClearError
INLINE PROC SDL.ClearError ()
occ.SDL.zero.terminate
occSDLhelpers.occ
29

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

Zero-terminate a string
VAL []BYTE
RESULT MOBILE []BYTE
PROC occ.SDL.zero.terminate (VAL []BYTE in, RESULT MOBILE []BYTE out)
occ.SDL.set.rect
occSDLhelpers.occ
38

Set the values in an SDL.Rect structure.

Set the values in an SDL.Rect structure
SDL.Rect
VAL INT
VAL INT
VAL INT
VAL INT
PROC occ.SDL.set.rect (SDL.Rect rect, VAL INT x, y, w, h)
occ.SDL.blit
occSDLhelpers.occ
48

Blit a rectangle from one surface to another.

Blit a rectangle from one surface to another
SDL.Surface
VAL INT
VAL INT
VAL INT
VAL INT
SDL.Surface
VAL INT
VAL INT
PROC occ.SDL.blit (SDL.Surface from, VAL INT from.x, from.y, w, h, SDL.Surface to, VAL INT to.x, to.y)
occ.SDL.blit.raster
occSDLhelpers.occ
65

Blit a rectangle from a raster onto a surface.

Blit a rectangle from a raster onto a surface
VAL [][]INT
VAL INT
VAL INT
VAL INT
VAL INT
SDL.Surface
VAL INT
VAL INT
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)
occ.SDL.wait.button
occSDLjoy.occ
270

Waits for a button press event, discards other events.

Waits for a button press event, discards other events
CT.SDLJSEVENT!

Events from joystick.

RESULT INT

Returned button ID (-1 if quit).

PROC occ.SDL.wait.button (CT.SDLJSEVENT! ev, RESULT INT btn)
occ.SDL.wait.button.axes
occSDLjoy.occ
305

Waits for a button press event and records axes positions, discards other events.

Waits for a button press event and records axes positions, discards other events
CT.SDLJSEVENT!

Events from joystick.

RESULT INT

Returned button ID (-1 if quit).

RESULT MOBILE []INT16

Returned axis values.

PROC occ.SDL.wait.button.axes (CT.SDLJSEVENT! ev, RESULT INT btn, RESULT MOBILE []INT16 ax.res)
occ.SDL.waitfor.button
occSDLjoy.occ
343

Waits for a particular button press, discards other events.

Waits for a particular button press, discards other events
CT.SDLJSEVENT!

Events from joystick.

VAL INT

Button to wait for.

PROC occ.SDL.waitfor.button (CT.SDLJSEVENT! ev, VAL INT btn)
occ.SDL.waitfor.button.axes
occSDLjoy.occ
371

Waits for a particular button press and records axis values, discards other events.

Waits for a particular button press and records axis values, discards other events
CT.SDLJSEVENT!

Events from joystick.

VAL INT

Button to wait for.

RESULT MOBILE []INT16

Returned axis positions.

PROC occ.SDL.waitfor.button.axes (CT.SDLJSEVENT! ev, VAL INT btn, RESULT MOBILE []INT16 ax.res)
occ.SDL.joy.doread
occSDLjoy.occ
405

Reads the current axes and buttons for a joystick.

Reads the current axes and buttons for a joystick
CT.SDLJSEVENT!

Event channel-type link.

RESULT MOBILE []INT16

Returned axis values.

RESULT MOBILE []BYTE

Returned button values.

PROC occ.SDL.joy.doread (CT.SDLJSEVENT! ev, RESULT MOBILE []INT16 ax.vals, RESULT MOBILE []BYTE bt.vals)
occ.SDL.joy.calibrate
occSDLjoy.occ
452

Provides joystick calibration and subsequent adjustment of reported values.

Provides joystick calibration and subsequent adjustment of reported values
CT.SDLJSCALIBRATE?

Server channel-type link.

CT.SDLJSEVENT!

Joystick events in.

CT.SDLJSEVENT?

Joystick events out.

PROC occ.SDL.joy.calibrate (CT.SDLJSCALIBRATE? svr, CT.SDLJSEVENT! ev.in, CT.SDLJSEVENT? ev.out)
occ.SDL.joy.calibrator
occSDLjoy.occ
621

Launches a joystick calibration process.

Launches a joystick calibration process
CT.SDLJSEVENT!

Joystick events in.

RESULT CT.SDLJSEVENT!

Returned joystick events out.

RESULT CT.SDLJSCALIBRATE!

Returned calibration channel-end.

PROC occ.SDL.joy.calibrator (CT.SDLJSEVENT! ev.in, RESULT CT.SDLJSEVENT! ev.out, RESULT CT.SDLJSCALIBRATE! cal.out)
occ.SDL.joy.server
occSDLjoy.occ
637

Provides a server process that monitors joysticks.

Provides a server process that monitors joysticks
CT.SDLJOY?

Server channel-type link.

PROC occ.SDL.joy.server (CT.SDLJOY? svr)
occ.SDL.joy.start
occSDLjoy.occ
711

Starts a new instance of the SDL joystick server process.

Starts a new instance of the SDL joystick server process
RESULT CT.SDLJOY!

Returned link to new server process.

PROC occ.SDL.joy.start (RESULT CT.SDLJOY! cli)
occ.SDL.joy.docalibrate
occSDLjoy.occ
724

Runs the joystick calibration routine.

Runs the joystick calibration routine
CT.SDLJSCALIBRATE!

Channel-type connection to calibrator process.

SHARED CHAN BYTE

Shared byte channel for reporting.

PROC occ.SDL.joy.docalibrate (CT.SDLJSCALIBRATE! cal, SHARED CHAN BYTE out!)
occ.SDL.make.surface
occSDLhelpers.inc
20

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

Turn an occam array into an SDL surface
VAL [][]INT

Array of pixels. The first dimension is Y; the second is X. Each `INT` is a single pixel in #00RRGGBB format.

RESULT SDL.Surface

The resulting surface. This contains a pointer to `pixels`, so you must free it with before whatever you passed as `pixels` goes out of scope.

INLINE PROC occ.SDL.make.surface (VAL [][]INT pixels, RESULT SDL.Surface surface)
P.SDLJS.EVENT
occSDLjoy.inc
25

Joystick event protocol.

Joystick event protocol
PROTOCOL P.SDLJS.EVENT
change
occSDLjoy.inc
32

Reporting change in joystick status.

Reporting change in joystick status
INT

Bit-field indicating changes to axis values.

INT

Bit-field indicating changes to button values.

MOBILE []INT16

16-bit joystick axis values.

MOBILE []BYTE

Byte array of joystick button values.

change; INT; INT; MOBILE []INT16; MOBILE []BYTE
quit
occSDLjoy.inc
34

Joystick server process terminating.

Joystick server process terminating
quit
P.SDLJS.EVENT.IN
occSDLjoy.inc
38

Joystick event input protocol.

Joystick event input protocol
PROTOCOL P.SDLJS.EVENT.IN
force.event
occSDLjoy.inc
40

Pretend a change happened and generate a new event.

Pretend a change happened and generate a new event
force.event
CT.SDLJSEVENT
occSDLjoy.inc
44

Joystick event channel-type.

Joystick event channel-type
CHAN TYPE CT.SDLJSEVENT
in?
occSDLjoy.inc
46

Commands to control joystick events.

Commands to control joystick events
CHAN P.SDLJS.EVENT.IN
out!
occSDLjoy.inc
47

Joystick events.

Joystick events
CHAN P.SDLJS.EVENT
P.SDLJSCALIBRATE.IN
occSDLjoy.inc
51

Joystick calibration input protocol.

Joystick calibration input protocol
PROTOCOL P.SDLJSCALIBRATE.IN
calibrate
occSDLjoy.inc
53

Start joystick calibration.

Start joystick calibration
calibrate
P.SDLJSCALIBRATE.OUT
occSDLjoy.inc
57

Joystick calibration output protocol.

Joystick calibration output protocol
PROTOCOL P.SDLJSCALIBRATE.OUT
message
occSDLjoy.inc
59

Message to be reported to the user.

Message to be reported to the user
MOBILE []BYTE
message; MOBILE []BYTE
done
occSDLjoy.inc
60

Calibration complete.

Calibration complete
done
CT.SDLJSCALIBRATE
occSDLjoy.inc
64

Joystick calibration channel-type.

Joystick calibration channel-type
CHAN TYPE CT.SDLJSCALIBRATE
in?
occSDLjoy.inc
66

Commands to calibrator process.

Commands to calibrator process
CHAN P.SDLJSCALIBRATE.IN
out!
occSDLjoy.inc
67

Responses from calibrator process.

Responses from calibrator process
CHAN P.SDLJSCALIBRATE.OUT
P.SDLJS.IN
occSDLjoy.inc
71

Joystick input protocol.

Joystick input protocol
PROTOCOL P.SDLJS.IN
enable
occSDLjoy.inc
73

Enable joystick data capture, returns client channel-end.

Enable joystick data capture, returns client channel-end
enable
disable
occSDLjoy.inc
74

Disable joystick data capture.

Disable joystick data capture
disable
query
occSDLjoy.inc
75

Query joystick (number of axes and buttons).

Query joystick (number of axes and buttons)
query
P.SDLJS.OUT
occSDLjoy.inc
79

Joystick output protocol.

Joystick output protocol
PROTOCOL P.SDLJS.OUT
event.chan
occSDLjoy.inc
81

Channel-end on which events are received.

Channel-end on which events are received
CT.SDLJSEVENT!
event.chan; CT.SDLJSEVENT!
query
occSDLjoy.inc
82

Number of axes and buttons.

Number of axes and buttons
[SDLJS.ITEMS]INT
query; [SDLJS.ITEMS]INT
CT.SDLJS
occSDLjoy.inc
86

Joystick channel-type.

Joystick channel-type
CHAN TYPE CT.SDLJS
in?
occSDLjoy.inc
88

Commands to joystick.

Commands to joystick
CHAN P.SDLJS.IN
out!
occSDLjoy.inc
89

responses from joystick.

responses from joystick
CHAN P.SDLJS.OUT
P.SDLJOY.IN
occSDLjoy.inc
93

Joystick server input protocol.

Joystick server input protocol
PROTOCOL P.SDLJOY.IN
num.sticks
occSDLjoy.inc
95

Report number of joysticks present.

Report number of joysticks present
num.sticks
query.stick
occSDLjoy.inc
96

Query characteristics of a particular stick.

Query characteristics of a particular stick
INT
query.stick; INT
quit
occSDLjoy.inc
97

Tell the server process to terminate.

Tell the server process to terminate
quit
connect
occSDLjoy.inc
98

Connect to specified joystick.

Connect to specified joystick
INT
connect; INT
P.SDLJOY.OUT
occSDLjoy.inc
102

Joystick server output protocol.

Joystick server output protocol
PROTOCOL P.SDLJOY.OUT
num.sticks
occSDLjoy.inc
104

Number of sticks.

Number of sticks
INT
num.sticks; INT
query
occSDLjoy.inc
105

Query result.

Query result
INT
[SDLJS.ITEMS]INT
query; INT; [SDLJS.ITEMS]INT
error
occSDLjoy.inc
106

General error result.

General error result
error
joystick
occSDLjoy.inc
107

Connection to joystick handler.

Connection to joystick handler
SHARED CT.SDLJS!
joystick; SHARED CT.SDLJS!
CT.SDLJOY
occSDLjoy.inc
111

Joystick server channel-type.

Joystick server channel-type
CHAN TYPE CT.SDLJOY
in?
occSDLjoy.inc
113

Commands to joystick server.

Commands to joystick server
CHAN P.SDLJOY.IN
out!
occSDLjoy.inc
114

Responses from joystick server.

Responses from joystick server
CHAN P.SDLJOY.OUT
string
is.in.range
string0.occ
40

Determine whether the value of a byte lies in the inclusive range between two others.

Determine whether the value of a byte lies in the inclusive range between two others
VAL BYTE

the byte the value of which is to be tested to see whether it lies in a given range

VAL BYTE

the lowermost limit of the test range

VAL BYTE

the uppermost limit of the test range

BOOL

TRUE if the value of char lies in the range [value of bottom, value of top]; FALSE otherwise

BOOL FUNCTION is.in.range (VAL BYTE char, bottom, top)
is.upper
string0.occ
50

Determine whether the value of a byte lies in the inclusive range that delimits upper case ASCII characters.

Determine whether the value of a byte lies in the inclusive range that delimits upper case ASCII characters
VAL BYTE

the byte the value of which is to be tested

BOOL

TRUE if the value of char corresponds to an upper case ASCII character; FALSE otherwise

BOOL FUNCTION is.upper (VAL BYTE char)
is.lower
string0.occ
59

Determine whether the value of a byte lies in the inclusive range that delimits lower case ASCII characters.

Determine whether the value of a byte lies in the inclusive range that delimits lower case ASCII characters
VAL BYTE

the byte the value of which is to be tested

BOOL

TRUE if the value of char corresponds to a lower case ASCII character; FALSE otherwise

BOOL FUNCTION is.lower (VAL BYTE char)
is.digit
string0.occ
68

Determine whether the value of a byte lies in the inclusive range that delimits ASCII decimal digits.

Determine whether the value of a byte lies in the inclusive range that delimits ASCII decimal digits
VAL BYTE

the byte the value of which is to be tested

BOOL

TRUE if the value of char corresponds to a decimal digit according to the ASCII code; FALSE otherwise

BOOL FUNCTION is.digit (VAL BYTE char)
is.hex.digit
string0.occ
78

Determine whether the value of a byte corresponds to the ASCII value of any hexadecimal digit.

Determine whether the value of a byte corresponds to the ASCII value of any hexadecimal digit
VAL BYTE

the byte the value of which is to be tested

BOOL

TRUE if the value of char corresponds to a hexadecimal digit according to the ASCII code, where upper or lower case letters are allowed; FALSE otherwise

BOOL FUNCTION is.hex.digit (VAL BYTE char)
is.id.char
string0.occ
90

Determine whether the value of a byte corresponds to the ASCII code of any legal occam identifier character.

Determine whether the value of a byte corresponds to the ASCII code of any legal occam identifier character
VAL BYTE

the byte the value of which is to be tested

BOOL

TRUE if the value of char corresponds to the ASCII code of any legal occam identifier character

BOOL FUNCTION is.id.char (VAL BYTE char)
to.upper.case
string0.occ
105

Convert all lower case alphabetic characters in a given string to upper case.

Assumes the ASCII character set. Characters which are not lower case letters remain unchanged.

Convert all lower case alphabetic characters in a given string to upper case
[]BYTE

the string the lower case characters of which are to be converted to upper case

PROC to.upper.case ([]BYTE str)
to.lower.case
string0.occ
125

Convert all upper case alphabetic characters in a given string to lower case.

Assumes the ASCII character set. Characters which are not upper case letters remain unchanged.

Convert all upper case alphabetic characters in a given string to lower case
[]BYTE

the string the upper case characters of which are to be converted to lower case

PROC to.lower.case ([]BYTE str)
compare.strings
string1.occ
42

Determine the lexicographical ordering of two strings.

Lexicographical ordering is that which uses the ordinal values of the characters for comparison in sequence along the strings. Here the ordinal values are the ASCII values.

Determine the lexicographical ordering of two strings
VAL []BYTE

the strings to be compared

INT

0 for exact equality ( of both length and content ) 1 for str2 is leading substring of str1 -1 for str1 is leading substring of str2 2 for str1 "later" than str2 -2 for str2 "later" than str1

INT FUNCTION compare.strings (VAL []BYTE str1, str2)
eqstr
string1.occ
81

Determine if two strings are identical or not.

Determine if two strings are identical or not
VAL []BYTE

the strings to be compared

BOOL

TRUE if the two strings are identical in length and content; FALSE otherwise

BOOL FUNCTION eqstr (VAL []BYTE s1, s2)
str.shift
string1.occ
115

Shift a substring.

Shift a substring
[]BYTE

on entry: a string containing the substring to be shifted in positions [str FROM start FOR len]; on exit: the string once the substring has been shifted, the only bytes of string that have changed being those that the substring was shifted into

VAL INT

the index of str of the first character of the substring to be shifted

VAL INT

the number of characters in the substring to be shifted

VAL INT

the number of places to the right to move the substring by, so that a negative number for shift will move the substring left

BOOL

TRUE if any elements of the substring are shifted off either end of str ( though no access is made to invalid locations of str ); FALSE if the shifted substring is entirely within str

PROC str.shift ([]BYTE str, VAL INT start, len, shift, BOOL not.done)
delete.string
string1.occ
223

Remove a substring from a string.

Remove a substring from a string
INT

on entry: the number of significant characters in str; on exit: if not.done is FALSE, the number of significant characters in str, being size subtracted from the entry value of len; otherwise the same as it was on entry

[]BYTE

on entry: the string from which it is desired to delete a substring; on exit: if not.done is FALSE, the original string with substring deleted, where deleted means that the gap created by the deletion is filled from the left with those significant characters left in str that were originally after the end of the deleted substring, and so that the number of significant characters remaining in str is len on exit; otherwise the same as it was on entry

VAL INT

the index of str of the first character of the substring to be deleted

VAL INT

the number of characters in the substring to be deleted

BOOL

TRUE if size is less than zero, start is less than zero, or (start + size) is greater than the entry value of len; FALSE otherwise. If TRUE then len and str are unchanged from their original values.

PROC delete.string (INT len, []BYTE str, VAL INT start, size, BOOL not.done)
insert.string
string1.occ
257

Insert a string into another string.

If new.str can be fully inserted from the desired starting position, then any significant characters in str that were originally after str[ start ] are moved to the right by SIZE new.str, with not.done being set to TRUE if any of these characters are moved off the end of str ( though no invalid accesses are made ), FALSE otherwise

Insert a string into another string
VAL []BYTE

the string to be inserted

INT

on entry: the number of significant characters in str; on exit: the number of significant characters in str

[]BYTE

on entry: the string into which new.str is to be inserted; on exit: the original str with new.str inserted, where any overflow of str at the high index results in truncation at the high index

VAL INT

the index of str at which the first character of new.str should go

BOOL

TRUE if start < 0, start > len, len < 0, new.str had to be truncated to fit, or if any significant characters of the original str could not be retained within str after the insertion; otherwise FALSE

PROC insert.string (VAL []BYTE new.str, INT len, []BYTE str, VAL INT start, BOOL not.done)
string.pos
string1.occ
308

Determine where the first occurrence is of a string within another string.

The searching is case sensitive.

Determine where the first occurrence is of a string within another string
VAL []BYTE

the string to search for in the string str

VAL []BYTE

the string in which to search for the string search

INT

the lowest index of str at which begins a substring exactly matching the string search was found, or -1 if no such substring found

INT FUNCTION string.pos (VAL []BYTE search, str)
char.pos
string1.occ
373

Determine where the first occurrence of a character is in a given string.

The searching is case sensitive.

Determine where the first occurrence of a character is in a given string
VAL BYTE

the character to search for in the string str

VAL []BYTE

the string in which to search for the character search

INT

the lowest index of str at which a byte exactly matching search was found, or -1 if no such byte found

INT FUNCTION char.pos (VAL BYTE search, VAL []BYTE str)
search.match
string1.occ
397

Search a string for the first occurrence of any one of a given number of characters.

Search a string for the first occurrence of any one of a given number of characters
VAL []BYTE

a string each byte of which is to be individually checked for in str

VAL []BYTE

the string in which to search for any of the various bytes contained in possibles

INT

if a match found, this gives the lowest index of str at which the match occurs; otherwise -1

BYTE

if a match found, this gives the byte of possibles which was found; otherwise 255( BYTE )

INT, BYTE FUNCTION search.match (VAL []BYTE possibles, str)
search.no.match
string1.occ
427

Search a string for the first occurrence of a character which does not match any of a given number of characters.

Search a string for the first occurrence of a character which does not match any of a given number of characters
VAL []BYTE

a string each byte of which is to be individually checked for non-existence in str

VAL []BYTE

the string in which to search for a byte which is not identical to any of the various bytes contained in possibles

INT

if no match found, this gives the lowest index of str at which the lack of a match occurs; otherwise -1

BYTE

if no match found, this gives the byte of str which was found not to match; otherwise 255( BYTE )

INT, BYTE FUNCTION search.no.match (VAL []BYTE possibles, str)
append.char
string2.occ
46

Write a byte into a string.

If accessing str[ len ], for len on entry, is invalid then this routine acts as an invalid process.

Write a byte into a string
INT

on entry: the byte char will be written at str[ len ]; on exit: len will be one greater than it was on entry

[]BYTE

the string to write char to

VAL BYTE

the byte which is to be written into str

PROC append.char (INT len, []BYTE str, VAL BYTE char)
append.text
string2.occ
67

Concatenate two strings.

If str is not long enough to hold the concatenation then this routine acts as an invalid process.

Concatenate two strings
INT

on entry: the index of str where the first character of text is to go; on exit: the index of str immediately after the last character of text inserted, or SIZE str if the last character of text was placed in the last position of str

[]BYTE

the concatenation of what str was on entry with text, where text is placed in positions str[ len ] to str[ len + (SIZE text) - 1 ] inclusive, where len here is that on entry

VAL []BYTE

the string to be concatenated with str, text being the second string

PROC append.text (INT len, []BYTE str, VAL []BYTE text)
append.int
string2.occ
95

Convert an integer into its representation as ASCII decimal digits, with leading spaces if desired, and write this into a given string.

If str overflows then this routine acts as an invalid process. The conversion of number will include a minus sign if applicable.

Convert an integer into its representation as ASCII decimal digits, with leading spaces if desired, and write this into a given string
INT

on entry: the index of str at which the first character of the ASCII conversion of number is to be written; on exit: the index of str immediately after where the last character of the ASCII conversion of number was written, or SIZE str if this last character was written into the last positon of str

[]BYTE

the string into which the ASCII conversion of number is to be written

VAL INT

the integer to be converted to an ASCII representation and then written into str

VAL INT

the field width of the ASCII representation of number: if number cannot be represented in width characters then the representation is widened as necessary; if width is larger than necessary then padding spaces are added on the left; it is an error if width is negative

PROC append.int (INT len, []BYTE str, VAL INT number, width)
append.hex.int
string2.occ
139

Convert an integer into its representation as ASCII hexadecimal characters and write this into a given string.

If str overflows then this routine acts as an invalid process. The conversion of number includes a # as the first character, so that the representation is always ( width + 1 ) characters. Any hexadecimal characters which are letters will be in upper case.

Convert an integer into its representation as ASCII hexadecimal characters and write this into a given string
INT

on entry: the index of str at which the first character of the ASCII hexadecimal of number is to be written; on exit: the index of str immediately after where the last character of the ASCII hexadecimal of number was written, or SIZE str if this last character was written into the last positon of str

[]BYTE

the string into which the hexadecimal ASCII form of number is to be written

VAL INT

the integer to be converted to an ASCII hexadecimal representation and then written into str

VAL INT

the field width of the ASCII hexadecimal representation of number: if number cannot be represented in width characters then the representation is truncated at the left as necessary; otherwise the representation is padded on the left with 0's or F's to make up width characters; it is an error if width is negative

PROC append.hex.int (INT len, []BYTE str, VAL INT number, width)
append.real32
string3.occ
47

Write an ASCII representation of a single precision real number into a given string.

If str overflows this routine acts as an invalid process.

Write an ASCII representation of a single precision real number into a given string
INT

on entry: the index of str at which the first character of the representation of number is to be placed; on exit: the index of str of the byte immediately following the last character in str of the representation of number, or (SIZE str) if the last character of the representation was placed into the last byte of str

[]BYTE

the string into which to place the ASCII representation of number

VAL REAL32

a single precision real number in IEEE format

VAL INT

formatting values for the real number; see REAL32TOSTRING for their effect

PROC append.real32 (INT len, []BYTE str, VAL REAL32 number, VAL INT Ip, Dp)
append.real64
string3.occ
73

Write an ASCII representation of a double precision real number into a given string.

If str overflows this routine acts as an invalid process.

Write an ASCII representation of a double precision real number into a given string
INT

on entry: the index of str at which the first character of the representation of number is to be placed; on exit: the index of str of the byte immediately following the last character in str of the representation of number, or (SIZE str) if the last character of the representation was placed into the last byte of str

[]BYTE

the string into which to place the ASCII representation of number

VAL REAL64

a double precision real number in IEEE format

VAL INT

formatting values for the real number; see REAL64TOSTRING for their effect

PROC append.real64 (INT len, []BYTE str, VAL REAL64 number, VAL INT Ip, Dp)
append.int64
string4.occ
59

Convert a 64-bit integer into its representation as ASCII decimal digits, with leading spaces if desired, and write this into a given string.

If str overflows then this routine acts as an invalid process. The conversion of number will include a minus sign if applicable.

Convert a 64-bit integer into its representation as ASCII decimal digits, with leading spaces if desired, and write this into a given string
INT

on entry: the index of str at which the first character of the ASCII conversion of number is to be written; on exit: the index of str immediately after where the last character of the ASCII conversion of number was written, or SIZE str if this last character was written into the last positon of str

[]BYTE

the string into which the ASCII conversion of number is to be written

VAL INT64

the 64-bit integer to be converted to an ASCII representation and then written into str

VAL INT

the field width of the ASCII representation of number: if number cannot be represented in width characters then the representation is widened as necessary; if width is larger than necessary then padding spaces are added on the left; it is an error for width to be negative

PROC append.int64 (INT len, []BYTE str, VAL INT64 number, VAL INT width)
append.hex.int64
string4.occ
104

Convert a 64-bit integer into its representation as ASCII hexadecimal characters and write this into a given string.

If str overflows then this routine acts as an invalid process. The conversion of number includes a # as the first character, so that the representation is always ( width + 1 ) characters. Any hexadecimal characters which are letters will be in upper case.

Convert a 64-bit integer into its representation as ASCII hexadecimal characters and write this into a given string
INT

on entry: the index of str at which the first character of the ASCII hexadecimal of number is to be written; on exit: the index of str immediately after where the last character of the ASCII hexadecimal of number was written, or SIZE str if this last character was written into the last positon of str

[]BYTE

the string into which the hexadecimal ASCII form of number is to be written

VAL INT64

the 64-bit integer to be converted to an ASCII hexadecimal representation and then written into str

VAL INT

the field width of the ASCII hexadecimal representation of number: if number cannot be represented in width characters then the representation is truncated at the left as necessary; otherwise the representation is padded on the left with 0's or F's to make up width characters; a negative value for width is an error

PROC append.hex.int64 (INT len, []BYTE str, VAL INT64 number, VAL INT width)
next.word.from.line
string5.occ
63

Determine the next word in a given line, skipping leading spaces and tabs.

Leading spaces and ( horizontal ) tabs ( from line[ ptr ], ptr on entry ) are skipped. A word continues until a space or tab or the end of the string is encountered.

Determine the next word in a given line, skipping leading spaces and tabs
VAL []BYTE

a string containing the line from which a word is desired to be noted. The string is considered to be of length (SIZE line).

INT

on entry: the index of line from which to start the search for a word, i.e. the search begins at line[ ptr ] with ptr increasing. On exit: if ok is FALSE on entry, then unchanged; if ok is TRUE on entry, then is either the index of the space or tab immediately after the found word or is >= (SIZE line) ( where it is only ever greater than if it was passed in as such ), whether ok is subsequently set to FALSE or not.

INT

if ok is FALSE on entry, then 0; if ok is TRUE on entry then gives the length of the first word found after the given starting position ( whether ok is subsequently set to FALSE or not ), which in the case of no word found is 0

[]BYTE

if ok is FALSE on entry, then undefined; if ok is TRUE on entry, then this contains the found word from line in the first len bytes, the remaining bytes being undefined, or if not large enough to contain the word or no word found it is undefined and ok is set to FALSE, though len gives the correct length of the word found

BOOL

on entry: if FALSE, then len is set to 0, ptr and ok remain unchanged, and word is undefined; otherwise a search for a word is carried out. On exit: if FALSE on entry then FALSE; if TRUE on entry: FALSE if no word found; FALSE if a word found that was too large to fit into word; otherwise TRUE

PROC next.word.from.line (VAL []BYTE line, INT ptr, len, []BYTE word, BOOL ok)
next.int.from.line
string5.occ
131

Determine the next integer in a given line, skipping leading spaces and tabs.

Leading spaces and ( horizontal ) tabs ( from line[ ptr ], ptr on entry ) are skipped. The first sequence of characters found after skipping spaces and tabs is taken to be the integer desired; the integer continues until a space or tab or the end of the string is encountered. A + or - are permissible as the first character of the integer.

Determine the next integer in a given line, skipping leading spaces and tabs
VAL []BYTE

a string containing the line from which an integer is desired to be noted. The string is considered to be of length (SIZE line).

INT

on entry: the index of line from which to start the search for an integer, i.e. the search begins at line[ ptr ] with ptr increasing. On exit: if ok is FALSE on entry, then unchanged; if ok is TRUE on entry, then is either the index of the space or tab immediately after the found integer or is >= (SIZE line) ( where it is only ever greater than if it was passed in as such ), whether ok is subsequently set to FALSE or not.

INT

if ok is FALSE on entry, then undefined; if ok is TRUE on entry: if ok TRUE on exit, the integer read, otherwise, undefined

BOOL

on entry: if FALSE, ptr and ok remain unchanged, and number is undefined; otherwise a search for an integer is carried out. On exit: if FALSE on entry then FALSE; if TRUE on entry: FALSE if there were no non-space or non-tab characters before the end of the string; FALSE if the first sequence of non-space, non-tab characters do not form an integer; FALSE if an integer found that overflowed the range of INT; otherwise TRUE

PROC next.int.from.line (VAL []BYTE line, INT ptr, number, BOOL ok)
course.cycles

Demonstration cycles.

This is part of the course library. To use this library:

`#INCLUDE "course.module"`

Demonstration cycles
id
demo_cycles.occ
33

Copy input to output.

Copy input to output
CHAN INT
CHAN INT
PROC id (CHAN INT in?, out!)
succ
demo_cycles.occ
44

Add one to input numbers.

Add one to input numbers
CHAN INT
CHAN INT
PROC succ (CHAN INT in?, out!)
plus
demo_cycles.occ
55

Add two streams of numbers together.

Add two streams of numbers together
CHAN INT
CHAN INT
CHAN INT
PROC plus (CHAN INT in.1?, in.2?, out!)
delta
demo_cycles.occ
68

Duplicate a stream of numbers.

Duplicate a stream of numbers
CHAN INT
CHAN INT
CHAN INT
PROC delta (CHAN INT in?, out.1!, out.2!)
prefix
demo_cycles.occ
81

Output a fixed number, then copy input to output.

Output a fixed number, then copy input to output
VAL INT
CHAN INT
CHAN INT
PROC prefix (VAL INT n, CHAN INT in?, out!)
tail
demo_cycles.occ
90

Drop the first input number, then copy input to output.

Drop the first input number, then copy input to output
CHAN INT
CHAN INT
PROC tail (CHAN INT in?, out!)
selector

IO selector.

An IO selector is a server that waits in an efficient way for events on a set of file descriptors; it provides a process-oriented interface to the poll(2) system call (or an equivalent).

To start an IO selector, call ; see for the interface.

IO selector
selector.make.nonblocking
selector.occ
34

Make a file descriptor non-blocking. This just sets the flag on the FD.

Make a file descriptor non-blocking
VAL INT

File descriptor

PROC selector.make.nonblocking (VAL INT fd)
selector.add
selector.occ
42

Register a file descriptor with a selector.

Register a file descriptor with a selector
SHARED SELECTOR.CT!
VAL INT
VAL INT
RESULT SELECTOR.SIGNAL?
PROC selector.add (SHARED SELECTOR.CT! sel, VAL INT fd, events, RESULT SELECTOR.SIGNAL? svr)
selector.delayed.add
selector.occ
58

Register a file descriptor with a selector, then send the new signal end down a shared channel.

Why would you want to do this? It's to avoid a client-server loop if you've got a client that wants to change the set of FDs it selects on: rather than having it add the FD itself (which would mean switching the direction of the client-server relationship), have it fork off this process.

Register a file descriptor with a selector, then send the new signal end down a shared channel
SHARED SELECTOR.CT!
VAL INT
VAL INT
SHARED CHAN SELECTOR.SIGNAL?
PROC selector.delayed.add (SHARED SELECTOR.CT! sel, VAL INT fd, events, SHARED CHAN SELECTOR.SIGNAL? svr.out!)
selector.start
selector.occ
68

Start an IO selector.

Start an IO selector
RESULT SHARED SELECTOR.CT!
PROC selector.start (RESULT SHARED SELECTOR.CT! sel)
SELECT
selector.inc
31

Events to select upon.

Events to select upon
SELECT.READ
selector.inc
32

A read will not block.

A read will not block
VAL INT SELECT.READ
SELECT.WRITE
selector.inc
33

A write will not block.

A write will not block
VAL INT SELECT.WRITE
SELECTOR.SIGNAL.REQ
selector.inc
37

Requests from an IO selector to a waiting process.

Requests from an IO selector to a waiting process
PROTOCOL SELECTOR.SIGNAL.REQ
ready
selector.inc
40

The FD has become ready.

The FD has become ready
ready = 0
shutdown
selector.inc
42

The selector is shutting down.

The selector is shutting down
shutdown = 1
SELECTOR.SIGNAL.RESP
selector.inc
46

Responses from a waiting process to an IO selector.

Responses from a waiting process to an IO selector
PROTOCOL SELECTOR.SIGNAL.RESP
again
selector.inc
49

Wait for the FD again.

Wait for the FD again
again = 0
remove
selector.inc
51

Remove the FD from the waiting set.

Remove the FD from the waiting set
remove = 1
SELECTOR.SIGNAL
selector.inc
58

Channel bundle used for the selector to signal back to the client.

This may look dodgy from a C-S perspective, but it should be OK: at any given time, the client-server relationship is only going one way...

Channel bundle used for the selector to signal back to the client
CHAN TYPE SELECTOR.SIGNAL
SELECTOR.REQ
selector.inc
65

Requests to an IO selector.

Requests to an IO selector
PROTOCOL SELECTOR.REQ
add
selector.inc
71

Add a file descriptor to the set being waited upon.

Add a file descriptor to the set being waited upon
INT

File descriptor (usually non-blocking)

INT

Bitwise OR of events to wait for; see

SELECTOR.SIGNAL!

Channel bundle to signal over when the event fires

add = 0; INT; INT; SELECTOR.SIGNAL!
shutdown
selector.inc
73

Shut down the selector.

Shut down the selector
shutdown = 1
SELECTOR.CT
selector.inc
77

Interface to an IO selector.

Interface to an IO selector
CHAN TYPE SELECTOR.CT
shared_screen

Shared screen library.

To use this library:

`#INCLUDE "shared_screen.module"`

Shared screen library
fg.col
shared_screen.occ
39

Set foreground colour. Generate a VT220 control sequence to set the terminal colour.

Set foreground colour
VAL COLOUR

Colour to set; see

CHAN BYTE

Channel to write to

PROC fg.col (VAL COLOUR c, CHAN BYTE out!)
screen.interpret
shared_screen.occ
74

Interpret an array of screen update commands.

Interpret an array of screen update commands
VAL []SCREEN.NODE

Commands to interpret; see

CHAN BYTE

Channel to write to

PROC screen.interpret (VAL []SCREEN.NODE node, CHAN BYTE out!)
screen.driver
shared_screen.occ
185

Shared screen process. Manage a VT220 terminal display.

Shared screen process
CHAN SCREEN.CONTROL

Command input channel (see )

CHAN BYTE

Channel to write to

PROC screen.driver (CHAN SCREEN.CONTROL in?, CHAN BYTE out!)
COLOUR
shared_screen.inc
25

A colour.

A colour
DATA TYPE COLOUR
COLOURS
shared_screen.inc
26

Colour constants

Colour constants
default
shared_screen.inc
27

Default colour

Default colour
VAL COLOUR default
black
shared_screen.inc
28

Black

Black
VAL COLOUR black
red
shared_screen.inc
29

Red

Red
VAL COLOUR red
green
shared_screen.inc
30

Green

Green
VAL COLOUR green
yellow
shared_screen.inc
31

Yellow

Yellow
VAL COLOUR yellow
blue
shared_screen.inc
32

Blue

Blue
VAL COLOUR blue
magenta
shared_screen.inc
33

Magenta

Magenta
VAL COLOUR magenta
cyan
shared_screen.inc
34

Cyan

Cyan
VAL COLOUR cyan
white
shared_screen.inc
35

White

White
VAL COLOUR white
bold.black
shared_screen.inc
36

Bold black (grey)

Bold black (grey)
VAL COLOUR bold.black
bold.red
shared_screen.inc
37

Bold red

Bold red
VAL COLOUR bold.red
bold.green
shared_screen.inc
38

Bold green

Bold green
VAL COLOUR bold.green
bold.yellow
shared_screen.inc
39

Bold yellow

Bold yellow
VAL COLOUR bold.yellow
bold.blue
shared_screen.inc
40

Bold blue

Bold blue
VAL COLOUR bold.blue
bold.magenta
shared_screen.inc
41

Bold magenta

Bold magenta
VAL COLOUR bold.magenta
bold.cyan
shared_screen.inc
42

Bold cyan

Bold cyan
VAL COLOUR bold.cyan
bold.white
shared_screen.inc
43

Bold white

Bold white
VAL COLOUR bold.white
COORDINATES
shared_screen.inc
48

A pair of coordinates.

A pair of coordinates
DATA TYPE COORDINATES
X
shared_screen.inc
50

X coordinate

X coordinate
BYTE
Y
shared_screen.inc
51

Y coordinate

Y coordinate
BYTE
COORDINATES.COLOUR
shared_screen.inc
56

A pair of coordinates and a colour.

A pair of coordinates and a colour
DATA TYPE COORDINATES.COLOUR
X
shared_screen.inc
58

X coordinate

X coordinate
BYTE
Y
shared_screen.inc
59

Y coordinate

Y coordinate
BYTE
col
shared_screen.inc
60

Colour

Colour
COLOUR
SCREEN.COMMAND
shared_screen.inc
64

Command tags for .

Command tags for
SCREEN.NODE
shared_screen.inc
91

A batch instruction to the shared screen. This is really a union type; the argument tags have different meanings depending on the command.

A batch instruction to the shared screen
DATA TYPE SCREEN.NODE
tag
shared_screen.inc
95

The command to execute. See .

The command to execute
BYTE
a
shared_screen.inc
97

First argument

First argument
BYTE
b
shared_screen.inc
99

Second argument

Second argument
BYTE
SCREEN.CONTROL
shared_screen.inc
106

Control protocol for .

Control protocol for
PROTOCOL SCREEN.CONTROL
coordinates
shared_screen.inc
109

Set coordinates

Set coordinates
COORDINATES
coordinates; COORDINATES
colour
shared_screen.inc
110

Set colour

Set colour
COLOUR
colour; COLOUR
string
shared_screen.inc
111

Draw a string

Draw a string
BYTE::[]BYTE
string; BYTE::[]BYTE
integer
shared_screen.inc
112

Draw an integer

Draw an integer
INT
integer; INT
byte
shared_screen.inc
113

Draw a byte

Draw a byte
BYTE
byte; BYTE
character
shared_screen.inc
114

Draw a character

Draw a character
BYTE
character; BYTE
left
shared_screen.inc
115

Move left

Move left
BYTE
left; BYTE
right
shared_screen.inc
116

Move right

Move right
BYTE
right; BYTE
up
shared_screen.inc
117

Move up

Move up
BYTE
up; BYTE
down
shared_screen.inc
118

Move down

Move down
BYTE
down; BYTE
draw.left
shared_screen.inc
119

Move left drawing character

Move left drawing character
BYTE
BYTE
draw.left; BYTE; BYTE
draw.right
shared_screen.inc
120

Move right drawing character

Move right drawing character
BYTE
BYTE
draw.right; BYTE; BYTE
draw.up
shared_screen.inc
121

Move up drawing character

Move up drawing character
BYTE
BYTE
draw.up; BYTE; BYTE
draw.down
shared_screen.inc
122

Move down drawing character

Move down drawing character
BYTE
BYTE
draw.down; BYTE; BYTE
erase.eol
shared_screen.inc
123

Erase to end of line

Erase to end of line
erase.eol
erase.bol
shared_screen.inc
124

Erase to beginning of line

Erase to beginning of line
erase.bol
erase.line
shared_screen.inc
125

Erase whole line

Erase whole line
erase.line
erase.eos
shared_screen.inc
126

Erase to end of screen

Erase to end of screen
erase.eos
erase.bos
shared_screen.inc
127

Erase to beginning of screen

Erase to beginning of screen
erase.bos
flush
shared_screen.inc
128

Force a screen update

Force a screen update
flush
c.erase.eol
shared_screen.inc
142

Move then erase to end of line

Move then erase to end of line
COORDINATES
c.erase.eol; COORDINATES
c.erase.bol
shared_screen.inc
143

Move then erase to beginning of line

Move then erase to beginning of line
COORDINATES
c.erase.bol; COORDINATES
c.erase.line
shared_screen.inc
144

Move then erase whole line

Move then erase whole line
COORDINATES
c.erase.line; COORDINATES
c.erase.eos
shared_screen.inc
145

Move then erase to end of screen

Move then erase to end of screen
COORDINATES
c.erase.eos; COORDINATES
c.erase.bos
shared_screen.inc
146

Move then erase to beginning of screen

Move then erase to beginning of screen
COORDINATES
c.erase.bos; COORDINATES
erase.screen
shared_screen.inc
147

Clear the screen

Clear the screen
erase.screen
cursor.visible
shared_screen.inc
148

Make the cursor visible

Make the cursor visible
cursor.visible
cursor.invisible
shared_screen.inc
149

Make the cursor invisible

Make the cursor invisible
cursor.invisible
interpret
shared_screen.inc
152

Interpret a list of commands. See .

Interpret a list of commands
BYTE::[]SCREEN.NODE
interpret; BYTE::[]SCREEN.NODE
poison
shared_screen.inc
153

Exit

Exit
poison
rastergraphics

Graphics primitives for rasters.

Graphics primitives for rasters

David Wood <D.C.Wood@kent.ac.uk>

desaturate.colour
colourspace.occ
34

Desaturate a colour value.

This adds `amount` to each of the colour's components, capping them at `#FF`.

Desaturate a colour value
VAL INT

Colour

VAL INT

Amount to add

INT

The new colour

INT FUNCTION desaturate.colour (VAL INT colour, amount)
hsv.to.rgb
colourspace.occ
69

Convert a colour from HSV to RGB.

The HSV colourspace specifies colour shades in terms of hue (basic colour), saturation and value (brightness), each a real value between 0 and 1. It's useful if you want to turn a continuous range of values into a smooth series of colours: fix the saturation and value and vary the hue.

This is an implementation of N. Schaller's algorithm.

Convert a colour from HSV to RGB
VAL REAL32

Hue

VAL REAL32

Saturation

VAL REAL32

Value

INT

`#rrggbb`

INT FUNCTION hsv.to.rgb (VAL REAL32 h, s, v)
dither
dither.occ
28

Dither

Dither
VAL INT

Order

VAL INT

Coordinates

INT

Dither

INT FUNCTION dither (VAL INT n, i, j)
undither
dither.occ
51

Reverse Dither

Reverse Dither
VAL INT

Order

VAL INT

Count

INT

Coordinates

INT, INT FUNCTION undither (VAL INT n, k)
fill.circle
disc.occ
30

Draws a solid circle. Clips as necessary.

Draws a solid circle
VAL INT

Coordinates of centre

VAL INT

Radius

VAL INT

Colour

[][]INT

Raster

PROC fill.circle (VAL INT x, y, r, VAL INT colour, [][]INT raster)
circle.hits
hit.occ
29

Does circle hit anything?

Does circle hit anything?
VAL INT

Centre of circle

VAL INT

Radius

VAL INT

Colour of target

VAL [][]INT

Raster

BOOL
BOOL FUNCTION circle.hits (VAL INT X, Y, radius, colour, VAL [][]INT raster)
draw.wallpaper
wallpaper.occ
27

Cover `dst` with copies of `dst`

Cover dst with copies of dst
VAL [][]INT

Source raster

[][]INT

Destination raster

PROC draw.wallpaper (VAL [][]INT src, [][]INT dst)
draw.line
line.occ
37

Draw a straight line.

Returns end point in `(x.0, y.0)`.

Does nothing if `(x.0, y.0)` is outside `raster`.

Based on Foley & van Dam, Computer Graphics Principles and Practice, Second Edition in C, Fig. 3.8.

Draw a straight line
INT

Starting point

VAL INT

Relative position of end point

VAL INT

Stop when line hits this colour

VAL INT

Draw in this colour ...

[][]INT

... on this raster

PROC draw.line (INT x.0, y.0, VAL INT d.x, d.y, VAL INT c.0, c.1, [][]INT raster)
ANGLE
angle.inc
28

ANGLE data type

An `ANGLE` is measured in units of 2^32 bits = 1 turn = 4 right angles = 2 pi radians = 360 degrees = 400 grades. Like times, angles wrap round without overflowing.

ANGLE data type
DATA TYPE ANGLE
ANGLE
angle.inc
30

constants

constants
ANGLE.STRAIGHT
angle.inc
32

2^31 (exact)

2^31 (exact)
VAL ANGLE ANGLE.STRAIGHT
ANGLE.RIGHT
angle.inc
33

2^30 (exact)

2^30 (exact)
VAL ANGLE ANGLE.RIGHT
ANGLE.RADIAN
angle.inc
34

2^31 / pi (approx.)

2^31 / pi (approx.)
VAL ANGLE ANGLE.RADIAN
ANGLE.DEGREE
angle.inc
35

2^32 / 360 (approx.)

2^32 / 360 (approx.)
VAL ANGLE ANGLE.DEGREE
ANGLE.GRADE
angle.inc
38

2^32 / 400 (approx.)

2^32 / 400 (approx.)
VAL ANGLE ANGLE.GRADE
+ (ANGLE, ANGLE)
angle.inc
48

Addition operator

Addition operator
VAL ANGLE

Operands

ANGLE

`X + Y`

ANGLE INLINE FUNCTION "+" (VAL ANGLE X, Y)
~ (ANGLE)
angle.inc
64

Reverse operator

Reverse operator
VAL ANGLE

Operands

ANGLE

Opposite direction

ANGLE INLINE FUNCTION "~" (VAL ANGLE X)
fill.ellipse.radii
ellipse.occ
31

Draws a solid ellipse. Clips as necessary.

Draws a solid ellipse
VAL INT

Coordinates of centre

VAL INT

X and Y radii

VAL INT

Colour

[][]INT

Raster

PROC fill.ellipse.radii (VAL INT x, y, a, b, VAL INT colour, [][]INT raster)
draw.circle
circle.occ
34

Draws a circle.

Clips as necessary.

Based on Foley & van Dam, Computer Graphics Principles and Practice, Second Edition in C, Fig. 3.16.

Draws a circle
VAL INT

Centre

VAL INT

Radius

VAL INT

Colour

[][]INT

Raster

PROC draw.circle (VAL INT x.0, y.0, radius, VAL INT colour, [][]INT raster)
points.1
circle.occ
42

Plots eight points at `(+/-x, +/-y)` relative to centre `(x.0, y0)`, all within raster (fast).

Plots eight points at (+/-x, +/-y) relative to centre (x.0, y0) , all within raster (fast)
VAL INT
VAL INT
INLINE PROC points.1 (VAL INT x, y)
points.2
circle.occ
59

Plots eight points at `(+/-x, +/-y)` relative to centre `(x.0, y0)`, some outside raster (slow).

Plots eight points at (+/-x, +/-y) relative to centre (x.0, y0) , some outside raster (slow)
VAL INT
VAL INT
PROC points.2 (VAL INT x, y)
point
circle.occ
65

Plot point if inside raster

Plot point if inside raster
VAL INT

Coordinates

PROC point (VAL INT x, y)
points
circle.occ
93

Decide how to plot points

Decide how to plot points
VAL INT

Coordinates

VAL BOOL

How to plot

INLINE PROC points (VAL INT x, y, VAL BOOL b)
map.to.components.spectrum
spectrum.occ
31

Maps code value into three `BYTEs` representing primary colours (not necessarily RGB), with smooth transitions.

Maps code value into three BYTEs representing primary colours (not necessarily RGB), with smooth transitions
VAL REAL64

Value `(0.0 <= x < 1.0)`

BYTE
BYTE, BYTE, BYTE FUNCTION map.to.components.spectrum (VAL REAL64 x)
smooth
spectrum.occ
41

Smooth transition.

Smooth transition
VAL REAL64

Argument; `0.0 <= x <= 1.0`

BYTE

`0 <= "colour" <= #FF`

BYTE INLINE FUNCTION smooth (VAL REAL64 x)
map.to.components.wheel
spectrum.occ
75

As , but without mapping through black.

As , but without mapping through black
VAL REAL64
BYTE
BYTE
BYTE
BYTE, BYTE, BYTE FUNCTION map.to.components.wheel (VAL REAL64 x)
pack.colour.permuted
spectrum.occ
115

Maps three `BYTEs` representing colours to an `INT`, according to the code `permute`.

Maps three BYTEs representing colours to an INT , according to the code permute
VAL BYTE

"red", "green", "blue"

VAL INT

Permutation code

INT

#rrggbb

INT FUNCTION pack.colour.permuted (VAL BYTE r, g, b, VAL INT permute)
map.colour.spectrum
spectrum.occ
159

Maps `x` (`0.0 <= x < 1.0`) to `INT` representing a colour, according to the code `permute`. Shades from black through "red", "yellow", "green", "cyan", "magenta", back to "red", and finally black.

`x >= 1.0` shown as black; `x < 0.0` shown as dark grey.

Maps x ( 0.0 <= x < 1.0 ) to INT representing a colour, according to the code permute
VAL REAL64

`(0.0 <= x < 1.0)`

VAL INT

Permutation code

INT

`#rrggbb`

INT FUNCTION map.colour.spectrum (VAL REAL64 x, VAL INT permute)
map.colour.wheel
spectrum.occ
188

Maps `x` (`0.0 <= x < 1.0`) to `INT` representing a colour, according to the code `permute`. Shades from "red" through "yellow", "green", "cyan", "magenta", back to "red".

`x >= 1.0` shown as black; `x < 0.0` shown as white.

Maps x ( 0.0 <= x < 1.0 ) to INT representing a colour, according to the code permute
VAL REAL64

`(0.0 <= x < 1.0)`

VAL INT

Permutation code

INT

`#rrggbb`

INT FUNCTION map.colour.wheel (VAL REAL64 x, VAL INT permute)
CORDIC
cordic.occ
55

CORDIC rotation algorithm.

See here for details.

Rotates vector through angle

CORDIC rotation algorithm
VAL INT

Coordinates of vector

VAL ANGLE

Angle

INT

Rotated through `theta`

INT, INT FUNCTION CORDIC (VAL INT X, Y, VAL ANGLE theta)
CORDIC.CONST
cordic.occ
65

Magic constant

Magic constant
VAL INT CORDIC.CONST
CIDROC
cordic.occ
101

Inverse algorithm; Converts Cartesian `(X, Y)` to polar coordinates.

Inverse algorithm; Converts Cartesian (X, Y) to polar coordinates
VAL INT

Coordinate of vector

INT

radius `sqrt(X^2 + Y^2)`

ANGLE

angle `arctan(Y/X)`

INT, ANGLE FUNCTION CIDROC (VAL INT X, Y)
CORDIC.CONST
cordic.occ
105

Magic constant

Magic constant
VAL INT CORDIC.CONST
fill.circle.diameter
disc2.occ
30

Draws a solid circle. Clips as necessary.

Draws a solid circle
VAL INT

Coordinates of centre

VAL INT

Diameter

VAL INT

Colour

[][]INT

Raster

PROC fill.circle.diameter (VAL INT x, y, d, VAL INT colour, [][]INT raster)
fill.rectangle
rectangle.occ
32

Draws a solid rectangle.

Clips as necessary.

Draws a solid rectangle
VAL INT

Top left corner

VAL INT

Width

VAL INT

Height/depth

VAL INT

Colour

[][]INT

Raster

PROC fill.rectangle (VAL INT x.0, y.0, w.0, h.0, VAL INT colour, [][]INT raster)
fill.square
rectangle.occ
78

Draw a solid square.

Draw a solid square
VAL INT
VAL INT
VAL INT
VAL INT
[][]INT
PROC fill.square (VAL INT x, y, s, VAL INT colour, [][]INT raster)
draw.arc
arc.occ
33

Draws a circular arc.

Draws a circular arc
VAL INT

Coordinates of centre

VAL INT

Radius

VAL ANGLE

Range of s

VAL INT

Colour

[][]INT

Raster

PROC draw.arc (VAL INT x.0, y.0, radius, VAL ANGLE t.0, t.1, VAL INT colour, [][]INT raster)
arc
arc.occ
39

Basic PROC; `arc <= ANGLE.RIGHT`

Basic PROC; arc <= ANGLE.RIGHT
VAL ANGLE

Range of s

PROC arc (VAL ANGLE t.0, t.1)
COLOUR
graphics.inc
27

Common colours

Assume coded as `#rrggbb`, which ain't necessarily so.

Common colours
COLOUR.BLACK
graphics.inc
31
VAL INT COLOUR.BLACK
COLOUR.WHITE
graphics.inc
32
VAL INT COLOUR.WHITE
COLOUR.RED
graphics.inc
33
VAL INT COLOUR.RED
COLOUR.GREEN
graphics.inc
34
VAL INT COLOUR.GREEN
COLOUR.BLUE
graphics.inc
35
VAL INT COLOUR.BLUE
COLOUR.YELLOW
graphics.inc
36
VAL INT COLOUR.YELLOW
COLOUR.CYAN
graphics.inc
37
VAL INT COLOUR.CYAN
COLOUR.MAGENTA
graphics.inc
38
VAL INT COLOUR.MAGENTA
COLOUR.GREY
graphics.inc
39
VAL INT COLOUR.GREY
COLOUR.ORANGE
graphics.inc
40
VAL INT COLOUR.ORANGE
COLOUR.PINK
graphics.inc
41
VAL INT COLOUR.PINK
COLOUR.SKY
graphics.inc
42
VAL INT COLOUR.SKY
COLOUR.MAROON
graphics.inc
43
VAL INT COLOUR.MAROON
COLOUR.BROWN
graphics.inc
44
VAL INT COLOUR.BROWN
COLOUR.NAVY
graphics.inc
45
VAL INT COLOUR.NAVY
COLOUR.PURPLE
graphics.inc
46
VAL INT COLOUR.PURPLE
COLOUR.VIOLET
graphics.inc
47
VAL INT COLOUR.VIOLET
COLOUR.OCTARINE
graphics.inc
49
VAL INT COLOUR.OCTARINE
pack.colour
graphics.inc
61

Pack RGB `BYTEs` to an `INT`.

Assume coded as `#rrggbb`, which ain't necessarily so.

Pack RGB BYTEs to an INT
VAL BYTE

Primary colour components

INT

`#rrggbb`

INT INLINE FUNCTION pack.colour (VAL BYTE r, g, b)
pack.colour.float
graphics.inc
69

As , but taking `REAL32` arguments.

As , but taking REAL32 arguments
VAL REAL32

Primary colour components in the range 0.0 to 1.0

INT

`#rrggbb`

INT INLINE FUNCTION pack.colour.float (VAL REAL32 r, g, b)
unpack.colour
graphics.inc
78

Unpack an `INT` to RGB `BYTEs`.

Unpack an INT to RGB BYTEs
VAL INT

`#rrggbb`

BYTE

Primary colour components

BYTE, BYTE, BYTE INLINE FUNCTION unpack.colour (VAL INT c)
PALETTE
graphics.inc
82

Codes for `permute` arguments.

Codes for permute arguments
PALETTE.RGB
graphics.inc
86
VAL INT PALETTE.RGB
PALETTE.BGR
graphics.inc
87
VAL INT PALETTE.BGR
PALETTE.RBG
graphics.inc
88
VAL INT PALETTE.RBG
PALETTE.BRG
graphics.inc
89
VAL INT PALETTE.BRG
PALETTE.GRB
graphics.inc
90
VAL INT PALETTE.GRB
PALETTE.GBR
graphics.inc
91
VAL INT PALETTE.GBR
draw.horizontal.line
lines.occ
31

Draws a horizontal line.

Clips as necessary.

Draws a horizontal line
VAL INT

Starting point

VAL INT

Length

VAL INT

Colour

[][]INT

Raster

PROC draw.horizontal.line (VAL INT x, y, l, VAL INT colour, [][]INT raster)
draw.vertical.line
lines.occ
67

Draws a vertical line.

Clips as necessary.

Draws a vertical line
VAL INT

Starting point

VAL INT

Length

VAL INT

Colour

[][]INT

Raster

PROC draw.vertical.line (VAL INT x, y, l, VAL INT colour, [][]INT raster)
draw.rectangle
lines.occ
104

Draws a rectangular box.

Clips as necessary.

Draws a rectangular box
VAL INT

Top left corner

VAL INT

Width

VAL INT

Height/depth

VAL INT

Colour

[][]INT

Raster

PROC draw.rectangle (VAL INT x, y, w, h, VAL INT colour, [][]INT raster)
copy.raster
copy.occ
41

Copy one raster onto another.

One corner of `src` always maps to `(x, y)` of `dst`.

Let the least significant three bits of `f` be abc:

- a = 1: flip about \, then
- b = 1: flip about |
- c = 1: flip about -

Hence

- f = 7: flip about /
Copy one raster onto another
VAL [][]INT

Source raster

VAL INT

Top left of target in `dst`

VAL INT

Transparent colour -- don't copy

VAL INT

Orientation

[][]INT

Destination raster

PROC copy.raster (VAL [][]INT src, VAL INT x, y, c, f, [][]INT dst)
maths

Mathematical functions and constants.

Mathematical functions and constants
DSINH
dhyperfl.occ
79

Double-precision hyperbolic sine.

Double-precision hyperbolic sine
VAL REAL64

Hyperbolic angle

REAL64

Hyperbolic sine of X

REAL64 FUNCTION DSINH (VAL REAL64 X)
DCOSH
dhyperfl.occ
134

Double-precision hyperbolic cosine.

Double-precision hyperbolic cosine
VAL REAL64

Hyperbolic angle

REAL64

Hyperbolic cosine of X

REAL64 FUNCTION DCOSH (VAL REAL64 X)
DTANH
dhyperfl.occ
165

Double-precision hyperbolic tangent.

Double-precision hyperbolic tangent
VAL REAL64

Hyperbolic angle

REAL64

Hyperbolic tangent of X

REAL64 FUNCTION DTANH (VAL REAL64 X)
ASIN
asinfl.occ
31

Single-precision arcsine.

Single-precision arcsine
VAL REAL32

Input value in the range [-1.0, 1.0]

REAL32

Arcsine of X in radians

REAL32 FUNCTION ASIN (VAL REAL32 X)
E
mathvals.inc
33

Single-precision e.

Single-precision e
VAL REAL32 E
PI
mathvals.inc
35

Single-precision pi.

Single-precision pi
VAL REAL32 PI
DE
mathvals.inc
56

Double-precision e.

Double-precision e
VAL REAL64 DE
DPI
mathvals.inc
58

Double-precision pi.

Double-precision pi
VAL REAL64 DPI
EXP
expfl.occ
31

Single-precision exponent.

Single-precision exponent
VAL REAL32

Input value

REAL32

e raised to the power X

REAL32 FUNCTION EXP (VAL REAL32 X)
DSIN
dsinfl.occ
33

Double-precision sine.

Double-precision sine
VAL REAL64

Angle in radians

REAL64

Sine of X

REAL64 FUNCTION DSIN (VAL REAL64 X)
DASIN
dasinfl.occ
31

Double-precision arcsine.

Double-precision arcsine
VAL REAL64

Input value in the range [-1.0, 1.0]

REAL64

Arcsine of X in radians

REAL64 FUNCTION DASIN (VAL REAL64 X)
DEXP
dexpfl.occ
31

Double-precision exponent.

Double-precision exponent
VAL REAL64

Input value

REAL64

e raised to the power X

REAL64 FUNCTION DEXP (VAL REAL64 X)
POWER
powfl.occ
32

Single-precision power.

Single-precision power
VAL REAL32

Base

VAL REAL32

Exponent

REAL32

Base.r raised to the power Expn.r

REAL32 FUNCTION POWER (VAL REAL32 Base.r, Expn.r)
DPOWER
dpowfl.occ
32

Double-precision power.

Double-precision power
VAL REAL64

Base

VAL REAL64

Exponent

REAL64

Base.r raised to the power Expn.r

REAL64 FUNCTION DPOWER (VAL REAL64 Base.r, Expn.r)
RAN
ranfl.occ
31

Single-precision pseudo-random number generator.

Single-precision pseudo-random number generator
VAL INT32

Input seed value

REAL32

Pseudo-random value in the range [0.0, 1.0)

INT32

Output seed value

REAL32, INT32 FUNCTION RAN (VAL INT32 SeedRan)
TAN
tanfl.occ
33

Single-precision tangent.

Single-precision tangent
VAL REAL32

Angle in radians

REAL32

Tangent of X

REAL32 FUNCTION TAN (VAL REAL32 X)
ALOG
alogfl.occ
36

Single-precision natural logarithm.

Single-precision natural logarithm
VAL REAL32

Input value

REAL32

Natural logarithm of X

REAL32 FUNCTION ALOG (VAL REAL32 X)
ALOG10
alogfl.occ
88

Single-precision base-10 logarithm.

Single-precision base-10 logarithm
VAL REAL32

Input value

REAL32

Base-10 logarithm of X

REAL32 FUNCTION ALOG10 (VAL REAL32 X)
ATAN
atanfl.occ
50

Single-precision arctangent.

Single-precision arctangent
VAL REAL32

Input value

REAL32

Arctangent of X

REAL32 FUNCTION ATAN (VAL REAL32 X)
ATAN2
atanfl.occ
146

Single-precision divide and arctangent.

This can be used to convert a 2D coordinate to a polar angle. It is more accurate than doing the equivalent division and call to .

Single-precision divide and arctangent
VAL REAL32

Input values

REAL32

Arctangent of `U / V`

REAL32 FUNCTION ATAN2 (VAL REAL32 U, V)
DRAN
dranfl.occ
31

Double-precision pseudo-random number generator.

Double-precision pseudo-random number generator
VAL INT64

Input seed value

REAL64

Pseudo-random value in the range [0.0, 1.0)

INT64

Output seed value

REAL64, INT64 FUNCTION DRAN (VAL INT64 DSeedIn)
COS
cosfl.occ
33

Single-precision cosine.

Single-precision cosine
VAL REAL32

Angle in radians

REAL32

Cosine of X

REAL32 FUNCTION COS (VAL REAL32 X)
ACOS
acosfl.occ
31

Single-precision arccosine.

Single-precision arccosine
VAL REAL32

Input value in the range [-1.0, 1.0]

REAL32

Arccosine of X in radians

REAL32 FUNCTION ACOS (VAL REAL32 X)
DALOG
dalogfl.occ
36

Double-precision natural logarithm.

Double-precision natural logarithm
VAL REAL64

Input value

REAL64

Natural logarithm of X

REAL64 FUNCTION DALOG (VAL REAL64 X)
DALOG10
dalogfl.occ
96

Double-precision base-10 logarithm.

Double-precision base-10 logarithm
VAL REAL64

Input value

REAL64

Base-10 logarithm of X

REAL64 FUNCTION DALOG10 (VAL REAL64 X)
DTAN
dtanfl.occ
33

Double-precision tangent.

Double-precision tangent
VAL REAL64

Angle in radians

REAL64

Tangent of X

REAL64 FUNCTION DTAN (VAL REAL64 X)
DATAN
datanfl.occ
49

Double-precision arctangent.

Double-precision arctangent
VAL REAL64

Input value

REAL64

Arctangent of X

REAL64 FUNCTION DATAN (VAL REAL64 X)
DATAN2
datanfl.occ
147

Double-precision divide and arctangent.

See for more details.

Double-precision divide and arctangent
VAL REAL64

Input values

REAL64

Arctangent of `U / V`

REAL64 FUNCTION DATAN2 (VAL REAL64 U, V)
SINH
hyperfl.occ
76

Single-precision hyperbolic sine.

Single-precision hyperbolic sine
VAL REAL32

Hyperbolic angle

REAL32

Hyperbolic sine of X

REAL32 FUNCTION SINH (VAL REAL32 X)
COSH
hyperfl.occ
127

Single-precision hyperbolic cosine.

Single-precision hyperbolic cosine
VAL REAL32

Hyperbolic angle

REAL32

Hyperbolic cosine of X

REAL32 FUNCTION COSH (VAL REAL32 X)
TANH
hyperfl.occ
158

Single-precision hyperbolic tangent.

Single-precision hyperbolic tangent
VAL REAL32

Hyperbolic angle

REAL32

Hyperbolic tangent of X

REAL32 FUNCTION TANH (VAL REAL32 X)
DCOS
dcosfl.occ
33

Double-precision cosine.

Double-precision cosine
VAL REAL64

Angle in radians

REAL64

Cosine of X

REAL64 FUNCTION DCOS (VAL REAL64 X)
DACOS
dacosfl.occ
31

Double-precision arccosine.

Double-precision arccosine
VAL REAL64

Input value in the range [-1.0, 1.0]

REAL64

Arccosine of X in radians

REAL64 FUNCTION DACOS (VAL REAL64 X)
SIN
sinfl.occ
33

Single-precision sine.

Single-precision sine
VAL REAL32

Angle in radians

REAL32

Sine of X

REAL32 FUNCTION SIN (VAL REAL32 X)
occade

A library for programming simple arcade games in occam-pi.

This library provides facilities for occam programmers similar to those available on microcomputers of the early 1980s: a fixed playfield that's displayed in the background (see ), a number of moving sprites on top of it with collision detection (see ), and event-based input (see ). Unlike 1980s micros, you've got a 24-bit display and potentially thousands of sprites to play with.

Image files referenced below must either be in BMP format, or in any format supported by the module (e.g. PNG). Any areas coloured will appear transparent. Note, however, that collision detection is currently done simply by using the bounding boxes of the sprites -- so don't leave big borders around your images unless you want them to be really easy to hit!

Font image files, used for text rendering, must contain a 16x16 rectangular grid of characters. The font size will be computed automatically from the image size.

There are some keypresses that all Occade programs will recognise regardless of whether you've written any input code:

- Alt-Return: toggles full-screen mode on platforms that support it.
- Alt-Backspace: cause the program to `STOP` immediately.

To use this library:

`#INCLUDE "occade.module"`

A library for programming simple arcade games in occam-pi
PRI
occade.occ
34

Process priorities * Priority for buffer processes.

Process priorities * Priority for buffer processes
PRI.DISPLAY
occade.occ
38

Priority for display server.

Priority for display server
VAL INT PRI.DISPLAY
PRI.SPRITES
occade.occ
40

Priority for sprite servers.

Priority for sprite servers
VAL INT PRI.SPRITES
PRI.INPUT
occade.occ
42

Priority for input filters.

Priority for input filters
VAL INT PRI.INPUT
PRI.USER
occade.occ
44

Priority for user processes.

Priority for user processes
VAL INT PRI.USER
occade.write
occade.occ
52

Write a string to stderr. This uses direct filelib calls rather than the TLP channel interface, so it can be used anywhere in your code, which may be useful for debugging.

Write a string to stderr
VAL []BYTE

String to print

PROC occade.write (VAL []BYTE s)
occade.write.int
occade.occ
65

Write an integer to stderr. See .

Write an integer to stderr
VAL INT

Integer to print

PROC occade.write.int (VAL INT n)
occade.clamp.int
occade.occ
122

Limit an integer to a particular range. For example, if you call this with `left = 3` and `width = 3`, then the output value will be in the range `3 .. 5`. You can use this with a sprite's coordinates to limit it to a particular part of the screen.

Limit an integer to a particular range
VAL INT

Input value

VAL INT

The lowest value in the range

VAL INT

The width of the range

INT
INT FUNCTION occade.clamp.int (VAL INT in, left, width)
occade.append.string
occade.occ
159

Append a string to a string.

Append a string to a string
MOBILE []BYTE

String to append to.

VAL []BYTE

String that will be appended to `out`.

PROC occade.append.string (MOBILE []BYTE out, VAL []BYTE in)
occade.append.int
occade.occ
173

Append a number to a string.

Append a number to a string
MOBILE []BYTE

String to which the decimal representation of `n` will be appended.

VAL INT

Integer to format.

PROC occade.append.int (MOBILE []BYTE out, VAL INT n)
occade.start
occade.occ
838

Start up the display and return a handle for communicating with it. This must be the first call your program makes into the library.

Start up the display and return a handle for communicating with it
RESULT SHARED OCCADE!

Occade handle, returned for other library PROCs to use

VAL OCCADE.PARAMS

Display parameters (see )

VAL []BYTE

The application name

PROC occade.start (RESULT SHARED OCCADE! handle, VAL OCCADE.PARAMS params, VAL []BYTE app.name)
occade.load.playfield
occade.occ
855

Load an image onto the playfield at the given position. This is intended for static background images; if you want things to overlap or move around, use sprites instead.

Load an image onto the playfield at the given position
SHARED OCCADE!

Occade handle

VAL []BYTE

Image filename

VAL INT

Top left corner coordinates

PROC occade.load.playfield (SHARED OCCADE! handle, VAL []BYTE name, VAL INT x, y)
occade.draw.playfield
occade.occ
866

Draw a raster image onto the playfield at the given position.

Draw a raster image onto the playfield at the given position
SHARED OCCADE!

Occade handle

RASTER

Raster image

VAL INT

Top left corner coordinates

PROC occade.draw.playfield (SHARED OCCADE! handle, RASTER raster, VAL INT x, y)
occade.start.sprite
occade.occ
1004

Start up a new sprite and return its control interface. Sprites are graphical objects that can move around and change appearance; you should use them for any moving or changing graphical elements.

Sprites can report collisions with other sprites. So that you know which sprites have run into each other, you must give your sprites ID numbers if you want them to partiticipate in collision detection. For example, if you give your player's missile sprites the ID number 5, then you know that whenever an enemy collides with ID 5 it's been hit by a missile. (You can give more than one sprite the same ID.)

If you've got a sprite where you don't care about collisions -- for example, one that's displaying the number of lives the player has left -- then pass `-1` as the ID and Occade won't bother doing collision detection on it.

Sprites are invisible with no image loaded by default; you must set up your sprite and make it visible before you can see it on the screen.

Start up a new sprite and return its control interface
SHARED OCCADE!

Occade handle

RESULT OCCADE.SPRITE!

Control interface for the sprite

VAL INT

ID number for the sprite. If this is negative, the sprite won't participate in collision detection.

PROC occade.start.sprite (SHARED OCCADE! handle, RESULT OCCADE.SPRITE! control, VAL INT id)
occade.finish.sprite
occade.occ
1015

Make a sprite quit, and consume any remaining collision reports.

Make a sprite quit, and consume any remaining collision reports
OCCADE.SPRITE!
PROC occade.finish.sprite (OCCADE.SPRITE! sprite)
occade.start.input
occade.occ
1109

Start up a new input filter and return its control interface. Input filters look at all the events coming in to the program and pick out the ones you've told them you're interested in. You can have multiple input filters listening for the same or different events; for example, in a two-player game you might want to have an input filter for each player.

Filters don't report any events by default; you must enable the types of event you're interested in.

Start up a new input filter and return its control interface
SHARED OCCADE!

Occade handle

RESULT OCCADE.INPUT!

Control interface for the filter

PROC occade.start.input (SHARED OCCADE! handle, RESULT OCCADE.INPUT! control)
occade.finish.input
occade.occ
1119

Make an input filter quit, and consume any remaining input events.

Make an input filter quit, and consume any remaining input events
OCCADE.INPUT!
PROC occade.finish.input (OCCADE.INPUT! input)
occade.random
occade.occ
1140

Generate a random integer.

Generate a random integer
SHARED OCCADE!

Occade handle

VAL INT

Limit

RESULT INT

Number generated, in the range `0` to `max - 1`.

PROC occade.random (SHARED OCCADE! handle, VAL INT max, RESULT INT n)
occade.delay
occade.occ
1151

Wait for a period of time.

Wait for a period of time
VAL INT

The delay in microseconds

PROC occade.delay (VAL INT time)
OCCADE.TRANSPARENT.COLOUR
occade.inc
59

The colour in images that is considered transparent when drawing. RGB #EE66EE, which is a sort of pinkish purple.

The colour in images that is considered transparent when drawing
VAL [3]BYTE OCCADE.TRANSPARENT.COLOUR
OCCADE.PARAMS
occade.inc
66

Startup parameters for Occade. You should initialise this from and then just change the fields you want.

Startup parameters for Occade
DATA TYPE OCCADE.PARAMS
width
height
occade.inc
68

Screen width and height in pixels.

Screen width and height in pixels
INT
depth
occade.inc
69

Pixel depth in bits.

Pixel depth in bits
INT
occade.default.params
occade.inc
73

Default parameters for Occade.

Default parameters for Occade
VAL OCCADE.PARAMS occade.default.params
OCCADE.COLLISION
occade.inc
100

Reports of collisions between sprites.

Reports of collisions between sprites
DATA TYPE OCCADE.COLLISION
id
occade.inc
102

ID of the other sprite

ID of the other sprite
INT
x
y
occade.inc
103

Position of the other sprite

Position of the other sprite
INT
w
h
occade.inc
104

Width and height of the other sprite

Width and height of the other sprite
INT
OCCADE.SPRITE.REQ
occade.inc
108

Commands that can be sent to the sprite.

Commands that can be sent to the sprite
PROTOCOL OCCADE.SPRITE.REQ
load.image
occade.inc
112

Set the sprite's image from a file.

Set the sprite's image from a file
MOBILE []BYTE

Image filename

load.image; MOBILE []BYTE
load.raster
occade.inc
115

Set the sprite's image from a raster. Returns `return.raster`.

Set the sprite's image from a raster
RASTER

Raster image

load.raster; RASTER
load.text
occade.inc
119

Set the sprite's image by rendering text.

Set the sprite's image by rendering text
MOBILE []BYTE

String to render

MOBILE []BYTE

Font image filename

load.text; MOBILE []BYTE; MOBILE []BYTE
move
occade.inc
125

Set the sprite's position.

Set the sprite's position
INT

Coordinates

BOOL

Whether to centre the sprite on these coordinates. If this is `FALSE`, the coordinates are the top left corner of the sprite; if `TRUE`, they are the centre of the sprite.

move; INT; INT; BOOL
visible
occade.inc
127

Show or hide the sprite.

Show or hide the sprite
BOOL
visible; BOOL
collisions
occade.inc
129

Enable or disable collision reports.

Enable or disable collision reports
BOOL
collisions; BOOL
get.size
occade.inc
131

Get the size of the sprite. Returns `get.size`.

Get the size of the sprite
get.size
get.position
occade.inc
133

Get the position of the sprite. Returns `get.position`.

Get the position of the sprite
get.position
quit
occade.inc
137

Make the sprite exit. Use rather than sending this by hand, since that'll mop up any remaining collision reports too.

Make the sprite exit
quit
OCCADE.SPRITE.RESP
occade.inc
141

Responses from the sprite.

Responses from the sprite
PROTOCOL OCCADE.SPRITE.RESP
return.raster
occade.inc
144

Returning a used raster.

Returning a used raster
RASTER
return.raster; RASTER
get.size
occade.inc
147

The size of the sprite.

The size of the sprite
INT

Width and height in pixels

get.size; INT; INT
get.position
occade.inc
151

The position of the sprite.

The position of the sprite
INT

Coordinates

BOOL

Whether the sprite is centred on those coordinates

get.position; INT; INT; BOOL
OCCADE.SPRITE
occade.inc
155

Channel bundle for controlling sprites.

Channel bundle for controlling sprites
CHAN TYPE OCCADE.SPRITE
req?
occade.inc
158

Commands to the sprite.

Commands to the sprite
CHAN OCCADE.SPRITE.REQ
resp!
occade.inc
160

Responses from the sprite.

Responses from the sprite
CHAN OCCADE.SPRITE.RESP
collisions!
occade.inc
177

Reports of collisions with other sprites. You'll only get messages on this channel if you've enabled them by sending the `collisions; TRUE` command first.

Messages can arrive at any time; you must be prepared to handle them interleaved with communications on other channels, and you must be prepared to handle some collisions arriving after you disable collisions or tell the sprite to exit. (See .)

This channel comes from a limited-capacity overwriting buffer, so you will lose events (rather than deadlocking the system) if you persist in ignoring it.

Each sprite will only be told about each collision once -- once two objects are in contact with each other, no more collision reports will be sent about that pair of objects until they move apart again.

Reports of collisions with other sprites
CHAN OCCADE.COLLISION
OCCADE.INPUT.REQ
occade.inc
183

Commands that can be sent to the event filter

Commands that can be sent to the event filter
PROTOCOL OCCADE.INPUT.REQ
enable
occade.inc
187

Pick the types of events you're interested in. This should be the bitwise OR of values from .

Pick the types of events you're interested in
INT
enable; INT
quit
occade.inc
191

Close this event filter. Use rather than sending this by hand, since that'll mop up any remaining input events too.

Close this event filter
quit
OCCADE.INPUT.RESP
occade.inc
195

Responses from the event filter.

Responses from the event filter
PROTOCOL OCCADE.INPUT.RESP
OCCADE.INPUT
occade.inc
200

Channel bundle for carrying input events.

Channel bundle for carrying input events
CHAN TYPE OCCADE.INPUT
req?
occade.inc
203

Commands to the event filter.

Commands to the event filter
CHAN OCCADE.INPUT.REQ
resp!
occade.inc
205

Responses from the event filter.

Responses from the event filter
CHAN OCCADE.INPUT.RESP
events!
occade.inc
210

Input events. You won't receive any events until you turn some on using the `enable; N` command. Once you've done that, events can arrive at any time.

Input events
CHAN RASTER.EVENT
OCCADE
occade.inc
292

Channel bundle for communicating with Occade. You shouldn't use the channels inside this in your own code; you can treat the shared client end of this as an opaque "handle" for Occade PROCs to use.

Channel bundle for communicating with Occade
CHAN TYPE OCCADE
hostsp
so.close
hostunix.occ
82

Close a stream.

Before closing the stream unwritten data is flushed or any unread buffered input is discarded.

Close a stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the open stream to be closed

BYTE

equal to spr.ok if the stream closed properly; otherwise >= spr.operation.failed - refer to hostio.inc or iserver documentation for further details

PROC so.close (CHAN OF SP fs, ts, VAL INT32 streamid, BYTE result)
so.commandline
hostunix.occ
130

Return the command line passed to the server on invocation.

Return the command line passed to the server on invocation
CHAN OF SP

from server

CHAN OF SP

to server

VAL BYTE

either sp.short.commandline, remove the server's own name, its recognised options and their parameters or sp.whole.commandline, the entire command line

INT

the number of bytes returned in string, starting from string[ 0 ], being zero in the case of result >= spr.operation.failed

[]BYTE

contains the requested command line if result = spr.ok; contains a truncation of the requested command line if result = spr.buffer.overflow; is undefined otherwise. There is no restriction on the size of string.

BYTE

equal to spr.ok if the command line was successfully returned; otherwise takes on a value indicating what went wrong: spr.buffer.overflow string is not long enough to contain the command line, but the latter has been truncated to fit >=spr.operation.failed the operation failed - refer to hostio.inc or iserver documentation for further details

PROC so.commandline (CHAN OF SP fs, ts, VAL BYTE all, INT length, []BYTE string, BYTE result)
so.flush
hostunix.occ
155

Flush the specified output stream.

To flush means to write out any internally buffered data to the stream that it is associated with. The stream remains open.

Flush the specified output stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the open stream to be flushed

BYTE

equal to spr.ok stream successfully flushed; otherwise >= spr.operation.failed - see hostio.inc or iserver documentation for further details

PROC so.flush (CHAN OF SP fs, ts, VAL INT32 streamid, BYTE result)
so.getenv
hostunix.occ
216

Return the contents of an environment variable from whatever host is being used.

The largest size the returned contents of an environment variable can be is limited by the functionality of the server, not by this routine.

Return the contents of an environment variable from whatever host is being used
CHAN OF SP

from server

CHAN OF SP

to server

VAL []BYTE

a string containing the name of the desired environment variable. name should not have more than sp.max.getenvname.size characters in it.

INT

if result is spr.ok, the number of bytes in value, starting at value[ 0 ]; (SIZE value) if result is spr.buffer.overflow; zero otherwise.

[]BYTE

the contents of the environment variable, if result is spr.ok; truncated environment variable if result is spr.buffer.overflow; undefined otherwise.

BYTE

spr.ok if the environment string successfully returned; some other value otherwise, indicating the sort of problem: spr.bad.name the specified name is a null string spr.bad.packet.size (SIZE name) > sp.max.getenvname.size spr.buffer.overflow environment string too large for value; it is truncated to fit >=spr.operation.failed could not read environment string - see hostio.inc or iserver documentation for further details

PROC so.getenv (CHAN OF SP fs, ts, VAL []BYTE name, INT length, []BYTE value, BYTE result)
so.gets
hostunix.occ
281

Read a line from the specified input stream.

Characters are read until a newline sequence is found, the end of the file is reached, or the number of characters is not less than sp.max.readbuffer.size. If a newline sequence is found, it is not included in data.

Read a line from the specified input stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the open stream to be read from

INT

if result is spr.ok this is the number of bytes read; if result is spr.buffer.overflow then this will be (SIZE data) and will be less than the actual number of bytes read from the file; otherwise zero.

[]BYTE

an array of bytes holding line read if result is spr.ok; or holding a truncation of the line if result is spr.buffer.overflow. It is undefined otherwise. If result is spr.ok or spr.buffer.overflow then the bytes will be [data FROM 0 FOR bytes.read].

BYTE

equal to spr.ok if line was successfully read; otherwise takes on a value indicating what went wrong: spr.bad.packet.size data is too large, (SIZE data) > sp.max.readbuffer.size spr.buffer.overflow data not large enough to hold the line, in which case the line is truncated to fit >=spr.operation.failed the read failed, either because the end of the file has been reached or some error occurred - see hostio.inc or iserver documentation for further details

PROC so.gets (CHAN OF SP fs, ts, VAL INT32 streamid, INT bytes.read, []BYTE data, BYTE result)
so.open
hostunix.occ
345

Open a file.

No path environment variable is used to locate the file; what is in name is all that is used ( cf. so.popen.read )

Open a file
CHAN OF SP

from server

CHAN OF SP

to server

VAL []BYTE

the name of the file to be opened. The name of the file must fit exactly into name, i.e. there are (SIZE name) characters in the name of the file. A directory specification may form part of name.

VAL BYTE

either spt.binary, for a file containing raw bytes only or spt.text, for a file stored as text records separated by newlines

VAL BYTE

one of spm.input open existing file for reading spm.output open new file, or truncate existing one, for writing spm.append open new file, or append to existing one, for writing spm.existing.update open existing file for update ( reading and writing ), starting at the beginning of the file spm.new.update open new file, or truncate existing one, for update spm.append.update open new file, or append to existing one, for update When a file is opened for update then the resulting stream may be used for input and output.

INT32

if result is spr.ok, the identification number of the stream associated with the file that was opened; undefined otherwise

BYTE

spr.ok if the file was successfully opened; otherwise it takes on a value indicating what went wrong: spr.bad.packet.size name too large: (SIZE name) > sp.max.openname.size spr.bad.name null file name spr.bad.type invalid type spr.bad.mode invalid mode >=spr.operation.failed the open failed - see hostio.inc or iserver documentation for further details

PROC so.open (CHAN OF SP fs, ts, VAL []BYTE fname, VAL BYTE type, mode, INT32 streamid, BYTE result)
so.putblock
hostunix.occ
396

Write a limited number of bytes to a stream.

Write a limited number of bytes to a stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the open stream to write to

VAL []BYTE

a string of bytes ALL of which are to be written to the stream

INT

this gives the number of bytes written. If length.written <> (SIZE data) then an error occurred. 0 <= length.written <= sp.max.writebuffer.size

BYTE

if not equal to spr.bad.packet.size meaning that too many bytes were requested, ie (SIZE data) > sp.max.writebuffer.size, then it is equal to spr.ok

PROC so.putblock (CHAN OF SP fs, ts, VAL INT32 streamid, VAL []BYTE data, INT length.written, BYTE result)
so.remove
hostunix.occ
443

Delete the specified file.

No path environment variable is used; what is in name is all that is considered.

Delete the specified file
CHAN OF SP

from server

CHAN OF SP

to server

VAL []BYTE

the name of the file to be deleted; the filename must fill all of the bytes of name

BYTE

equals spr.ok if the file was removed; otherwise takes on a value indicating what went wrong: spr.bad.packet.size name too large, (SIZE name) > sp.max.removename.size spr.bad.name name is null >=spr.operation.failed the delete failed - see hostio.inc or iserver documentation for further details

PROC so.remove (CHAN OF SP fs, ts, VAL []BYTE fname, BYTE result)
so.rename
hostunix.occ
485

Rename the specified file.

Rename the specified file
CHAN OF SP

from server

CHAN OF SP

to server

VAL []BYTE

the present name of the file to be renamed

VAL []BYTE

the desired name of the file to be renamed

BYTE

equals spr.ok if the renaming was successful; otherwise takes on a value indicating what went wrong: spr.bad.packet.size the combined lengths of oldname and newname is too large - it must be less than sp.max.renamename.size spr.bad.name either or both of the filenames are null >=spr.operation.failed the renaming failed - see hostio.inc or iserver documentation for further details

PROC so.rename (CHAN OF SP fs, ts, VAL []BYTE oldfname, newfname, BYTE result)
so.seek
hostunix.occ
524

Set the file position for the specified stream.

Set the file position for the specified stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the open stream associated with the file the position of which is to be set

VAL INT32

the offset from origin of the new position for reading or writing. For a binary file the new position will be offset bytes, perhaps negative, from the position defined by origin. For a text file offset must be zero or a value returned by so.tell; in the latter case origin must be spo.start, and offset greater than or equal to zero.

VAL INT32

one of spo.start the start of the file spo.current the current position in the file spo.end the end of the file

BYTE

equal to spr.ok if the file position was successfully set; otherwise takes on a value indicating what the problem was: spr.bad.origin invalid origin >=spr.operation.failed the seek failed - see hostio.inc or iserver documentation for further details

PROC so.seek (CHAN OF SP fs, ts, VAL INT32 streamid, offset, origin, BYTE result)
so.read
hostunix.occ
565

Read an unlimited number of bytes from a stream.

Read an unlimited number of bytes from a stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the open stream to be read from

INT

this gives the number of bytes read from the file; these bytes will be [data FROM 0 FOR bytes.read]; if bytes.read <> (SIZE data) then either an error occurred or the end of the file was reached.

[]BYTE

this contains the bytes read from the file; the number of bytes requested to be read is (SIZE data).

PROC so.read (CHAN OF SP fs, ts, VAL INT32 streamid, INT bytes.read, []BYTE data)
so.write
hostunix.occ
625

Write an unlimited number of bytes to a stream.

Write an unlimited number of bytes to a stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the open stream to write to

VAL []BYTE

a string of bytes ALL of which are to be written to the file

INT

this gives the number of bytes written; if length <> (SIZE data) then an error occurred

PROC so.write (CHAN OF SP fs, ts, VAL INT32 streamid, VAL []BYTE data, INT length)
so.system
hostunix.occ
683

Execute a command on the host system.

Execute a command on the host system
CHAN OF SP

from server

CHAN OF SP

to server

VAL []BYTE

the command to be executed, which may be null

INT32

if command is not null and result is spr.ok then this is the return value of the command, which is host dependent

BYTE

equal to spr.ok if a host command processor exists; otherwise: spr.bad.packet.size command too large, (SIZE command) > sp.max.systemcommand.size >=spr.operation.failed the operation failed - see hostio.inc or iserver documentation for further details

PROC so.system (CHAN OF SP fs, ts, VAL []BYTE command, INT32 status, BYTE result)
so.tell
hostunix.occ
713

Return the current file position for the specified stream.

Return the current file position for the specified stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the open stream associated whith the file the reading/writing position of which is desired

INT32

the current file position

BYTE

equal to spr.ok if the file position determined; otherwise >= spr.operation.failed - refer to hostio.inc or iserver documentation for further details

PROC so.tell (CHAN OF SP fs, ts, VAL INT32 streamid, INT32 position, BYTE result)
so.time
hostunix.occ
737

Retrieve the local and UTC time from the host system.

Both times are expressed as the number of seconds that have elapsed since midnight on the 1st of January, 1970 UTC, and are given as unsigned INT32s.

Retrieve the local and UTC time from the host system
CHAN OF SP

from server

CHAN OF SP

to server

INT32

the local time

INT32

the Coordinated Universal Time, if available; zero if not available

PROC so.time (CHAN OF SP fs, ts, INT32 localtime, UTCtime)
so.version
hostunix.occ
757

Return identification information about the server and the host that it is running on.

If any of the information ( except result ) has the value zero then that information is not available. The parameter version cannot distinguish between e.g. 1.41 and 1.42.

Return identification information about the server and the host that it is running on
CHAN OF SP

from server

CHAN OF SP

to server

BYTE

on division by 10 this gives the version of the server

BYTE

identifies the host via sph. constants

BYTE

identifies the host environment via spo. constants

BYTE

identifies the interface board via spb. constants

PROC so.version (CHAN OF SP fs, ts, BYTE version, host, os, board)
so.exit
hostunix.occ
778

Terminate the server.

Terminate the server
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

a value which the server passes directly on to the host environment, except in the following two cases: sps.success - a host specific success result is passed on sps.failure - a host specific failure result is passed on

BYTE

equals spr.ok if the operation succeeded; otherwise >= spr.operation.failed - see hostio.inc or iserver documentation for further details

PROC so.exit (CHAN OF SP fs, ts, VAL INT32 status, BYTE result)
sp.commandline
command.occ
47

Return the command line passed to the server on invocation.

Return the command line passed to the server on invocation
CHAN OF SP

from server

CHAN OF SP

to server

VAL BYTE

either sp.short.commandline, remove the server's own name, its recognised options and their parameters or sp.whole.commandline, the entire command line

INT

the number of bytes returned in string, starting from string[ 0 ], being zero in the case of result >= spr.operation.failed

[]BYTE

contains the requested command line if result = spr.ok; contains a truncation of the requested command line if result = spr.buffer.overflow; is undefined otherwise. There is no restriction on the size of string.

BYTE

equal to spr.ok if the command line was successfully returned; otherwise takes on a value indicating what went wrong: spr.buffer.overflow string is not long enough to contain the command line, but the latter has been truncated to fit >=spr.operation.failed the operation failed - refer to hostio.inc or iserver documentation for further details

PROC sp.commandline (CHAN OF SP fs, ts, VAL BYTE all, INT length, []BYTE string, BYTE result)
sp.read
spread.occ
46

Read a limited number of bytes from a stream.

Read a limited number of bytes from a stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the open stream to be read from

INT

if result is spr.ok then this gives the number of bytes read from the file; these bytes will be [data FROM 0 FOR bytes.read]; if bytes.read <> (SIZE data) then either an error occurred or the end of the file was reached. If result is not spr.ok then bytes.read will be zero. 0 <= bytes.read <= sp.max.readbuffer.size

[]BYTE

if result is spr.ok then this contains the bytes read from the file; otherwise it is undefined. The number of bytes requested to be read is (SIZE data); the limit to this is sp.max.readbuffer.size.

BYTE

equal to spr.bad.packet.size if too many bytes asked for ie (SIZE data) > sp.max.readbuffer.size, otherwise it is equal to spr.ok

PROC sp.read (CHAN OF SP fs, ts, VAL INT32 streamid, INT bytes.read, []BYTE data, BYTE result)
sp.pollkey
pollkey.occ
38

Read a single character from the keyboard, without waiting for one if there is none.

The key is not echoed to the screen.

Read a single character from the keyboard, without waiting for one if there is none
CHAN OF SP

from server

CHAN OF SP

to server

BYTE

the key that was read

BYTE

equals spr.ok if there was a key to read and the read was successful; otherwise >= spr.operation.failed - refer to hostio.inc or iserver documentation for further details

PROC sp.pollkey (CHAN OF SP fs, ts, BYTE key, result)
sp.flush
flush.occ
39

Flush the specified output stream.

To flush means to write out any internally buffered data to the stream that it is associated with. The stream remains open.

Flush the specified output stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the open stream to be flushed

BYTE

equal to spr.ok stream successfully flushed; otherwise >= spr.operation.failed - see hostio.inc or iserver documentation for further details

PROC sp.flush (CHAN OF SP fs, ts, VAL INT32 streamid, BYTE result)
sp.system
system.occ
39

Execute a command on the host system.

Execute a command on the host system
CHAN OF SP

from server

CHAN OF SP

to server

VAL []BYTE

the command to be executed, which may be null

INT32

if command is not null and result is spr.ok then this is the return value of the command, which is host dependent

BYTE

equal to spr.ok if a host command processor exists; otherwise: spr.bad.packet.size command too large, (SIZE command) > sp.max.systemcommand.size >=spr.operation.failed the operation failed - see hostio.inc or iserver documentation for further details

PROC sp.system (CHAN OF SP fs, ts, VAL []BYTE command, INT32 status, BYTE result)
sp.seek
seek.occ
46

Set the file position for the specified stream.

Set the file position for the specified stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the open stream associated with the file the position of which is to be set

VAL INT32

the offset from origin of the new position for reading or writing. For a binary file the new position will be offset bytes, perhaps negative, from the position defined by origin. For a text file offset must be zero or a value returned by so.tell; in the latter case origin must be spo.start, and offset greater than or equal to zero.

VAL INT32

one of spo.start the start of the file spo.current the current position in the file spo.end the end of the file

BYTE

equal to spr.ok if the file position was successfully set; otherwise takes on a value indicating what the problem was: spr.bad.origin invalid origin >=spr.operation.failed the seek failed - see hostio.inc or iserver documentation for further details

PROC sp.seek (CHAN OF SP fs, ts, VAL INT32 streamid, offset, origin, BYTE result)
sp.getenv
getenv.occ
53

Return the contents of an environment variable from whatever host is being used.

The largest size the returned contents of an environment variable can be is limited by the functionality of the server, not by this routine.

Return the contents of an environment variable from whatever host is being used
CHAN OF SP

from server

CHAN OF SP

to server

VAL []BYTE

a string containing the name of the desired environment variable. name should not have more than sp.max.getenvname.size characters in it.

INT

if result is spr.ok, the number of bytes in value, starting at value[ 0 ]; (SIZE value) if result is spr.buffer.overflow; zero otherwise.

[]BYTE

the contents of the environment variable, if result is spr.ok; truncated environment variable if result is spr.buffer.overflow; undefined otherwise.

BYTE

spr.ok if the environment string successfully returned; some other value otherwise, indicating the sort of problem: spr.bad.name the specified name is a null string spr.bad.packet.size (SIZE name) > sp.max.getenvname.size spr.buffer.overflow environment string too large for value; it is truncated to fit >=spr.operation.failed could not read environment string - see hostio.inc or iserver documentation for further details

PROC sp.getenv (CHAN OF SP fs, ts, VAL []BYTE name, INT length, []BYTE value, BYTE result)
sp.getkey
getkey.occ
38

Read a single character from the keyboard, waiting for one if there is none.

The key is not echoed to the screen.

Read a single character from the keyboard, waiting for one if there is none
CHAN OF SP

from server

CHAN OF SP

to server

BYTE

the key that was read

BYTE

equals spr.ok if the read was successful; otherwise >= spr.operation.failed - see hostio.inc or iserver documentation for further details

PROC sp.getkey (CHAN OF SP fs, ts, BYTE key, result)
sp.write
spwrite.occ
41

Write a limited number of bytes to a stream.

Write a limited number of bytes to a stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the open stream to write to

VAL []BYTE

a string of bytes ALL of which are to be written to the stream

INT

this gives the number of bytes written. If length.written <> (SIZE data) then an error occurred. 0 <= length.written <= sp.max.writebuffer.size

BYTE

if not equal to spr.bad.packet.size meaning that too many bytes were requested, ie (SIZE data) > sp.max.writebuffer.size, then it is equal to spr.ok

PROC sp.write (CHAN OF SP fs, ts, VAL INT32 streamid, VAL []BYTE data, INT length.written, BYTE result)
sp.remove
remove.occ
41

Delete the specified file.

No path environment variable is used; what is in name is all that is considered.

Delete the specified file
CHAN OF SP

from server

CHAN OF SP

to server

VAL []BYTE

the name of the file to be deleted; the filename must fill all of the bytes of name

BYTE

equals spr.ok if the file was removed; otherwise takes on a value indicating what went wrong: spr.bad.packet.size name too large, (SIZE name) > sp.max.removename.size spr.bad.name name is null >=spr.operation.failed the delete failed - see hostio.inc or iserver documentation for further details

PROC sp.remove (CHAN OF SP fs, ts, VAL []BYTE name, BYTE result)
sp.time
time.occ
43

Retrieve the local and UTC time from the host system.

Both times are expressed as the number of seconds that have elapsed since midnight on the 1st of January, 1970, and are given as unsigned INT32s UTC time used to be known as Greenwich Mean Time ( GMT )

Retrieve the local and UTC time from the host system
CHAN OF SP

from server

CHAN OF SP

to server

INT32

the local time

INT32

the Coordinated Universal Time, if available; zero if not available

BYTE

spr.ok if operation successful; otherwise >= spr.operation.failed - refer to hostio.inc or iserver documentation for details

PROC sp.time (CHAN OF SP fs, ts, INT32 localtime, UTCtime, BYTE result)
so.time
time.occ
79

Retrieve the local and UTC time from the host system.

Both times are expressed as the number of seconds that have elapsed since midnight on the 1st of January, 1970, and are given as unsigned INT32s UTC time used to be known as Greenwich Mean Time ( GMT )

Retrieve the local and UTC time from the host system
CHAN OF SP

from server

CHAN OF SP

to server

INT32

the local time

INT32

the Coordinated Universal Time, if available; zero if not available

PROC so.time (CHAN OF SP fs, ts, INT32 localtime, UTCtime)
sp.tell
tell.occ
38

Return the current file position for the specified stream.

Return the current file position for the specified stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the open stream associated whith the file the reading/writing position of which is desired

INT32

the current file position

BYTE

equal to spr.ok if the file position determined; otherwise >= spr.operation.failed - refer to hostio.inc or iserver documentation for further details

PROC sp.tell (CHAN OF SP fs, ts, VAL INT32 streamid, INT32 position, BYTE result)
sp.open
open.occ
60

Open a file.

No path environment variable is used to locate the file; what is in name is all that is used ( cf. so.popen.read )

Open a file
CHAN OF SP

from server

CHAN OF SP

to server

VAL []BYTE

the name of the file to be opened. The name of the file must fit exactly into name, i.e. there are (SIZE name) characters in the name of the file. A directory specification may form part of name.

VAL BYTE

either spt.binary, for a file containing raw bytes only or spt.text, for a file stored as text records separated by newlines

VAL BYTE

one of spm.input open existing file for reading spm.output open new file, or truncate existing one, for writing spm.append open new file, or append to existing one, for writing spm.existing.update open existing file for update ( reading and writing ), starting at the beginning of the file spm.new.update open new file, or truncate existing one, for update spm.append.update open new file, or append to existing one, for update When a file is opened for update then the resulting stream may be used for input and output.

INT32

if result is spr.ok, the identification number of the stream associated with the file that was opened; undefined otherwise

BYTE

spr.ok if the file was successfully opened; otherwise it takes on a value indicating what went wrong: spr.bad.packet.size name too large: (SIZE name) > sp.max.openname.size spr.bad.name null file name spr.bad.type invalid type spr.bad.mode invalid mode >=spr.operation.failed the open failed - see hostio.inc or iserver documentation for further details

PROC sp.open (CHAN OF SP fs, ts, VAL []BYTE name, VAL BYTE type, mode, INT32 streamid, BYTE result)
sp.gets
gets.occ
60

Read a line from the specified input stream.

Characters are read until a newline sequence is found, the end of the file is reached, or the number of characters is not less than sp.max.readbuffer.size. If a newline sequence is found, it is not included in data.

Read a line from the specified input stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the open stream to be read from

INT

if result is spr.ok this is the number of bytes read; if result is spr.buffer.overflow then this will be (SIZE data) and will be less than the actual number of bytes read from the file; otherwise zero.

[]BYTE

an array of bytes holding line read if result is spr.ok; or holding a truncation of the line if result is spr.buffer.overflow. It is undefined otherwise. If result is spr.ok or spr.buffer.overflow then the bytes will be [data FROM 0 FOR bytes.read].

BYTE

equal to spr.ok if line was successfully read; otherwise takes on a value indicating what went wrong: spr.bad.packet.size data is too large, (SIZE data) > sp.max.readbuffer.size spr.buffer.overflow data not large enough to hold the line, in which case the line is truncated to fit >=spr.operation.failed the read failed, either because the end of the file has been reached or some error occurred - see hostio.inc or iserver documentation for further details

PROC sp.gets (CHAN OF SP fs, ts, VAL INT32 streamid, INT bytes.read, []BYTE data, BYTE result)
sp.close
close.occ
39

Close a stream.

Before closing the stream unwritten data is flushed or any unread buffered input is discarded.

Close a stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the open stream to be closed

BYTE

equal to spr.ok if the stream closed properly; otherwise >= spr.operation.failed - refer to hostio.inc or iserver documentation for further details

PROC sp.close (CHAN OF SP fs, ts, VAL INT32 streamid, BYTE result)
sp.rename
rename.occ
40

Rename the specified file.

Rename the specified file
CHAN OF SP

from server

CHAN OF SP

to server

VAL []BYTE

the present name of the file to be renamed

VAL []BYTE

the desired name of the file to be renamed

BYTE

equals spr.ok if the renaming was successful; otherwise takes on a value indicating what went wrong: spr.bad.packet.size the combined lengths of oldname and newname is too large - it must be less than sp.max.renamename.size spr.bad.name either or both of the filenames are null >=spr.operation.failed the renaming failed - see hostio.inc or iserver documentation for further details

PROC sp.rename (CHAN OF SP fs, ts, VAL []BYTE oldname, newname, BYTE result)
sp.exit
exit.occ
38

Terminate the server.

Terminate the server
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

a value which the server passes directly on to the host environment, except in the following two cases: sps.success - a host specific success result is passed on sps.failure - a host specific failure result is passed on

BYTE

equals spr.ok if the operation succeeded; otherwise >= spr.operation.failed - see hostio.inc or iserver documentation for further details

PROC sp.exit (CHAN OF SP fs, ts, VAL INT32 status, BYTE result)
so.exit
exit.occ
67

Terminate the server.

Terminate the server
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

a value which the server passes directly on to the host environment, except in the following two cases: sps.success - a host specific success result is passed on sps.failure - a host specific failure result is passed on

PROC so.exit (CHAN OF SP fs, ts, VAL INT32 status)
rastertext

Support for drawing text onto a raster.

Support for drawing text onto a raster
FONT.6X13
font6x13.inc
11

6-by-13 pixel bitmap font for use with . This is the X11 6x13 font.

6-by-13 pixel bitmap font for use with
VAL []INT FONT.6X13
measure.text
text.occ
33

Measure the dimensions of some text. This will return the amount of space that the text will occupy when drawn using in the given font.

Measure the dimensions of some text
VAL []BYTE

String

VAL []INT

Font

INT

Dimensions of the text in pixels

INT, INT FUNCTION measure.text (VAL []BYTE text, VAL []INT font)
draw.text
text.occ
45

Draw a string on a raster.

Draw a string on a raster
VAL INT

Top left corner coordinates

VAL []BYTE

String to draw

VAL []INT

Font

VAL INT

Colour

[][]INT

Raster

PROC draw.text (VAL INT x, y, VAL []BYTE text, VAL []INT font, VAL INT colour, [][]INT raster)
FONT.10X20
font10x20.inc
11

10-by-20 pixel bitmap font for use with . This is the X11 10x20 font.

10-by-20 pixel bitmap font for use with
VAL []INT FONT.10X20
raster

Basic raster graphics support. This module provides basic data types for two-dimensional bitmap ("raster") graphics. To display graphics, you'll want to use a module like .

Basic raster graphics support
RASTER
raster.inc
44

A bitmap image.

This is really a `MOBILE [][]INT`, with the first dimension being the Y coordinate and the second the X coordinate. Each element represents an RGB-colourspace pixel in `#AARRGGBB` format, with eight bits for each of red, green, blue and alpha. (Most things ignore the alpha component.)

The pixel representation uses the native endianism, so if you retype it to an array of `BYTE`s then the order of the components will vary between platforms.

It's sometimes useful to have a sentinel value of this type (for example, to use as a poison value in process networks); a zero-by-zero raster can be used for this purpose (`MOBILE [0][0]INT`).

A bitmap image
DATA TYPE RASTER
RASTER.EVENT
raster.inc
49

An input event.

An input event
DATA TYPE RASTER.EVENT
type
raster.inc
52

What type of event this is -- one of .

What type of event this is -- one of
INT
id
raster.inc
59

Identifier.

- For keyboard events, this is the key symbol -- a Unicode character, or one of the SDL constants for special keys (, etc.).
- For mouse button events, this is the mouse button number (, etc.).
Identifier
INT
mod
raster.inc
63

Modifier keys.

- For keyboard and mouse button events, this is the modifier state -- a combination of the SDL modifier constants (, etc.).
Modifier keys
INT
x
y
raster.inc
66

Pointer coordinates.

- For mouse events, this is the pointer position.
Pointer coordinates
INT16
RASTER.ET
raster.inc
70

Input event types.

Input event types
RASTER.ET.SHUTDOWN
raster.inc
74

The event channel is shutting down. This will always be the last event you receive.

The event channel is shutting down
VAL INT RASTER.ET.SHUTDOWN
RASTER.ET.QUIT
raster.inc
75

Window closed

Window closed
VAL INT RASTER.ET.QUIT
RASTER.ET.KEYDOWN
raster.inc
76

Key down

Key down
VAL INT RASTER.ET.KEYDOWN
RASTER.ET.KEYUP
raster.inc
77

Key up

Key up
VAL INT RASTER.ET.KEYUP
RASTER.ET.MOUSEBUTTONDOWN
raster.inc
78

Mouse button down

Mouse button down
VAL INT RASTER.ET.MOUSEBUTTONDOWN
RASTER.ET.MOUSEBUTTONUP
raster.inc
79

Mouse button up

Mouse button up
VAL INT RASTER.ET.MOUSEBUTTONUP
RASTER.ET.MOUSEMOTION
raster.inc
80

Mouse motion

Mouse motion
VAL INT RASTER.ET.MOUSEMOTION
RASTER.ET.EXPOSE
raster.inc
81

Window exposure

Window exposure
VAL INT RASTER.ET.EXPOSE
convert
REAL32TOSTRING
r32strta.occ
90

Take a binary representation of a real number and convert it into a string of characters that is the decimal representation of that number, formatted according to given rules ( see Notes below ).

Rounding mode is round to nearest. Which format is used depends on the combination of values of Ip, Dp and X. In all cases, any digits beyond the 9th significant digit for single precision or 17th significant digit for double precision will be given as 0 and cannot be considered accurate. If string overflows this routine acts as an invalid process.

Case (i): Ip = 0, Dp = 0 => free format Where possible a fixed point representation is used. If it is not used then exponential form is used. It is not used if more than 9 | 17 significant digits of accuracy ( single | double ) would be required before the decimal point, or if there are more than 3 zeroes after the decimal point before the first significant digit. In any case, the maximum number of characters returned in string is 15 for a single precision X, and 24 for a double precision X. string is left justified. If X is infinity or a NaN, then the string will contain one of "Inf", "-Inf" or "NaN", but not the quotes.

Case (ii): Ip = 0, Dp > 0 => exponential format The form of exponential format is, firstly either a minus sign or a space ( this latter instead of an explicit plus sign ), a fraction in the form <digit>.<digits>, the exponential symbol ( E ), the sign of the exponent ( + or - ), then the exponent, which is two digits for a single precision X, three digits for a double precision X. Dp gives the number of digits in the fraction ( 1 before the point, and the others after, but not counting the point ). The total number of characters in string is ( Dp + 6 ) for a single precision X, and ( Dp + 7 ) for a double precision X.

If Dp = 1 then the fraction is of the form <space>digit ( which, note, will not result in occam syntax for the real ). If X is infinity or a NaN, then the string will contain one of " Inf", "-Inf" or " NaN", but not the quotes, padded on the right to fill the field width.

Case (iii): Ip > 0, Dp > 0 => fixed point if possible Ip gives the number of places before the point, not counting the sign place; Dp the number of places after the point. Padding spaces are added on the left as necessary. If the number will not fit the format, then an exponential format is used with the same field width as the fixed point representation would have had. If Ip and Dp are very small then an exponential representation may not fit in the field width so the special value "Ov" with a sign is returned. There are always ( Ip + Dp + 2 ) characters in string, the 2 being the decimal point and the sign ( - or space ). If X is infinity or a NaN, then the string will contain one of " Inf", "-Inf" or " NaN", but not the quotes, padded on the right to fill the field width.

All other combinations of Ip and Dp are meaningless and will cause an error.

Take a binary representation of a real number and convert it into a string of characters that is the decimal representation of that number, formatted according to given rules ( see Notes below )
INT

the number of characters ( BYTEs ) of string occupied by the formatted decimal representation of the real number

[]BYTE

an array containing the formatted decimal representation of the real number in the first len bytes, the remaining bytes being undefined

VAL REAL32

the real number, in IEEE format, to be converted

VAL INT

the first of two formatting values

VAL INT

the second of two formatting values

PROC REAL32TOSTRING (INT len, []BYTE string, VAL REAL32 X, VAL INT Ip, Dp)
STRINGTOREAL32
strr32ta.occ
44

Converts BYTE array string into a REAL32 number X

If the value represented by string overflows the REAL32 range then an appropriately signed infinity is returned in X. If the absolute value represented by string is in the range 2^-149 to just less than 2^-126, then a denormalised number is returned. If the absolute value represented by string is less than 2^-149 then zero is returned. If the syntax of string is incorrect then not only is Error set to TRUE, but a Not-a-Number ( NaN ) is returned for X. If there remain characters after the end of the longest correct string, although Error is set to TRUE, X is returned with the value of the correct part of string

Converts BYTE array string into a REAL32 number X
BOOL

TRUE if the syntax of string is not correct occam, or if there are any characters after the end of the longest correct string; otherwise it is FALSE

REAL32

the binary representation in IEEE single precision format of the real decimal in string

VAL []BYTE

a sequence of ASCII characters

PROC STRINGTOREAL32 (BOOL Error, REAL32 X, VAL []BYTE string)
STRINGTOINT16
int16ta.occ
51

Convert to an INT16 the value represented by string.

A plus ( + ) or a minus ( - ) sign is allowed in the first position of string. An illegal character is any non-numeric character, other than + or - in the first position.

Convert to an INT16 the value represented by string
BOOL

TRUE if the value of string overflows the INT16 range; TRUE if there are any illegal characters in string; FALSE otherwise

INT16

if the value that string represents does not overflow the INT16 range then n is the INT16 that string represents, with the convention that n is zero if string is empty; otherwise n will be the value of the portion of string up to any illegal character, where n is zero if an illegal character is in the first position of string, or if the INT16 range overflows n will contain the low order bits of the binary representation of string

VAL []BYTE

the characters that are to be converted to an INT16

PROC STRINGTOINT16 (BOOL Error, INT16 n, VAL []BYTE string)
REAL64TOSTRING
r64strta.occ
93

Take a binary representation of a real number and convert it into a string of characters that is the decimal representation of that number, formatted according to given rules ( see Notes below ).

Rounding mode is round to nearest. Which format is used depends on the combination of values of Ip, Dp and X. In all cases, any digits beyond the 9th significant digit for single precision or 17th significant digit for double precision will be given as 0 and cannot be considered accurate. If string overflows this routine acts as an invalid process.

Case (i): Ip = 0, Dp = 0 => free format Where possible a fixed point representation is used. If it is not used then exponential form is used. It is not used if more than 9 | 17 significant digits of accuracy ( single | double ) would be required before the decimal point, or if there are more than 3 zeroes after the decimal point before the first significant digit. In any case, the maximum number of characters returned in string is 15 for a single precision X, and 24 for a double precision X. string is left justified. If X is infinity or a NaN, then the string will contain one of "Inf", "-Inf" or "NaN", but not the quotes.

Case (ii): Ip = 0, Dp > 0 => exponential format The form of exponential format is, firstly either a minus sign or a space ( this latter instead of an explicit plus sign ), a fraction in the form <digit>.<digits>, the exponential symbol ( E ), the sign of the exponent ( + or - ), then the exponent, which is two digits for a single precision X, three digits for a double precision X. Dp gives the number of digits in the fraction ( 1 before the point, and the others after, but not counting the point ). The total number of characters in string is ( Dp + 6 ) for a single precision X, and ( Dp + 7 ) for a double precision X. If Dp = 1 then the fraction is of the form <space>digit ( which, note, will not result in occam syntax for the real ). If X is infinity or a NaN, then the string will contain one of " Inf", "-Inf" or " NaN", but not the quotes, padded on the right to fill the field width.

Case (iii): Ip > 0, Dp > 0 => fixed point if possible Ip gives the number of places before the point, not counting the sign place; Dp the number of places after the point. Padding spaces are added on the left as necessary. If the number will not fit the format, then an exponential format is used with the same field width as the fixed point representation would have had. If Ip and Dp are very small then an exponential representation may not fit in the field width so the special value "Ov" with a sign is returned. There are always ( Ip + Dp + 2 ) characters in string, the 2 being the decimal point and the sign ( - or space ). If X is infinity or a NaN, then the string will contain one of " Inf", "-Inf" or " NaN", but not the quotes, padded on the right to fill the field width.

All other combinations of Ip and Dp are meaningless and will cause an error.

Take a binary representation of a real number and convert it into a string of characters that is the decimal representation of that number, formatted according to given rules ( see Notes below )
INT

the number of characters ( BYTEs ) of string occupied by the formatted decimal representation of the real number

[]BYTE

an array containing the formatted decimal representation of the real number in the first len bytes, the remaining bytes being undefined

VAL REAL64

the real number, in IEEE format, to be converted

VAL INT

the first of two formatting values

VAL INT

the second of two formatting values

PROC REAL64TOSTRING (INT len, []BYTE string, VAL REAL64 X, VAL INT Ip, Dp)
STRINGTOREAL64
strr64ta.occ
49

Converts BYTE array string into a REAL64 number X

A sign may start string. If the value represented by string overflows the REAL64 range then an appropriately signed infinity is returned in X. If the absolute value represented by string is in the range 2^-1074 to just less than 2^-1022, then a denormalised number is returned. If the absolute value represented by string is less than 2^-1074 then zero is returned. If the syntax of string is incorrect then not only is Error set to TRUE, but a Not-a-Number ( NaN ) is returned for X. If there remain characters after the end of the longest correct string, although Error is set to TRUE, X is returned with the value of the correct part of string

Converts BYTE array string into a REAL64 number X
BOOL

TRUE if the syntax of string is not correct occam, or if there are any characters after the end of the longest correct string; otherwise it is FALSE

REAL64

the binary representation in IEEE double precision format of the real decimal in string

VAL []BYTE

a sequence of ASCII characters

PROC STRINGTOREAL64 (BOOL Error, REAL64 X, VAL []BYTE string)
cif

C interface to the scheduler.

This module should be used by occam programs that want to make CIF calls into C code. It doesn't (currently) provide any definitions itself, but using this module will make sure that CIF support is enabled in your occam implementation.

C interface to the scheduler
occSDLsound

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

Interface to foreign library occSDLsound
SOUND.VER.MAJOR
occSDLsound.inc
16

Foreign int constant SOUND_VER_MAJOR.

Foreign int constant SOUND_VER_MAJOR
VAL INT SOUND.VER.MAJOR
SOUND.VER.MINOR
occSDLsound.inc
18

Foreign int constant SOUND_VER_MINOR.

Foreign int constant SOUND_VER_MINOR
VAL INT SOUND.VER.MINOR
SOUND.VER.PATCH
occSDLsound.inc
20

Foreign int constant SOUND_VER_PATCH.

Foreign int constant SOUND_VER_PATCH
VAL INT SOUND.VER.PATCH
Sound.SampleFlags
occSDLsound.inc
22

Foreign enumeration Sound_SampleFlags.

Foreign enumeration Sound_SampleFlags
Sound.AudioInfo
occSDLsound.inc
31

Foreign structure pointer type Sound_AudioInfo.

Foreign structure pointer type Sound_AudioInfo
DATA TYPE Sound.AudioInfo
create.Sound.AudioInfo
occSDLsound.inc
36

Allocate foreign structure Sound.AudioInfo.

Allocate foreign structure Sound.AudioInfo
RESULT Sound.AudioInfo

Pointer to newly-allocated structure.

INLINE PROC create.Sound.AudioInfo (RESULT Sound.AudioInfo ptr)
delete.Sound.AudioInfo
occSDLsound.inc
42

Free foreign structure Sound.AudioInfo.

Free foreign structure Sound.AudioInfo
Sound.AudioInfo

Pointer to structure to free.

INLINE PROC delete.Sound.AudioInfo (Sound.AudioInfo ptr)
get.Sound.AudioInfo.format
occSDLsound.inc
49

Get value of member format of foreign structure Sound.AudioInfo.

Get value of member format of foreign structure Sound.AudioInfo
RESULT INT16

Contents of the member format.

VAL Sound.AudioInfo

Pointer to foreign structure Sound.AudioInfo.

INLINE PROC get.Sound.AudioInfo.format (RESULT INT16 value, VAL Sound.AudioInfo ptr)
set.Sound.AudioInfo.format
occSDLsound.inc
56

Set value of member format of foreign structure Sound.AudioInfo.

Set value of member format of foreign structure Sound.AudioInfo
VAL INT16

New contents of the member format.

VAL Sound.AudioInfo

Pointer to foreign structure Sound.AudioInfo.

INLINE PROC set.Sound.AudioInfo.format (VAL INT16 value, VAL Sound.AudioInfo ptr)
get.Sound.AudioInfo.channels
occSDLsound.inc
63

Get value of member channels of foreign structure Sound.AudioInfo.

Get value of member channels of foreign structure Sound.AudioInfo
RESULT BYTE

Contents of the member channels.

VAL Sound.AudioInfo

Pointer to foreign structure Sound.AudioInfo.

INLINE PROC get.Sound.AudioInfo.channels (RESULT BYTE value, VAL Sound.AudioInfo ptr)
set.Sound.AudioInfo.channels
occSDLsound.inc
70

Set value of member channels of foreign structure Sound.AudioInfo.

Set value of member channels of foreign structure Sound.AudioInfo
VAL BYTE

New contents of the member channels.

VAL Sound.AudioInfo

Pointer to foreign structure Sound.AudioInfo.

INLINE PROC set.Sound.AudioInfo.channels (VAL BYTE value, VAL Sound.AudioInfo ptr)
get.Sound.AudioInfo.rate
occSDLsound.inc
77

Get value of member rate of foreign structure Sound.AudioInfo.

Get value of member rate of foreign structure Sound.AudioInfo
RESULT INT

Contents of the member rate.

VAL Sound.AudioInfo

Pointer to foreign structure Sound.AudioInfo.

INLINE PROC get.Sound.AudioInfo.rate (RESULT INT value, VAL Sound.AudioInfo ptr)
set.Sound.AudioInfo.rate
occSDLsound.inc
84

Set value of member rate of foreign structure Sound.AudioInfo.

Set value of member rate of foreign structure Sound.AudioInfo
VAL INT

New contents of the member rate.

VAL Sound.AudioInfo

Pointer to foreign structure Sound.AudioInfo.

INLINE PROC set.Sound.AudioInfo.rate (VAL INT value, VAL Sound.AudioInfo ptr)
Sound.DecoderInfo
occSDLsound.inc
89

Foreign structure pointer type Sound_DecoderInfo.

Foreign structure pointer type Sound_DecoderInfo
DATA TYPE Sound.DecoderInfo
create.Sound.DecoderInfo
occSDLsound.inc
94

Allocate foreign structure Sound.DecoderInfo.

Allocate foreign structure Sound.DecoderInfo
RESULT Sound.DecoderInfo

Pointer to newly-allocated structure.

INLINE PROC create.Sound.DecoderInfo (RESULT Sound.DecoderInfo ptr)
delete.Sound.DecoderInfo
occSDLsound.inc
100

Free foreign structure Sound.DecoderInfo.

Free foreign structure Sound.DecoderInfo
Sound.DecoderInfo

Pointer to structure to free.

INLINE PROC delete.Sound.DecoderInfo (Sound.DecoderInfo ptr)
get.Sound.DecoderInfo.extensions
occSDLsound.inc
107

Get value of member extensions of foreign structure Sound.DecoderInfo.

Get value of member extensions of foreign structure Sound.DecoderInfo
RESULT BYTE

Contents of the member extensions.

VAL Sound.DecoderInfo

Pointer to foreign structure Sound.DecoderInfo.

INLINE PROC get.Sound.DecoderInfo.extensions (RESULT BYTE value, VAL Sound.DecoderInfo ptr)
set.Sound.DecoderInfo.extensions
occSDLsound.inc
114

Set value of member extensions of foreign structure Sound.DecoderInfo.

Set value of member extensions of foreign structure Sound.DecoderInfo
VAL BYTE

New contents of the member extensions.

VAL Sound.DecoderInfo

Pointer to foreign structure Sound.DecoderInfo.

INLINE PROC set.Sound.DecoderInfo.extensions (VAL BYTE value, VAL Sound.DecoderInfo ptr)
get.Sound.DecoderInfo.description
occSDLsound.inc
121

Get value of member description of foreign structure Sound.DecoderInfo.

Get value of member description of foreign structure Sound.DecoderInfo
RESULT BYTE

Contents of the member description.

VAL Sound.DecoderInfo

Pointer to foreign structure Sound.DecoderInfo.

INLINE PROC get.Sound.DecoderInfo.description (RESULT BYTE value, VAL Sound.DecoderInfo ptr)
set.Sound.DecoderInfo.description
occSDLsound.inc
128

Set value of member description of foreign structure Sound.DecoderInfo.

Set value of member description of foreign structure Sound.DecoderInfo
VAL BYTE

New contents of the member description.

VAL Sound.DecoderInfo

Pointer to foreign structure Sound.DecoderInfo.

INLINE PROC set.Sound.DecoderInfo.description (VAL BYTE value, VAL Sound.DecoderInfo ptr)
get.Sound.DecoderInfo.author
occSDLsound.inc
135

Get value of member author of foreign structure Sound.DecoderInfo.

Get value of member author of foreign structure Sound.DecoderInfo
RESULT BYTE

Contents of the member author.

VAL Sound.DecoderInfo

Pointer to foreign structure Sound.DecoderInfo.

INLINE PROC get.Sound.DecoderInfo.author (RESULT BYTE value, VAL Sound.DecoderInfo ptr)
set.Sound.DecoderInfo.author
occSDLsound.inc
142

Set value of member author of foreign structure Sound.DecoderInfo.

Set value of member author of foreign structure Sound.DecoderInfo
VAL BYTE

New contents of the member author.

VAL Sound.DecoderInfo

Pointer to foreign structure Sound.DecoderInfo.

INLINE PROC set.Sound.DecoderInfo.author (VAL BYTE value, VAL Sound.DecoderInfo ptr)
get.Sound.DecoderInfo.url
occSDLsound.inc
149

Get value of member url of foreign structure Sound.DecoderInfo.

Get value of member url of foreign structure Sound.DecoderInfo
RESULT BYTE

Contents of the member url.

VAL Sound.DecoderInfo

Pointer to foreign structure Sound.DecoderInfo.

INLINE PROC get.Sound.DecoderInfo.url (RESULT BYTE value, VAL Sound.DecoderInfo ptr)
set.Sound.DecoderInfo.url
occSDLsound.inc
156

Set value of member url of foreign structure Sound.DecoderInfo.

Set value of member url of foreign structure Sound.DecoderInfo
VAL BYTE

New contents of the member url.

VAL Sound.DecoderInfo

Pointer to foreign structure Sound.DecoderInfo.

INLINE PROC set.Sound.DecoderInfo.url (VAL BYTE value, VAL Sound.DecoderInfo ptr)
Sound.Sample
occSDLsound.inc
161

Foreign structure pointer type Sound_Sample.

Foreign structure pointer type Sound_Sample
DATA TYPE Sound.Sample
create.Sound.Sample
occSDLsound.inc
166

Allocate foreign structure Sound.Sample.

Allocate foreign structure Sound.Sample
RESULT Sound.Sample

Pointer to newly-allocated structure.

INLINE PROC create.Sound.Sample (RESULT Sound.Sample ptr)
delete.Sound.Sample
occSDLsound.inc
172

Free foreign structure Sound.Sample.

Free foreign structure Sound.Sample
Sound.Sample

Pointer to structure to free.

INLINE PROC delete.Sound.Sample (Sound.Sample ptr)
get.Sound.Sample.decoder
occSDLsound.inc
179

Get value of member decoder of foreign structure Sound.Sample.

Get value of member decoder of foreign structure Sound.Sample
RESULT Sound.DecoderInfo

Contents of the member decoder.

VAL Sound.Sample

Pointer to foreign structure Sound.Sample.

INLINE PROC get.Sound.Sample.decoder (RESULT Sound.DecoderInfo value, VAL Sound.Sample ptr)
get.Sound.Sample.desired
occSDLsound.inc
186

Get value of member desired of foreign structure Sound.Sample.

Get value of member desired of foreign structure Sound.Sample
RESULT Sound.AudioInfo

Contents of the member desired.

VAL Sound.Sample

Pointer to foreign structure Sound.Sample.

INLINE PROC get.Sound.Sample.desired (RESULT Sound.AudioInfo value, VAL Sound.Sample ptr)
get.Sound.Sample.actual
occSDLsound.inc
193

Get value of member actual of foreign structure Sound.Sample.

Get value of member actual of foreign structure Sound.Sample
RESULT Sound.AudioInfo

Contents of the member actual.

VAL Sound.Sample

Pointer to foreign structure Sound.Sample.

INLINE PROC get.Sound.Sample.actual (RESULT Sound.AudioInfo value, VAL Sound.Sample ptr)
get.Sound.Sample.buffer
occSDLsound.inc
200

Get value of member buffer of foreign structure Sound.Sample.

Get value of member buffer of foreign structure Sound.Sample
RESULT INT

Contents of the member buffer.

VAL Sound.Sample

Pointer to foreign structure Sound.Sample.

INLINE PROC get.Sound.Sample.buffer (RESULT INT value, VAL Sound.Sample ptr)
set.Sound.Sample.buffer
occSDLsound.inc
207

Set value of member buffer of foreign structure Sound.Sample.

Set value of member buffer of foreign structure Sound.Sample
VAL INT

New contents of the member buffer.

VAL Sound.Sample

Pointer to foreign structure Sound.Sample.

INLINE PROC set.Sound.Sample.buffer (VAL INT value, VAL Sound.Sample ptr)
get.Sound.Sample.buffer.size
occSDLsound.inc
214

Get value of member buffer.size of foreign structure Sound.Sample.

Get value of member buffer.size of foreign structure Sound.Sample
RESULT INT

Contents of the member buffer.size.

VAL Sound.Sample

Pointer to foreign structure Sound.Sample.

INLINE PROC get.Sound.Sample.buffer.size (RESULT INT value, VAL Sound.Sample ptr)
set.Sound.Sample.buffer.size
occSDLsound.inc
221

Set value of member buffer.size of foreign structure Sound.Sample.

Set value of member buffer.size of foreign structure Sound.Sample
VAL INT

New contents of the member buffer.size.

VAL Sound.Sample

Pointer to foreign structure Sound.Sample.

INLINE PROC set.Sound.Sample.buffer.size (VAL INT value, VAL Sound.Sample ptr)
get.Sound.Sample.flags
occSDLsound.inc
228

Get value of member flags of foreign structure Sound.Sample.

Get value of member flags of foreign structure Sound.Sample
RESULT Sound.SampleFlags

Contents of the member flags.

VAL Sound.Sample

Pointer to foreign structure Sound.Sample.

INLINE PROC get.Sound.Sample.flags (RESULT Sound.SampleFlags value, VAL Sound.Sample ptr)
Sound.Version
occSDLsound.inc
233

Foreign structure pointer type Sound_Version.

Foreign structure pointer type Sound_Version
DATA TYPE Sound.Version
create.Sound.Version
occSDLsound.inc
238

Allocate foreign structure Sound.Version.

Allocate foreign structure Sound.Version
RESULT Sound.Version

Pointer to newly-allocated structure.

INLINE PROC create.Sound.Version (RESULT Sound.Version ptr)
delete.Sound.Version
occSDLsound.inc
244

Free foreign structure Sound.Version.

Free foreign structure Sound.Version
Sound.Version

Pointer to structure to free.

INLINE PROC delete.Sound.Version (Sound.Version ptr)
get.Sound.Version.major
occSDLsound.inc
251

Get value of member major of foreign structure Sound.Version.

Get value of member major of foreign structure Sound.Version
RESULT INT

Contents of the member major.

VAL Sound.Version

Pointer to foreign structure Sound.Version.

INLINE PROC get.Sound.Version.major (RESULT INT value, VAL Sound.Version ptr)
set.Sound.Version.major
occSDLsound.inc
258

Set value of member major of foreign structure Sound.Version.

Set value of member major of foreign structure Sound.Version
VAL INT

New contents of the member major.

VAL Sound.Version

Pointer to foreign structure Sound.Version.

INLINE PROC set.Sound.Version.major (VAL INT value, VAL Sound.Version ptr)
get.Sound.Version.minor
occSDLsound.inc
265

Get value of member minor of foreign structure Sound.Version.

Get value of member minor of foreign structure Sound.Version
RESULT INT

Contents of the member minor.

VAL Sound.Version

Pointer to foreign structure Sound.Version.

INLINE PROC get.Sound.Version.minor (RESULT INT value, VAL Sound.Version ptr)
set.Sound.Version.minor
occSDLsound.inc
272

Set value of member minor of foreign structure Sound.Version.

Set value of member minor of foreign structure Sound.Version
VAL INT

New contents of the member minor.

VAL Sound.Version

Pointer to foreign structure Sound.Version.

INLINE PROC set.Sound.Version.minor (VAL INT value, VAL Sound.Version ptr)
get.Sound.Version.patch
occSDLsound.inc
279

Get value of member patch of foreign structure Sound.Version.

Get value of member patch of foreign structure Sound.Version
RESULT INT

Contents of the member patch.

VAL Sound.Version

Pointer to foreign structure Sound.Version.

INLINE PROC get.Sound.Version.patch (RESULT INT value, VAL Sound.Version ptr)
set.Sound.Version.patch
occSDLsound.inc
286

Set value of member patch of foreign structure Sound.Version.

Set value of member patch of foreign structure Sound.Version
VAL INT

New contents of the member patch.

VAL Sound.Version

Pointer to foreign structure Sound.Version.

INLINE PROC set.Sound.Version.patch (VAL INT value, VAL Sound.Version ptr)
Sound.GetLinkedVersion
occSDLsound.inc
294

Foreign function Sound_GetLinkedVersion.

Foreign function Sound_GetLinkedVersion
Sound.Version

Argument with type Sound_Version *.

INLINE PROC Sound.GetLinkedVersion (Sound.Version ver)
Sound.Init
occSDLsound.inc
302

Foreign function Sound_Init.

Foreign function Sound_Init
RESULT INT

Function return value with type int.

INLINE PROC Sound.Init (RESULT INT return.value)
Sound.Quit
occSDLsound.inc
310

Foreign function Sound_Quit.

Foreign function Sound_Quit
RESULT INT

Function return value with type int.

INLINE PROC Sound.Quit (RESULT INT return.value)
Sound.AvailableDecoders
occSDLsound.inc
318

Foreign function Sound_AvailableDecoders.

Foreign function Sound_AvailableDecoders
Sound.DecoderInfo

Function return value with type Sound_DecoderInfo const **.

INLINE PROC Sound.AvailableDecoders (Sound.DecoderInfo return.value)
occ.Sound.GetError
occSDLsound.inc
328

Foreign function occ_Sound_GetError.

Foreign function occ_Sound_GetError
[]BYTE

Array pointer argument with element type char.

VAL INT

Argument with type int.

INT

Argument with type int *.

INLINE PROC occ.Sound.GetError ([]BYTE err.str, VAL INT err.str.len, INT str.len)
Sound.ClearError
occSDLsound.inc
335

Foreign function Sound_ClearError.

Foreign function Sound_ClearError
INLINE PROC Sound.ClearError ()
Sound.NewSampleFromFile
occSDLsound.inc
346

Foreign function Sound_NewSampleFromFile.

Foreign function Sound_NewSampleFromFile
Sound.Sample

Function return value with type Sound_Sample *.

VAL []BYTE

Array pointer argument with element type char const.

Sound.AudioInfo

Argument with type Sound_AudioInfo *.

VAL INT

Argument with type Uint32.

INLINE PROC Sound.NewSampleFromFile (Sound.Sample return.value, VAL []BYTE fname, Sound.AudioInfo desired, VAL INT bufferSize)
Sound.FreeSample
occSDLsound.inc
354

Foreign function Sound_FreeSample.

Foreign function Sound_FreeSample
Sound.Sample

Argument with type Sound_Sample *.

INLINE PROC Sound.FreeSample (Sound.Sample sample)
Sound.SetBufferSize
occSDLsound.inc
364

Foreign function Sound_SetBufferSize.

Foreign function Sound_SetBufferSize
RESULT INT

Function return value with type int.

Sound.Sample

Argument with type Sound_Sample *.

VAL INT

Argument with type Uint32.

INLINE PROC Sound.SetBufferSize (RESULT INT return.value, Sound.Sample sample, VAL INT new.size)
Sound.Decode
occSDLsound.inc
373

Foreign function Sound_Decode.

Foreign function Sound_Decode
RESULT INT

Function return value with type Uint32.

Sound.Sample

Argument with type Sound_Sample *.

INLINE PROC Sound.Decode (RESULT INT return.value, Sound.Sample sample)
Sound.DecodeAll
occSDLsound.inc
382

Foreign function Sound_DecodeAll.

Foreign function Sound_DecodeAll
RESULT INT

Function return value with type Uint32.

Sound.Sample

Argument with type Sound_Sample *.

INLINE PROC Sound.DecodeAll (RESULT INT return.value, Sound.Sample sample)
Sound.Rewind
occSDLsound.inc
391

Foreign function Sound_Rewind.

Foreign function Sound_Rewind
RESULT INT

Function return value with type int.

Sound.Sample

Argument with type Sound_Sample *.

INLINE PROC Sound.Rewind (RESULT INT return.value, Sound.Sample sample)
Sound.Seek
occSDLsound.inc
401

Foreign function Sound_Seek.

Foreign function Sound_Seek
RESULT INT

Function return value with type int.

Sound.Sample

Argument with type Sound_Sample *.

VAL INT

Argument with type Uint32.

INLINE PROC Sound.Seek (RESULT INT return.value, Sound.Sample sample, VAL INT ms)
get.audio.callback.ptr
occSDLsound.inc
409

Foreign function get_audio_callback_ptr.

Foreign function get_audio_callback_ptr
RESULT INT

Function return value with type int.

INLINE PROC get.audio.callback.ptr (RESULT INT return.value)
check.if.done.playing
occSDLsound.inc
417

Foreign function check_if_done_playing.

Foreign function check_if_done_playing
RESULT INT

Function return value with type int.

INLINE PROC check.if.done.playing (RESULT INT return.value)
udc

User-defined channels.

For more information, see "User-Defined Channels in occam".

User-defined channels
hostio
so.read.echo.real64
rereal64.occ
43

Read a string containing a representation of a double precision real in occam syntax ( though a + or - is allowed as first character ) from the keyboard and to echo it to standard out.

The number typed at the keyboard must be terminated by pressing 'RETURN'.

Read a string containing a representation of a double precision real in occam syntax ( though a + or - is allowed as first character ) from the keyboard and to echo it to standard out
CHAN OF SP

from server

CHAN OF SP

to server

REAL64

if error is FALSE, the IEEE double precision format of the real that was read, otherwise undefined

BOOL

FALSE if the real was read and converted to binary without problem; TRUE otherwise - if the string read does not conform to the syntax of an occam real number, other than the fact that a plus or minus sign is allowed as the first character

PROC so.read.echo.real64 (CHAN OF SP fs, ts, REAL64 n, BOOL error)
so.read
soread.occ
39

Read an unlimited number of bytes from a stream.

Read an unlimited number of bytes from a stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the open stream to be read from

INT

this gives the number of bytes read from the file; these bytes will be [data FROM 0 FOR bytes.read]; if bytes.read <> (SIZE data) then either an error occurred or the end of the file was reached.

[]BYTE

this contains the bytes read from the file; the number of bytes requested to be read is (SIZE data).

PROC so.read (CHAN OF SP fs, ts, VAL INT32 streamid, INT bytes.read, []BYTE data)
sp.read
spread.occ
67

Read a limited number of bytes from a stream.

Read a limited number of bytes from a stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the open stream to be read from

INT

if result is spr.ok then this gives the number of bytes read from the file; these bytes will be [data FROM 0 FOR bytes.read]; if bytes.read <> (SIZE data) then either an error occurred or the end of the file was reached. If result is not spr.ok then bytes.read will be zero. 0 <= bytes.read <= sp.max.readbuffer.size

[]BYTE

if result is spr.ok then this contains the bytes read from the file; otherwise it is undefined. The number of bytes requested to be read is (SIZE data); the limit to this is sp.max.readbuffer.size.

BYTE

equal to spr.bad.packet.size if too many bytes asked for ie (SIZE data) > sp.max.readbuffer.size, otherwise it is equal to spr.ok

PROC sp.read (CHAN OF SP fs, ts, VAL INT32 streamid, INT bytes.read, []BYTE data, BYTE result)
sp.pollkey
pollkey.occ
45

Read a single character from the keyboard, without waiting for one if there is none.

The key is not echoed to the screen.

Read a single character from the keyboard, without waiting for one if there is none
CHAN OF SP

from server

CHAN OF SP

to server

BYTE

the key that was read

BYTE

equals spr.ok if there was a key to read and the read was successful; otherwise >= spr.operation.failed - refer to hostio.inc or iserver documentation for further details

PROC sp.pollkey (CHAN OF SP fs, ts, BYTE key, result)
so.fwrite.real32
wreal32.occ
43

Write a single precision real as decimal ASCII characters to a stream.

Behaves as an invalid process if the string to write is longer than 24 characters.

Write a single precision real as decimal ASCII characters to a stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the stream to write the real to

VAL REAL32

a single precision real

VAL INT

formatting values; see REAL32TOSTRING for their effect

BYTE

spr.ok if the string representing the real was written; otherwise not all of the characters were written in which case spr.notok

PROC so.fwrite.real32 (CHAN OF SP fs, ts, VAL INT32 streamid, VAL REAL32 r, VAL INT Ip, Dp, BYTE result)
so.write.real32
wreal32.occ
75

Write a single precision real as decimal ASCII characters to standard out.

Behaves as an invalid process if the string to write is longer than 24 characters.

Write a single precision real as decimal ASCII characters to standard out
CHAN OF SP

from server

CHAN OF SP

to server

VAL REAL32

a single precision real

VAL INT

formatting values; see REAL32TOSTRING for their effect

PROC so.write.real32 (CHAN OF SP fs, ts, VAL REAL32 r, VAL INT Ip, Dp)
sp.flush
flush.occ
41

Flush the specified output stream.

To flush means to write out any internally buffered data to the stream that it is associated with. The stream remains open.

Flush the specified output stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the open stream to be flushed

BYTE

equal to spr.ok stream successfully flushed; otherwise >= spr.operation.failed - see hostio.inc or iserver documentation for further details

PROC sp.flush (CHAN OF SP fs, ts, VAL INT32 streamid, BYTE result)
so.read.echo.int
reint.occ
42

Read a string containing a representation of a decimal integer from the keyboard, and to echo it to standard out.

The integer may commence with a + or a - sign. The number typed at the keyboard must be terminated by pressing 'RETURN'.

Read a string containing a representation of a decimal integer from the keyboard, and to echo it to standard out
CHAN OF SP

from server

CHAN OF SP

to server

INT

if error is FALSE, the value of the integer read; otherwise undefined

BOOL

FALSE if nothing went wrong in the operation; otherwise TRUE: 1) if the integer read overflows the INT range 2) if a non-numeric character is found in the input string ( other than a + or - in the first character position )

PROC so.read.echo.int (CHAN OF SP fs, ts, INT n, BOOL error)
sp.system
system.occ
54

Execute a command on the host system.

Execute a command on the host system
CHAN OF SP

from server

CHAN OF SP

to server

VAL []BYTE

the command to be executed, which may be null

INT32

if command is not null and result is spr.ok then this is the return value of the command, which is host dependent

BYTE

equal to spr.ok if a host command processor exists; otherwise: spr.bad.packet.size command too large, (SIZE command) > sp.max.systemcommand.size >=spr.operation.failed the operation failed - see hostio.inc or iserver documentation for further details

PROC sp.system (CHAN OF SP fs, ts, VAL []BYTE command, INT32 status, BYTE result)
so.open.temp
opentemp.occ
51

Open a temporary file in spm.new.update mode.

The file will be opened in the current directory. The file name of the temporary file is chosen as follows: the first name tried is TEMP00; if there already exists such a file then TEMP01 is tried; if there already exists such a file then TEMP02 is tried; etc. up to TEMP99 when, if such a file exists then TEM100 is tried, and so on up to TEM999, at which point, if such a file exists, TE1000 is tried, and so on up to TE9999, which is the last name tried, i.e. a maximum of 10,000 possible temporary files can be created by this routine.

Open a temporary file in spm.new.update mode
CHAN OF SP

from server

CHAN OF SP

to server

VAL BYTE

either spt.binary or spt.text

[so.temp.filename.length]BYTE

the name of the file opened

INT32

if result is spr.ok, the identification number of the stream associated with the file that was opened; undefined otherwise

BYTE

spr.ok if all went well; otherwise takes on a value indicating what went wrong: spr.bad.type invalid type spr.notok there are already 10,000 such temp files >=spr.operation.failed the open failed - refer to hostio.inc or iserver documentation for further details

PROC so.open.temp (CHAN OF SP fs, ts, VAL BYTE type, [so.temp.filename.length]BYTE filename, INT32 streamid, BYTE result)
so.read.echo.int32
reint32.occ
42

Read a string containing a representation of a 32-bit decimal integer from the keyboard, and to echo it to standard out.

The integer may commence with a + or a - sign. The number typed at the keyboard must be terminated by pressing 'RETURN'.

Read a string containing a representation of a 32-bit decimal integer from the keyboard, and to echo it to standard out
CHAN OF SP

from server

CHAN OF SP

to server

INT32

if error is FALSE, the value of the integer read; undefined otherwise

BOOL

FALSE if nothing went wrong in the operation; otherwise TRUE: 1) if the integer read overflows the INT32 range 2) if a non-numeric character is found in the input string ( other than a + or - in the first character position )

PROC so.read.echo.int32 (CHAN OF SP fs, ts, INT32 n, BOOL error)
so.read.echo.hex.int32
rehint32.occ
47

Read a 32-bit integer in ( two's complement ) hexadecimal form from the keyboard, and to echo it to standard out.

The hexadecimal number must begin with one of '#', '$' or '%'; a sign is not allowed ( nor necessary since the most significant bit indicates the sign ). A '#' and '$' mean exactly the same thing: the following digits form a hex integer. A '%' means add the given hex integer to MOSTNEG INT32 using modulo arithmetic to give the result. Both upper and lower case hex digits are permissible. The number typed at the keyboard must be terminated by pressing 'RETURN'.

Read a 32-bit integer in ( two's complement ) hexadecimal form from the keyboard, and to echo it to standard out
CHAN OF SP

from server

CHAN OF SP

to server

INT32

if error is FALSE, the value of the hexadecimal number read; otherwise undefined

BOOL

FALSE if everything was in order; TRUE otherwise: 1) if the integer overflows the INT32 range; 2) if there is a non-hex character in the string read from the keyboard ( other than #, $, or % in the first character position )

PROC so.read.echo.hex.int32 (CHAN OF SP fs, ts, INT32 n, BOOL error)
sp.core
core.occ
51

Return the contents of the root transputer's memory as peeked from the transputer when the server was invoked with the analyse option.

If offset + (SIZE data) is larger than the total memory peeked then only those bytes from offset up to the end of that memory peeked are returned in data. If both offset and SIZE data are zero, the routine fails if the memory was not peeked, succeeds otherwise.

Return the contents of the root transputer's memory as peeked from the transputer when the server was invoked with the analyse option
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

this gives the offset from base of memory ( (MOSTNEG INT) ) of the memory segment to be read ( so offset should be non-negative ); result will be >= spr.operation.failed if offset is larger than the amount of memory that was peeked

INT

the number of bytes read, which will be [data FROM 0 FOR bytes.read], if result = spr.ok; otherwise will be zero

[]BYTE

contains the contents of the memory read; (SIZE data) is the amount of memory in bytes that is requested to be read

BYTE

equal to spr.ok if the peeked memory was successfully returned; otherwise takes on a value indicating what the problem was: spr.bad.packet.size data is too large, (SIZE data) > sp.max.corerequest.size >=spr.operation.failed the operation failed or the transputer was not analysed when the server was invoked or offset is greater than the amount of memory peeked - refer to hostio.inc or iserver documentation for further details

PROC sp.core (CHAN OF SP fs, ts, VAL INT32 offset, INT bytes.read, []BYTE data, BYTE result)
so.read.echo.hex.int
rehint.occ
47

Read an integer in ( two's complement ) hexadecimal form from the keyboard, and to echo it to standard out.

The hexadecimal number must begin with one of '#', '$' or '%'; a sign is not allowed ( nor necessary since the most significant bit indicates the sign ). A '#' and '$' mean exactly the same thing: the following digits form a hex integer. A '%' means add the given hex integer to MOSTNEG INT using modulo arithmetic to give the result. Both upper and lower case hex digits are permissible. The number typed at the keyboard must be terminated by pressing 'RETURN'.

Read an integer in ( two's complement ) hexadecimal form from the keyboard, and to echo it to standard out
CHAN OF SP

from server

CHAN OF SP

to server

INT

if error is FALSE, the value of the hexadecimal number read; otherwise undefined

BOOL

FALSE if everything was in order; TRUE otherwise: 1) if the integer overflows the INT range; 2) if there is a non-hex character in the string read from the keyboard ( other than #, $, or % in the first character position )

PROC so.read.echo.hex.int (CHAN OF SP fs, ts, INT n, BOOL error)
sp.puts
puts.occ
42

Write a line to the specified output stream.

A newline sequence is added to the end of the bytes to be written.

Write a line to the specified output stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the stream to be written to

VAL []BYTE

the line to be written ( without a terminating newline sequence )

BYTE

equal to spr.ok if the line was successfully written; otherwise takes on a value indicating what was wrong: spr.bad.packet.size too many bytes supplied, (SIZE data) > sp.max.writebuffer.size >=spr.operation.failed the write failed - see hostio.inc or iserver documentation for further details

PROC sp.puts (CHAN OF SP fs, ts, VAL INT32 streamid, VAL []BYTE data, BYTE result)
so.fwrite.int64
wint64.occ
45

Write to the specified file stream a 64-bit integer as decimal ASCII digits, padded out with leading spaces and an optional sign to the specified field width.

If the field width is too small for the number, then it is widened as necessary; a zero value for the field width will give minimum width; a negative field width is an error.

Write to the specified file stream a 64-bit integer as decimal ASCII digits, padded out with leading spaces and an optional sign to the specified field width
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the stream to which the string representing the integer is to be sent

VAL INT64

the 64-bit integer that is desired to be written

VAL INT

the desired field width of the string

BYTE

equal to spr.ok if the string was written all right; otherwise not all of the string could be written, in which case result takes on a value of spr.notok

PROC so.fwrite.int64 (CHAN OF SP fs, ts, VAL INT32 streamid, VAL INT64 n, VAL INT width, BYTE result)
so.write.int64
wint64.occ
95

Write to standard out a 64-bit integer as decimal ASCII digits, padded out with leading spaces and an optional sign to the specified field width.

If the field width is too small for the number, then it is widened as necessary; a zero value for the field width will give minimum width; a negative field width is an error.

Write to standard out a 64-bit integer as decimal ASCII digits, padded out with leading spaces and an optional sign to the specified field width
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT64

the 64-bit integer that is desired to be written

VAL INT

the desired field width of the string

PROC so.write.int64 (CHAN OF SP fs, ts, VAL INT64 n, VAL INT width)
sp.write
spwrite.occ
57

Write an unlimited number of bytes to a stream.

Write an unlimited number of bytes to a stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the open stream to write to

VAL []BYTE

a string of bytes ALL of which are to be written to the file

INT

this gives the number of bytes written; if length <> (SIZE data) then an error occurred

BYTE

spr.ok if the request was successful; otherwise >= spr.operation.failed - refer to hostio.inc or iserver documentation for further details

PROC sp.write (CHAN OF SP fs, ts, VAL INT32 streamid, VAL []BYTE data, INT length, BYTE result)
sp.time
time.occ
43

Retrieve the local and UTC time from the host system.

Both times are expressed as the number of seconds that have elapsed since midnight on the 1st of January, 1970, and are given as unsigned INT32s UTC time used to be known as Greenwich Mean Time ( GMT )

Retrieve the local and UTC time from the host system
CHAN OF SP

from server

CHAN OF SP

to server

INT32

the local time

INT32

the Coordinated Universal Time, if available; zero if not available

BYTE

spr.ok if operation successful; otherwise >= spr.operation.failed - refer to hostio.inc or iserver documentation for details

PROC sp.time (CHAN OF SP fs, ts, INT32 localtime, UTCtime, BYTE result)
so.time
time.occ
62

Retrieve the local and UTC time from the host system.

Both times are expressed as the number of seconds that have elapsed since midnight on the 1st of January, 1970, and are given as unsigned INT32s UTC time used to be known as Greenwich Mean Time ( GMT )

Retrieve the local and UTC time from the host system
CHAN OF SP

from server

CHAN OF SP

to server

INT32

the local time

INT32

the Coordinated Universal Time, if available; zero if not available

PROC so.time (CHAN OF SP fs, ts, INT32 localtime, UTCtime)
so.fwrite.string
fwstring.occ
54

Write a string to a stream.

Write a string to a stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the stream to write the string to

VAL []BYTE

the string to be written, which can be any length

BYTE

spr.ok if the string was written; spr.notok if not all of the string was written

PROC so.fwrite.string (CHAN OF SP fs, ts, VAL INT32 streamid, VAL []BYTE string, BYTE result)
so.fwrite.char
fwstring.occ
107

Write a single character to a stream.

Write a single character to a stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the stream to write to

VAL BYTE

the single character to write

BYTE

spr.ok if the character was written; otherwise spr.notok

PROC so.fwrite.char (CHAN OF SP fs, ts, VAL INT32 streamid, VAL BYTE char, BYTE result)
so.fwrite.string.nl
fwstring.occ
139

Write a string appended by a newline to a stream.

The newline sequence is appended by this routine.

Write a string appended by a newline to a stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the stream to write the string to

VAL []BYTE

the string to be written, which can be any length

BYTE

spr.ok if the string was successfully written; spr.notok if not all of the string was written; if >= spr.operation.failed refer to hostio.inc or iserver documentation for further details

PROC so.fwrite.string.nl (CHAN OF SP fs, ts, VAL INT32 streamid, VAL []BYTE string, BYTE result)
so.fwrite.nl
fwstring.occ
194

Write a newline to a stream.

Write a newline to a stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the stream to write to

BYTE

spr.ok if the newline was successfully written; otherwise >= spr.operation.failed - refer to hostio.inc or iserver documentation for further details

PROC so.fwrite.nl (CHAN OF SP fs, ts, VAL INT32 streamid, BYTE result)
sp.gets
gets.occ
79

Read a line from the specified input stream.

Characters are read until a newline sequence is found, the end of the file is reached, or the number of characters is not less than sp.max.readbuffer.size. If a newline sequence is found, it is not included in data.

Read a line from the specified input stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the open stream to be read from

INT

if result is spr.ok this is the number of bytes read; if result is spr.buffer.overflow then this will be (SIZE data) and will be less than the actual number of bytes read from the file; otherwise zero.

[]BYTE

an array of bytes holding line read if result is spr.ok; or holding a truncation of the line if result is spr.buffer.overflow. It is undefined otherwise. If result is spr.ok or spr.buffer.overflow then the bytes will be [data FROM 0 FOR bytes.read].

BYTE

equal to spr.ok if line was successfully read; otherwise takes on a value indicating what went wrong: spr.bad.packet.size data is too large, (SIZE data) > sp.max.readbuffer.size spr.buffer.overflow data not large enough to hold the line, in which case the line is truncated to fit >=spr.operation.failed the read failed, either because the end of the file has been reached or some error occurred - see hostio.inc or iserver documentation for further details

PROC sp.gets (CHAN OF SP fs, ts, VAL INT32 streamid, INT bytes.read, []BYTE data, BYTE result)
so.fwrite.hex.int64
whint64.occ
48

Write a 64-bit integer as hexadecimal ASCII characters preceded by the '#' character to a file.

Write a 64-bit integer as hexadecimal ASCII characters preceded by the '#' character to a file
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the stream to write to

VAL INT64

the 64-bit integer to write out

VAL INT

the field width to use when writing the hex; if width is larger than the size of the number then the number is padded with leading 0's or F's as appropriate; if width is smaller than the size of the number then the number is truncated at the left to width characters; width does not take the '#' into account; a negative field width is an error

BYTE

spr.ok if the integer was successfully written; otherwise not all of the string could be written, in which case result takes on a value of spr.notok

PROC so.fwrite.hex.int64 (CHAN OF SP fs, ts, VAL INT32 streamid, VAL INT64 n, VAL INT width, BYTE result)
so.write.hex.int64
whint64.occ
129

Write a 64-bit integer as hexadecimal ASCII characters preceded by the '#' character to standard out.

Write a 64-bit integer as hexadecimal ASCII characters preceded by the '#' character to standard out
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT64

the 64-bit integer to write out

VAL INT

the field width to use when writing the hex; if width is larger than the size of the number then the number is padded with leading 0's or F's as appropriate; if width is smaller than the size of the number then the number is truncated at the left to width characters; width does not take the '#' into account; a negative field width is an error

PROC so.write.hex.int64 (CHAN OF SP fs, ts, VAL INT64 n, VAL INT width)
sp.rename
rename.occ
56

Rename the specified file.

Rename the specified file
CHAN OF SP

from server

CHAN OF SP

to server

VAL []BYTE

the present name of the file to be renamed

VAL []BYTE

the desired name of the file to be renamed

BYTE

equals spr.ok if the renaming was successful; otherwise takes on a value indicating what went wrong: spr.bad.packet.size the combined lengths of oldname and newname is too large - it must be less than sp.max.renamename.size spr.bad.name either or both of the filenames are null >=spr.operation.failed the renaming failed - see hostio.inc or iserver documentation for further details

PROC sp.rename (CHAN OF SP fs, ts, VAL []BYTE oldfname, newfname, BYTE result)
sp.eof
eof.occ
33

Test whether the specified stream has end of file status or not.

Test whether the specified stream has end of file status or not
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the stream to test

BYTE

equals spr.ok if end of file status is set; >= spr.operation.failed if the end of file status has not been set

PROC sp.eof (CHAN OF SP fs, ts, VAL INT32 streamid, BYTE result)
sp.buffer
buffer.occ
42

Act as a communication buffer.

No more than sp.max.packet.data.size bytes can be buffered. Primary input to this routine must be on the guard input channels from.user or stopper. Input on from.user is stored, output on ts, then a reply is expected on fs; this reply is stored and then output on to.user, and all this must finish before any new input can be received on from.user or stopper.

Act as a communication buffer
CHAN OF SP

input to this routine

CHAN OF SP

output from this routine

CHAN OF SP

input to this routine

CHAN OF SP

output from this routine

CHAN OF BOOL

input to this routine; TRUE or FALSE received will terminate this routine

PROC sp.buffer (CHAN OF SP fs, ts, from.user, to.user, CHAN OF BOOL stopper)
so.parse.command.line
parse.occ
62

Read the server command line and parse it for specified options and associated parameters.

Read the server command line and parse it for specified options and associated parameters
CHAN OF SP

from server

CHAN OF SP

to server

VAL [][]BYTE

a list of all possible options. These options must not be longer than 256 bytes and any letters should be in upper case, even though the options as given by the user on the command line are case insensitive. To read a parameter that has no preceding option ( such as a filename ) then the first option string should contain only spaces. Because all of these option strings must be the same length, trailing spaces should be used to pad.

VAL []INT

indicates if the corresponding option ( in option.strings ) requires a parameter. The permissible values are: spopt.never never takes a parameter spopt.maybe optionally takes a parameter spopt.always must take a parameter

[]BOOL

TRUE if the corresponding option was present on the command line; otherwise FALSE

[][2]INT

if an option was followed by a parameter then the position in the array line where the parameter starts and the length of the parameter are given by the first and second elements respectively in the corresponding element of this parameter, as long as an error did not occur

INT

zero if no error occurs whilst the command line is being parsed; otherwise greater than zero and is the number of bytes in line ( which will contain an error message )

[]BYTE

contains the command line as supplied by the server if there was no error ( in which case error.len is zero ); otherwise contains an error message ( the length of which is given by error.len ). There is no limitation on the size of line - if it is not long enough for an error message then that message is truncated to fit; if not long enough for the command line, then an error message is put into line.

PROC so.parse.command.line (CHAN OF SP fs, ts, VAL [][]BYTE option.strings, VAL []INT option.parameters.required, []BOOL option.exists, [][2]INT option.parameters, INT error.len, []BYTE line)
sp.commandline
command.occ
66

Return the command line passed to the server on invocation.

Return the command line passed to the server on invocation
CHAN OF SP

from server

CHAN OF SP

to server

VAL BYTE

either sp.short.commandline, remove the server's own name, its recognised options and their parameters or sp.whole.commandline, the entire command line

INT

the number of bytes returned in string, starting from string[ 0 ], being zero in the case of result >= spr.operation.failed

[]BYTE

contains the requested command line if result = spr.ok; contains a truncation of the requested command line if result = spr.buffer.overflow; is undefined otherwise. There is no restriction on the size of string.

BYTE

equal to spr.ok if the command line was successfully returned; otherwise takes on a value indicating what went wrong: spr.buffer.overflow string is not long enough to contain the command line, but the latter has been truncated to fit >=spr.operation.failed the operation failed - refer to hostio.inc or iserver documentation for further details

PROC sp.commandline (CHAN OF SP fs, ts, VAL BYTE all, INT length, []BYTE string, BYTE result)
so.ask
ask.occ
53

Provide a general purpose routine for interactively asking a user of a program a question requiring only a one character answer.

After the prompt and possibly the printable replies, " ? " is output and a valid key is waited for from the keyboard; invalid keys are ignored.

Provide a general purpose routine for interactively asking a user of a program a question requiring only a one character answer
CHAN OF SP

from server

CHAN OF SP

to server

VAL []BYTE

the prompt to be displayed on the screen to the user, but any list of possible replies and a question mark will be taken care of outside of this prompt

VAL []BYTE

the possible single character replies allowed, which do not necessarily need to be printable

VAL BOOL

if TRUE the printable replies are displayed ( in upper case ) inside round brackets with commas inbetween each character, this display being one space after the given prompt; if FALSE then this is not done

VAL BOOL

if TRUE then the reply typed at the keyboard by the user is echoed if it is printable, and it is echoed as an upper case letter if a letter; if FALSE the reply typed is not echoed

INT

an integer corresponding to the reply typed, where 0 is associated with the first possible reply, 1 with the second possible reply, etc., where the order is as in replies

PROC so.ask (CHAN OF SP fs, ts, VAL []BYTE prompt, replies, VAL BOOL display.possible.replies, echo.reply, INT reply.number)
sp.overlapped.buffer
ovbuffer.occ
44

Act as two almost independent buffers.

The dependence of the buffers is given by the fact that the number of communications through one buffer ( buffer2 ) must match the number through the other buffer ( buffer1 ) before the routine will terminate. No more than sp.max.packet.data.size bytes can be buffered in each of the buffers.

Act as two almost independent buffers
CHAN OF SP

input to this routine and to buffer2

CHAN OF SP

output from this routine and from buffer1

CHAN OF SP

input to this routine and to buffer1

CHAN OF SP

output from this routine and from buffer2

CHAN OF BOOL

input to this routine; TRUE or FALSE received will cause buffer1 to stop listening on the ts channel and to terminate when buffer2 has passed through the same number of reply communications on the fs/to.user channels as buffer1 sent on the from.user/ts channels. buffer1 terminates immediately after buffer1; the whole routine then terminates.

PROC sp.overlapped.buffer (CHAN OF SP fs, ts, from.user, to.user, CHAN OF BOOL stopper)
sp.overlapped.multiplexor
ovmux.occ
69

Multiplex any number of pairs of SP protocol channels onto a single pair of SP protocol channels, where the multiplexing is overlapped so that output through this routine can continue independently of the receipt of replies.

It is an error if the size of from.user is different to that of to.user. It is permissible for the size of from.user ( and hence to.user ) to be zero. The maximum number of bytes that can be channelled through this routine in each direction is sp.max.packet.data.size. It is assumed that replies for messages are received in the same sequence as the messages are sent. To attempt some degree of fairness, there is a heirarchy of priorities from from.user with index i for SIZE from.user, using modulo SIZE from.user on the indexes, with i starting from 0 and incrementing by one after each input accepted.

Multiplex any number of pairs of SP protocol channels onto a single pair of SP protocol channels, where the multiplexing is overlapped so that output through this routine can continue independently of the receipt of replies
CHAN OF SP

input to this routine

CHAN OF SP

output from this routine

[]CHAN OF SP

input to this routine

[]CHAN OF SP

output from this routine

CHAN OF BOOL

input to this routine: TRUE or FALSE received on this channel will cause the routine to stop listening on the from.user channels and wait until all replies have been received before terminating; stopper has the highest priority amongst the channels

[]INT

the values in queue on entry are irrelevant but the size of it is the maximum number of communications that can be output through this routine before a reply is received and to be passed back; the values in queue on termination are equally irrelevant; queue is used for storage only; if it is of zero length then no communication can be done and the routine simply waits on stopper for an input which immediately causes termination of this routine

PROC sp.overlapped.multiplexor (CHAN OF SP fs, ts, []CHAN OF SP from.user, to.user, CHAN OF BOOL stopper, []INT queue)
so.test.exists
exists.occ
36

Test for the existence of a file.

Test for the existence of a file
CHAN OF SP

from server

CHAN OF SP

to server

VAL []BYTE

the name of the file to test for the existence of. The name of the file must fit exactly into filename, i.e. there are (SIZE filename) characters in the name of the file. A directory specification may form part of filename.

BOOL

TRUE if the file exists; FALSE otherwise

PROC so.test.exists (CHAN OF SP fs, ts, VAL []BYTE filename, BOOL exists)
so.read.echo.real32
rereal32.occ
43

Read a string containing a representation of a single precision real in occam syntax ( though a + or - is allowed as first character ) from the keyboard and to echo it to standard out.

The number typed at the keyboard must be terminated by pressing 'RETURN'.

Read a string containing a representation of a single precision real in occam syntax ( though a + or - is allowed as first character ) from the keyboard and to echo it to standard out
CHAN OF SP

from server

CHAN OF SP

to server

REAL32

if error is FALSE, the IEEE single precision format of the real that was read, otherwise undefined

BOOL

FALSE if the real was read and converted to binary without problem; TRUE otherwise - if the string read does not conform to the syntax of an occam real number, other than the fact that a plus or minus sign is allowed as the first character

PROC so.read.echo.real32 (CHAN OF SP fs, ts, REAL32 n, BOOL error)
so.popen.read
popen.occ
66

Perform a general purpose open file for reading.

This procedure performs the following actions: 1. An attempt is made to open the file as given by filename ( so if there is no directory part to filename the current directory will be tried ); 2. If the attempt in 1 is not successful and there is no explicit directory part to filename, the path is searched for the file.

Perform a general purpose open file for reading
CHAN OF SP

from server

CHAN OF SP

to server

VAL []BYTE

a string with the name of the file to be opened. There may be an explicit directory part to the file's name.

VAL []BYTE

a string holding the name of a path environment variable; there is a limit imposed on the number of characters accepted from sp.getenv for the environment variable contents: the limit is imposed by this routine and is given by 507 ( called path.string.size in the program text ).

VAL BYTE

either spt.binary, for a file containing raw bytes only or spt.text, for a file stored as text records separated by newlines

INT

the number of characters in full.name if result is spr.ok; undefined otherwise

[]BYTE

if result is spr.ok, [full.name FROM 0 FOR full.len] is the name of the file that was successfully opened; undefined otherwise. full.name clearly should be at least as large as filename.

INT32

if result is spr.ok, the identification number of the stream associated with the file that was opened; undefined otherwise

BYTE

spr.ok if a file was opened successfully; otherwise some value indicating what went wrong: spr.bad.packet.size (SIZE filename) > sp.max.openname.size or (SIZE path.variable.name) > sp.max.getenvname.size spr.bad.name null file name supplied spr.bad.type invalid file type specified spr.full.name.too.short (SIZE full.name) not large enough to hold name of a file to open spr.buffer.overflow length of environment string > 507 >=spr.operation.failed the open failed or could not read environment string - see hostio.inc or iserver documentation for more details

PROC so.popen.read (CHAN OF SP fs, ts, VAL []BYTE filename, path.variable.name, VAL BYTE open.type, INT full.len, []BYTE full.name, INT32 stream.id, BYTE result)
so.time.to.date
times.occ
38

Convert the number of seconds since the midnight before 1st January 1970 into the associated time and date.

Convert the number of seconds since the midnight before 1st January 1970 into the associated time and date
VAL INT32

the number of seconds since the midnight before 1st January 1970

[so.date.len]INT

an array of six integers where the elements are, index data 0 seconds past the minute 1 minutes past the hour 2 the hour in the 24 hour clock 3 the day of the month 4 the month, where January is 1 5 the year expressed fully, i.e. 4 digits

PROC so.time.to.date (VAL INT32 input.time, [so.date.len]INT date)
so.date.to.ascii
times.occ
183

Format a time and date given in the form of six integers.

Format a time and date given in the form of six integers
VAL [so.date.len]INT

an array of six integers where the elements are, index data 0 seconds past the minute 1 minutes past the hour 2 the hour in the 24 hour clock 3 the day of the month 4 the month, where January is 1 5 the year expressed fully, i.e. 4 digits

VAL BOOL

TRUE if a four digit year is desired; FALSE if a two digit year is desired, the digits being the tens and units, followed by two spaces

VAL BOOL

TRUE if date to be written with the days preceding the month ( i.e. British format ); FALSE if the month is to precede the days ( i.e. U.S. format )

[so.time.string.len]BYTE

an ASCII string representing the time and date as follows: "HH:MM:SS DD/MM/YY " -- long.years = FALSE; days.first = TRUE "HH:MM:SS DD/MM/YYYY" -- long.years = TRUE; days.first = TRUE "HH:MM:SS MM/DD/YY " -- long.years = FALSE; days.first = FALSE "HH:MM:SS MM/DD/YYYY" -- long.years = TRUE; days.first = FALSE where HH:MM:SS is hours, minutes and seconds, and DD/MM/YY is day, month and year

PROC so.date.to.ascii (VAL [so.date.len]INT date, VAL BOOL long.years, VAL BOOL days.first, [so.time.string.len]BYTE string)
so.time.to.ascii
times.occ
249

Convert the number of seconds since the midnight before 1st January 1970 into a formatted time and date

Convert the number of seconds since the midnight before 1st January 1970 into a formatted time and date
VAL INT32

the number of seconds since the midnight before 1st January 1970

VAL BOOL

TRUE if a four digit year is desired; FALSE if a two digit year is desired, the digits being the tens and units, followed by two spaces

VAL BOOL

TRUE if date to be written with the days preceding the month ( i.e. British format ); FALSE if the month is to precede the days ( i.e. U.S. format )

[so.time.string.len]BYTE

an ASCII string representing the time and date as follows: "HH:MM:SS DD/MM/YY " -- long.years = FALSE; days.first = TRUE "HH:MM:SS DD/MM/YYYY" -- long.years = TRUE; days.first = TRUE "HH:MM:SS MM/DD/YY " -- long.years = FALSE; days.first = FALSE "HH:MM:SS MM/DD/YYYY" -- long.years = TRUE; days.first = FALSE where HH:MM:SS is hours, minutes and seconds, and DD/MM/YY is day, month and year

PROC so.time.to.ascii (VAL INT32 time, VAL BOOL long.years, VAL BOOL days.first, [so.time.string.len]BYTE string)
so.today.date
times.occ
272

Give the time and date, in the form of six integers, of when this routine was called.

If the time and date are unavailable all elements of date are set to zero. Local time is used.

Give the time and date, in the form of six integers, of when this routine was called
CHAN OF SP

from server

CHAN OF SP

to server

[so.date.len]INT

an array of six integers where the elements are, index data 0 seconds past the minute 1 minutes past the hour 2 the hour in the 24 hour clock 3 the day of the month 4 the month, where January is 1 5 the year expressed fully, i.e. 4 digits

PROC so.today.date (CHAN OF SP fs, ts, [so.date.len]INT date)
so.today.ascii
times.occ
308

Give the time and date, in formatted form, of when this routine was called.

If the time and date are unavailable string is filled with spaces. Local time is used.

Give the time and date, in formatted form, of when this routine was called
CHAN OF SP

from server

CHAN OF SP

to server

VAL BOOL

TRUE if a four digit year is desired; FALSE if a two digit year is desired, the digits being the tens and units, followed by two spaces

VAL BOOL

TRUE if date to be written with the days preceding the month ( i.e. British format ); FALSE if the month is to precede the days ( i.e. U.S. format )

[so.time.string.len]BYTE

an ASCII string representing the time and date as follows: "HH:MM:SS DD/MM/YY " -- long.years = FALSE; days.first = TRUE "HH:MM:SS DD/MM/YYYY" -- long.years = TRUE; days.first = TRUE "HH:MM:SS MM/DD/YY " -- long.years = FALSE; days.first = FALSE "HH:MM:SS MM/DD/YYYY" -- long.years = TRUE; days.first = FALSE where HH:MM:SS is hours, minutes and seconds, and DD/MM/YY is day, month and year

PROC so.today.ascii (CHAN OF SP fs, ts, VAL BOOL long.years, days.first, [so.time.string.len]BYTE string)
so.fwrite.int
wint.occ
45

Write to the specified file stream an integer as decimal ASCII digits, padded out with leading spaces and an optional sign to the specified field width.

If the field width is too small for the number, then it is widened as necessary; a zero value for the field width will give minimum width; a negative value is an error.

Write to the specified file stream an integer as decimal ASCII digits, padded out with leading spaces and an optional sign to the specified field width
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the stream to which the string representing the integer is to be sent

VAL INT

the integer that is desired to be written

VAL INT

the desired field width of the string

BYTE

equal to spr.ok if the string was written all right; otherwise not all of the string could be written, in which case result takes on a value of spr.notok

PROC so.fwrite.int (CHAN OF SP fs, ts, VAL INT32 streamid, VAL INT n, width, BYTE result)
so.write.int
wint.occ
95

Write to standard out an integer as decimal ASCII digits, padded out with leading spaces and an optional sign to the specified field width.

If the field width is too small for the number, then it is widened as necessary; a zero value for the field width will give minimum width; a negative field width is an error.

Write to standard out an integer as decimal ASCII digits, padded out with leading spaces and an optional sign to the specified field width
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT

the integer that is desired to be written

VAL INT

the desired field width of the string

PROC so.write.int (CHAN OF SP fs, ts, VAL INT n, width)
so.read.echo.any.int
reaint.occ
52

Read an integer in either ( two's complement ) hexadecimal form or in decimal form from the keyboard, and to echo it to standard out.

The hexadecimal number must begin with one of '#', '$' or '%'; a sign is not allowed ( nor necessary since the most significant bit indicates the sign ). A '#' and '$' mean exactly the same thing: the following digits form a hex integer. A '%' means add the given hex integer to MOSTNEG INT using modulo arithmetic to give the result. Both upper and lower case hex digits are permissible. A sign is allowed in the first character position if it is a decimal integer that is entered. The number typed at the keyboard must be terminated by pressing 'RETURN'.

Read an integer in either ( two's complement ) hexadecimal form or in decimal form from the keyboard, and to echo it to standard out
CHAN OF SP

from server

CHAN OF SP

to server

INT

if error is FALSE, the value of the integer read; otherwise undefined

BOOL

FALSE if everything was in order; TRUE otherwise: 1) if the integer overflows the INT range; 2a) if it is a hex integer, if there is a non-hex character in the string read from the keyboard ( other than #, $, or % in the first character position ) 2b) if it is a decimal integer, if there is a non-numeric character in the string read from the keyboard ( other than a + or - in the first character position )

PROC so.read.echo.any.int (CHAN OF SP fs, ts, INT n, BOOL error)
so.read.line
readline.occ
46

Read a line from the keyboard without echoing it.

The line to be read is considered terminated by a carriage return, ie ASCII ^M, which has value #0D = 13. This carriage return is not included in the line, and nor is a newline ( ASCII ^J, #0A = 10 ) if present in the input. If an error occurs whilst reading the line this routine terminates immediately.

Read a line from the keyboard without echoing it
CHAN OF SP

from server

CHAN OF SP

to server

INT

the number of bytes in the parameter line that form the line that was read

[]BYTE

if result = spr.ok, the line that was read is in the first len bytes, the remaining bytes being undefined or if the supplied byte array was not large enough for the read line, the read line is truncated to fit; otherwise undefined

BYTE

spr.ok if the line was successfully read; otherwise >= spr.operation.failed - see hostio.inc or iserver documentation for further details

PROC so.read.line (CHAN OF SP fs, ts, INT len, []BYTE line, BYTE result)
sp.pri.multiplexor
primux.occ
59

Multiplex any number of pairs of SP protocol channels onto a single pair of SP protocol channels.

There is a relative priority to the input channels: from.user[ i ] is of higher priority than from.user[ j ] where i < j.

It is an error if the number of channels in from.user is different to that in to.user. It is permissible for the number of channels in from.user ( and hence also to.user ) to be zero. No more than sp.max.packet.data.size bytes can be buffered as they passes through this routine. Primary input to this routine must be on the guard input channels from.user[ i ] or stopper. Input on from.user[ i ] is stored, output on ts, then a reply is expected on fs; this reply is stored and then output on to.user[ i ], and all this must finish before any new input can be received on any of the from.user channels or stopper.

Multiplex any number of pairs of SP protocol channels onto a single pair of SP protocol channels
CHAN OF SP

input to this routine

CHAN OF SP

output from this routine

[]CHAN OF SP

input to this routine

[]CHAN OF SP

output from this routine

CHAN OF BOOL

input to this routine: TRUE or FALSE received on this channel will cause the routine to terminate; this channel has the lowest priority of all input channels.

PROC sp.pri.multiplexor (CHAN OF SP fs, ts, []CHAN OF SP from.user, to.user, CHAN OF BOOL stopper)
so.fwrite.real64
wreal64.occ
43

Write a double precision real as decimal ASCII characters to a stream.

Behaves as an invalid process if the string to write is longer than 30 characters.

Write a double precision real as decimal ASCII characters to a stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the stream to write the real to

VAL REAL64

a double precision real

VAL INT

formatting values; see REAL64TOSTRING for their effect

BYTE

spr.ok if the string representing the real was written; otherwise not all of the characters were written in which case spr.notok

PROC so.fwrite.real64 (CHAN OF SP fs, ts, VAL INT32 streamid, VAL REAL64 r, VAL INT Ip, Dp, BYTE result)
so.write.real64
wreal64.occ
75

Write a double precision real as decimal ASCII characters to standard out.

Behaves as an invalid process if the string to write is longer than 30 characters.

Write a double precision real as decimal ASCII characters to standard out
CHAN OF SP

from server

CHAN OF SP

to server

VAL REAL64

a double precision real

VAL INT

formatting values; see REAL64TOSTRING for their effect

PROC so.write.real64 (CHAN OF SP fs, ts, VAL REAL64 r, VAL INT Ip, Dp)
sp.version
version.occ
45

Return identification information about the server and the host that it is running on.

If any of the information ( except result ) has the value zero then that information is not available. The parameter version cannot distinguish between e.g. 1.41 and 1.42.

Return identification information about the server and the host that it is running on
CHAN OF SP

from server

CHAN OF SP

to server

BYTE

on division by 10 this gives the version of the server

BYTE

identifies the host via sph. constants

BYTE

identifies the host environment via spo. constants

BYTE

identifies the interface board via spb. constants

BYTE

spr.ok if the request was successful; otherwise >= spr.operation.failed - refer to hostio.inc or iserver documentation for further details

PROC sp.version (CHAN OF SP fs, ts, BYTE version, host, os, board, result)
so.version
version.occ
70

Return identification information about the server and the host that it is running on.

If any of the information has the value zero then that information is not available. The parameter version cannot distinguish between e.g. 1.41 and 1.42.

Return identification information about the server and the host that it is running on
CHAN OF SP

from server

CHAN OF SP

to server

BYTE

on division by 10 this gives the version of the server

BYTE

identifies the host via sph. constants

BYTE

identifies the host environment via spo. constants

BYTE

identifies the interface board via spb. constants

PROC so.version (CHAN OF SP fs, ts, BYTE version, host, os, board)
so.read.echo.line
echoline.occ
47

Read a line from the keyboard, echoing it to standard out.

The line to be read is considered terminated by a carriage return, ie ASCII ^M, which has value #0D = 13. This carriage return is not included in the line, and nor is a newline ( ASCII ^J, #0A = 10 ) if present in the input. Carriage return and newline are not echoed. If an error occurs whilst reading the line this routine terminates immediately.

Read a line from the keyboard, echoing it to standard out
CHAN OF SP

from server

CHAN OF SP

to server

INT

the number of bytes in line that form the line that was read

[]BYTE

if result = spr.ok, the line that was read is in the first len bytes, the remaining bytes being undefined or if the supplied byte array was not large enough for the read line, the read line is truncated to fit; otherwise undefined

BYTE

spr.ok if no problems encountered; otherwise >= spr.operation.failed - refer to hostio.inc or iserver documentation for further details

PROC so.read.echo.line (CHAN OF SP fs, ts, INT len, []BYTE line, BYTE result)
so.fwrite.int32
wint32.occ
45

Write to the specified file stream a 32-bit integer as decimal ASCII digits, padded out with leading spaces and an optional sign to the specified field width.

If the field width is too small for the number, then it is widened as necessary; a zero value for the field width will give minimum width; a negative field width is an error.

Write to the specified file stream a 32-bit integer as decimal ASCII digits, padded out with leading spaces and an optional sign to the specified field width
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the stream to which the string representing the integer is to be sent

VAL INT32

the 32-bit integer that is desired to be written

VAL INT

the desired field width of the string

BYTE

equal to spr.ok if the string was written all right; otherwise not all of the string could be written, in which case result takes on a value of spr.notok

PROC so.fwrite.int32 (CHAN OF SP fs, ts, VAL INT32 streamid, n, VAL INT width, BYTE result)
so.write.int32
wint32.occ
94

Write to standard out a 32-bit integer as decimal ASCII digits, padded out with leading spaces and an optional sign to the specified field width.

If the field width is too small for the number, then it is widened as necessary; a zero value for the field width will give minimum width; a negative field width is an error.

Write to standard out a 32-bit integer as decimal ASCII digits, padded out with leading spaces and an optional sign to the specified field width
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the 32-bit integer that is desired to be written

VAL INT

the desired field width of the string

PROC so.write.int32 (CHAN OF SP fs, ts, VAL INT32 n, VAL INT width)
sp.seek
seek.occ
46

Set the file position for the specified stream.

Set the file position for the specified stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the open stream associated with the file the position of which is to be set

VAL INT32

the offset from origin of the new position for reading or writing. For a binary file the new position will be offset bytes, perhaps negative, from the position defined by origin. For a text file offset must be zero or a value returned by so.tell; in the latter case origin must be spo.start, and offset greater than or equal to zero.

VAL INT32

one of spo.start the start of the file spo.current the current position in the file spo.end the end of the file

BYTE

equal to spr.ok if the file position was successfully set; otherwise takes on a value indicating what the problem was: spr.bad.origin invalid origin >=spr.operation.failed the seek failed - see hostio.inc or iserver documentation for further details

PROC sp.seek (CHAN OF SP fs, ts, VAL INT32 streamid, offset, origin, BYTE result)
sp.getenv
getenv.occ
75

Return the contents of an environment variable from whatever host is being used.

The largest size the returned contents of an environment variable can be is limited by the functionality of the server, not by this routine.

Return the contents of an environment variable from whatever host is being used
CHAN OF SP

from server

CHAN OF SP

to server

VAL []BYTE

a string containing the name of the desired environment variable. name should not have more than sp.max.getenvname.size characters in it.

INT

if result is spr.ok, the number of bytes in value, starting at value[ 0 ]; (SIZE value) if result is spr.buffer.overflow; zero otherwise.

[]BYTE

the contents of the environment variable, if result is spr.ok; truncated environment variable if result is spr.buffer.overflow; undefined otherwise.

BYTE

spr.ok if the environment string successfully returned; some other value otherwise, indicating the sort of problem: spr.bad.name the specified name is a null string spr.bad.packet.size (SIZE name) > sp.max.getenvname.size spr.buffer.overflow environment string too large for value; it is truncated to fit >=spr.operation.failed could not read environment string - see hostio.inc or iserver documentation for further details

PROC sp.getenv (CHAN OF SP fs, ts, VAL []BYTE name, INT length, []BYTE value, BYTE result)
sp.overlapped.pri.multiplexor
ovprimux.occ
68

Multiplex any number of pairs of SP protocol channels onto a single pair of SP protocol channels, where the multiplexing is overlapped so that output through this routine can continue independently of the receipt of replies.

There is a relative priority to the input channels: from.user[ i ] is of higher priority than from.user[ j ] where i < j.

It is an error if the size of from.user is different to that of to.user. It is permissible for the size of from.user ( and hence to.user ) to be zero. The maximum number of bytes that can be channelled through this routine in each direction is sp.max.packet.data.size. It is assumed that replies for messages are received in the same sequence as the messages are sent.

Multiplex any number of pairs of SP protocol channels onto a single pair of SP protocol channels, where the multiplexing is overlapped so that output through this routine can continue independently of the receipt of replies
CHAN OF SP

input to this routine

CHAN OF SP

output from this routine

[]CHAN OF SP

input to this routine

[]CHAN OF SP

output from this routine

CHAN OF BOOL

input to this routine: TRUE or FALSE received on this channel will cause the routine to stop listening on the from.user channels and wait until all replies have been received before terminating; this channel has the highest priority of all input channels

[]INT

the values in queue on entry are irrelevant but the size of it is the maximum number of communications that can be output through this routine before a reply is received and to be passed back; the values in queue on termination are equally irrelevant; queue is used for storage only; if it is of zero length then no communication can be done and the routine simply waits on stopper for an input which immediately causes termination of this routine

PROC sp.overlapped.pri.multiplexor (CHAN OF SP fs, ts, []CHAN OF SP from.user, to.user, CHAN OF BOOL stopper, []INT queue)
so.fwrite.hex.int
whint.occ
48

Write an integer as hexadecimal ASCII characters preceded by the '#' character to a stream.

Write an integer as hexadecimal ASCII characters preceded by the '#' character to a stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the stream to write to

VAL INT

the integer to write out

VAL INT

the field width to use when writing the hex; if width is larger than the size of the number then the number is padded with leading 0's or F's as appropriate; if width is smaller than the size of the number then the number is truncated at the left to width characters; width does not take the '#' into account; a negative field width is an error

BYTE

spr.ok if the integer was successfully written; otherwise not all of the string could be written, in which case result takes on a value of spr.notok

PROC so.fwrite.hex.int (CHAN OF SP fs, ts, VAL INT32 streamid, VAL INT n, width, BYTE result)
so.write.hex.int
whint.occ
122

Write an integer as hexadecimal ASCII characters preceded by the '#' character to standard out.

Write an integer as hexadecimal ASCII characters preceded by the '#' character to standard out
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT

the integer to write out

VAL INT

the field width to use when writing the hex; if width is larger than the size of the number then the number is padded with leading 0's or F's as appropriate; if width is smaller than the size of the number then the number is truncated at the left to width characters; width does not take the '#' into account; a negative field width is an error

PROC so.write.hex.int (CHAN OF SP fs, ts, VAL INT n, width)
so.read.echo.int64
reint64.occ
42

Read a string containing a representation of a 64-bit decimal integer from the keyboard, and to echo it to standard out.

The integer may commence with a + or a - sign. The number typed at the keyboard must be terminated by pressing 'RETURN'.

Read a string containing a representation of a 64-bit decimal integer from the keyboard, and to echo it to standard out
CHAN OF SP

from server

CHAN OF SP

to server

INT64

if error is FALSE, the value of the integer read; otherwise undefined

BOOL

FALSE if nothing went wrong in the operation; otherwise TRUE: 1) if the integer read overflows the INT64 range 2) if a non-numeric character is found in the input string ( other than a + or - in the first character position )

PROC so.read.echo.int64 (CHAN OF SP fs, ts, INT64 n, BOOL error)
so.write
sowrite.occ
37

Write an unlimited number of bytes to a stream.

Write an unlimited number of bytes to a stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the open stream to write to

VAL []BYTE

a string of bytes ALL of which are to be written to the file

INT

this gives the number of bytes written; if length <> (SIZE data) then an error occurred

PROC so.write (CHAN OF SP fs, ts, VAL INT32 streamid, VAL []BYTE data, INT length)
sp.remove
remove.occ
55

Delete the specified file.

No path environment variable is used; what is in name is all that is considered.

Delete the specified file
CHAN OF SP

from server

CHAN OF SP

to server

VAL []BYTE

the name of the file to be deleted; the filename must fill all of the bytes of name

BYTE

equals spr.ok if the file was removed; otherwise takes on a value indicating what went wrong: spr.bad.packet.size name too large, (SIZE name) > sp.max.removename.size spr.bad.name name is null >=spr.operation.failed the delete failed - see hostio.inc or iserver documentation for further details

PROC sp.remove (CHAN OF SP fs, ts, VAL []BYTE fname, BYTE result)
so.write.string
wstring.occ
50

Write a string to standard out.

Write a string to standard out
CHAN OF SP

from server

CHAN OF SP

to server

VAL []BYTE

the string to be written, which can be any length

PROC so.write.string (CHAN OF SP fs, ts, VAL []BYTE string)
so.write.char
wstring.occ
68

Write a single character to standard out.

Write a single character to standard out
CHAN OF SP

from server

CHAN OF SP

to server

VAL BYTE

the single character to write

PROC so.write.char (CHAN OF SP fs, ts, VAL BYTE char)
so.write.string.nl
wstring.occ
82

Write a string appended by a newline to standard out.

The newline sequence is appended by this routine.

Write a string appended by a newline to standard out
CHAN OF SP

from server

CHAN OF SP

to server

VAL []BYTE

the string to be written, which can be any length

PROC so.write.string.nl (CHAN OF SP fs, ts, VAL []BYTE string)
so.write.nl
wstring.occ
127

Write a newline to standard out.

Write a newline to standard out
CHAN OF SP

from server

CHAN OF SP

to server

PROC so.write.nl (CHAN OF SP fs, ts)
so.fwrite.hex.int32
whint32.occ
44

Write a 32-bit integer as hexadecimal ASCII characters preceded by the '#' character to a file.

Write a 32-bit integer as hexadecimal ASCII characters preceded by the '#' character to a file
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the stream to write to

VAL INT32

the 32-bit integer to write out

VAL INT

the field width to use when writing the hex; if width is larger than the size of the number then the number is padded with leading 0's or F's as appropriate; if width is smaller than the size of the number then the number is truncated at the left to width characters; width does not take the '#' into account; a negative field width is an error

BYTE

spr.ok if the integer was successfully written; otherwise not all of the string could be written, in which case result takes on a value of spr.notok

PROC so.fwrite.hex.int32 (CHAN OF SP fs, ts, VAL INT32 streamid, n, VAL INT width, BYTE result)
so.write.hex.int32
whint32.occ
118

Write a 32-bit integer as hexadecimal ASCII characters preceded by the '#' character to standard out.

Write a 32-bit integer as hexadecimal ASCII characters preceded by the '#' character to standard out
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the 32-bit integer to write out

VAL INT

the field width to use when writing the hex; if width is larger than the size of the number then the number is padded with leading 0's or F's as appropriate; if width is smaller than the size of the number then the number is truncated at the left to width characters; width does not take the '#' into account; a negative field width is an error

PROC so.write.hex.int32 (CHAN OF SP fs, ts, VAL INT32 n, VAL INT width)
sp.ferror
ferror.occ
45

Test for the occurrence of an error on the specified stream.

Test for the occurrence of an error on the specified stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the stream to be tested for error

INT32

a host defined error number

INT

the number of bytes in message. Equal to zero if result >= spr.operation.failed.

[]BYTE

if result is not spr.operation.failed then this contains a ( possibly null ) message corresponding to the last file error on the specified stream; this message is [message FROM 0 FOR length]

BYTE

equals spr.ok if there was an error on the specified stream and the message corresponding to it fits into message; equals spr.buffer.overflow if there was an error on the specified stream but the message corresponding to it is too large to fit into message, in which case it is truncated to fit; >= spr.operation.failed if there was no error on the specified stream

PROC sp.ferror (CHAN OF SP fs, ts, VAL INT32 streamid, INT32 error.no, INT length, []BYTE message, BYTE result)
sp.tell
tell.occ
39

Return the current file position for the specified stream.

Return the current file position for the specified stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the open stream associated whith the file the reading/writing position of which is desired

INT32

the current file position

BYTE

equal to spr.ok if the file position determined; otherwise >= spr.operation.failed - refer to hostio.inc or iserver documentation for further details

PROC sp.tell (CHAN OF SP fs, ts, VAL INT32 streamid, INT32 position, BYTE result)
sp.open
open.occ
78

Open a file.

No path environment variable is used to locate the file; what is in name is all that is used ( cf. so.popen.read )

Open a file
CHAN OF SP

from server

CHAN OF SP

to server

VAL []BYTE

the name of the file to be opened. The name of the file must fit exactly into name, i.e. there are (SIZE name) characters in the name of the file. A directory specification may form part of name.

VAL BYTE

either spt.binary, for a file containing raw bytes only or spt.text, for a file stored as text records separated by newlines

VAL BYTE

one of spm.input open existing file for reading spm.output open new file, or truncate existing one, for writing spm.append open new file, or append to existing one, for writing spm.existing.update open existing file for update ( reading and writing ), starting at the beginning of the file spm.new.update open new file, or truncate existing one, for update spm.append.update open new file, or append to existing one, for update When a file is opened for update then the resulting stream may be used for input and output.

INT32

if result is spr.ok, the identification number of the stream associated with the file that was opened; undefined otherwise

BYTE

spr.ok if the file was successfully opened; otherwise it takes on a value indicating what went wrong: spr.bad.packet.size name too large: (SIZE name) > sp.max.openname.size spr.bad.name null file name spr.bad.type invalid type spr.bad.mode invalid mode >=spr.operation.failed the open failed - see hostio.inc or iserver documentation for further details

PROC sp.open (CHAN OF SP fs, ts, VAL []BYTE fname, VAL BYTE type, mode, INT32 streamid, BYTE result)
so.read.echo.hex.int64
rehint64.occ
47

Read a 64-bit integer in ( two's complement ) hexadecimal form from the keyboard, and to echo it to standard out.

The hexadecimal number must begin with one of '#', '$' or '%'; a sign is not allowed ( nor necessary since the most significant bit indicates the sign ). A '#' and '$' mean exactly the same thing: the following digits form a hex integer. A '%' means add the given hex integer to MOSTNEG INT64 using modulo arithmetic to give the result. Both upper and lower case hex digits are permissible. The number typed at the keyboard must be terminated by pressing 'RETURN'.

Read a 64-bit integer in ( two's complement ) hexadecimal form from the keyboard, and to echo it to standard out
CHAN OF SP

from server

CHAN OF SP

to server

INT64

if error is FALSE, the value of the hexadecimal number read; otherwise undefined

BOOL

FALSE if everything was in order; TRUE otherwise: 1) if the integer overflows the INT64 range; 2) if there is a non-hex character in the string read from the keyboard ( other than #, $, or % in the first character position )

PROC so.read.echo.hex.int64 (CHAN OF SP fs, ts, INT64 n, BOOL error)
sp.close
close.occ
41

Close a stream.

Before closing the stream unwritten data is flushed or any unread buffered input is discarded.

Close a stream
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

the identification number of the open stream to be closed

BYTE

equal to spr.ok if the stream closed properly; otherwise >= spr.operation.failed - refer to hostio.inc or iserver documentation for further details

PROC sp.close (CHAN OF SP fs, ts, VAL INT32 streamid, BYTE result)
sp.send.packet
packet.occ
34

Send an SP protocol packet.

Send an SP protocol packet
CHAN OF SP

the channel on which to send the packet

VAL []BYTE

the packet to send

BOOL

FALSE if the packet size is greater than or equal to sp.min.packet.data.size, and is less than or equal to sp.max.packet.data.size, and is even; TRUE otherwise, in which case the packet is not sent

PROC sp.send.packet (CHAN OF SP ts, VAL []BYTE packet, BOOL error)
sp.receive.packet
packet.occ
54

Receive an SP protocol packet.

Receive an SP protocol packet
CHAN OF SP

the channel on which to receive the packet

INT16

the number of bytes in the received packet

[]BYTE

the received packet, left justified

BOOL

TRUE if length is greater than sp.max.packet.data.size; FALSE otherwise

PROC sp.receive.packet (CHAN OF SP fs, INT16 length, []BYTE packet, BOOL error)
sp.multiplexor
mux.occ
60

Multiplex any number of pairs of SP protocol channels onto a single pair of SP protocol channels.

It is an error if the number of channels in from.user is not equal to that in to.user. It is permissible for from.user ( and hence to.user ) to be null arrays. No more than sp.max.packet.data.size bytes can be buffered as they passes through this routine. Primary input to this routine must be on the guard input channels from.user[ i ] or stopper. Input on from.user[ i ] is stored, output on ts, then a reply is expected on fs; this reply is stored and then output on to.user[ i ], and all this must finish before any new input can be received on any of the from.user channels or stopper. To attempt some degree of fairness, there is a heirarchy of priorities from from.user with index i for SIZE from.user, using modulo SIZE from.user on the indexes, with i starting from 0 and incrementing by one after each input accepted.

Multiplex any number of pairs of SP protocol channels onto a single pair of SP protocol channels
CHAN OF SP

input to this routine

CHAN OF SP

output from this routine

[]CHAN OF SP

input to this routine

[]CHAN OF SP

output from this routine

CHAN OF BOOL

input to this routine: TRUE or FALSE received on this channel will cause the routine to terminate; this channel has the highest priority amongst the channels

PROC sp.multiplexor (CHAN OF SP fs, ts, []CHAN OF SP from.user, to.user, CHAN OF BOOL stopper)
sp.exit
exit.occ
39

Terminate the server.

Terminate the server
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

a value which the server passes directly on to the host environment, except in the following two cases: sps.success - a host specific success result is passed on sps.failure - a host specific failure result is passed on

BYTE

equals spr.ok if the operation succeeded; otherwise >= spr.operation.failed - see hostio.inc or iserver documentation for further details

PROC sp.exit (CHAN OF SP fs, ts, VAL INT32 status, BYTE result)
so.exit
exit.occ
61

Terminate the server.

Terminate the server
CHAN OF SP

from server

CHAN OF SP

to server

VAL INT32

a value which the server passes directly on to the host environment, except in the following two cases: sps.success - a host specific success result is passed on sps.failure - a host specific failure result is passed on

PROC so.exit (CHAN OF SP fs, ts, VAL INT32 status)
button

A Button library that uses OpenGL and SDL to render a window of clickable/configurable buttons. To use this library:

`#INCLUDE "button.module"`

A Button library that uses OpenGL and SDL to render a window of clickable/configurable buttons

Damian Dimmich <djd20@kent.ac.uk>

CLICK
button.inc
34

Sends a copy of the name of the button (when clicked).

Sends a copy of the name of the button (when clicked)
MOBILE []BYTE
PROTOCOL CLICK IS MOBILE []BYTE:
BUTTONCFG
button.inc
37

This is used for button setup.

This is used for button setup
PROTOCOL BUTTONCFG
enable
button.inc
39

enable button

enable button
enable
disable
button.inc
40

disable button

disable button
disable
name
button.inc
41

Change the name of the button

Change the name of the button
MOBILE []BYTE
name; MOBILE []BYTE
colour
button.inc
42

set the button color by specifying Red, Blue and Green values

set the button color by specifying Red, Blue and Green values
REAL32
REAL32
REAL32
colour; REAL32; REAL32; REAL32
makeRasterFont
font2.occ
14

This initialises the font included and must be called before any of the other PROC's can be used.

This initialises the font included and must be called before any of the other PROC's can be used
RESULT INT

will contain a value that is needed when calling the other PROC's. It should be passed uninitialised.

PROC makeRasterFont(RESULT INT fontOffset)
printString
font2.occ
35

Print a string in an OpenGL context. Once makeRasterFont has run, you can use this to print strings in an OpenGL context. Generally you will want to set the location you want to render the font by making a call to glRasterPos2i or similar.

Print a string in an OpenGL context
VAL []BYTE

the string you want to render

VAL INT

the value that you recieved from calling makeRasterFont

PROC printString(VAL []BYTE s, VAL INT fontOffset)
printStringi
font2.occ
56

Print a string of a given length in an OpenGL context. Once makeRasterFont has run, you can use this to print strings in an OpenGL context. This PROC is like printString but it allows you to choose how many characters in a string you want to print. Generally you will want to set the location you want to render the font by making a call to glRasterPos2i or similar.

Print a string of a given length in an OpenGL context
VAL []BYTE

the string you want to render

VAL INT

the value that you recieved from calling makeRasterFont

VAL INT

the number of characters you want to print

PROC printStringi(VAL []BYTE s, VAL INT fontOffset, VAL INT length)
setup.button.window
button.occ
314

Sets up and configures the button network. This is the only proc that should be run in this library by a user.

Sets up and configures the button network
[][]CHAN CLICK

this is the click notification channel. Buttons send down these channels when they are clicked.

[][]CHAN BUTTONCFG

these are the button configuration channels - they can be used for changing channel color, text, etc..

CHAN BYTE

generally one would pass the error (err) channel as a parameter here so that the library can notify the user in case graphics initialisation goes wrong.

CHAN BYTE

this channel should be checked as it carries quit signals (like when someone closes the application window)

VAL INT

the window size in the X direction (nr of pixels)

VAL INT

the window size in the Y direction (nr of pixels) to the program. This allows a clean shutdown of the network.

PROC setup.button.window([][]CHAN CLICK click!, [][]CHAN BUTTONCFG configure?, CHAN BYTE scr!, CHAN BYTE cntrl.quit!, VAL INT size.x, size.y)
trap

An asynchronous network messaging system for occam-pi.

The Trap nameserver trapns must be running in order for Trap programs to find each other. By default, it will assume the nameserver is running on localhost; to specify where it really is, create a file called .trap.ns in the current directory containing the hostname.

An asynchronous network messaging system for occam-pi
trap.start
trap.occ
434

Start the Trap server.

Start the Trap server
VAL INT
RESULT SHARED TRAP.CT!
PROC trap.start (VAL INT node, RESULT SHARED TRAP.CT! control)
trap.open
trap.occ
443

Open a Trap port.

Open a Trap port
SHARED TRAP.CT!
VAL INT
RESULT TRAP.CHANNEL.CT?
PROC trap.open (SHARED TRAP.CT! trap, VAL INT port, RESULT TRAP.CHANNEL.CT? chan)
trap.send
trap.occ
453

Send data to a Trap port.

Send data to a Trap port
SHARED TRAP.CT!
VAL INT
VAL INT
MOBILE []BYTE
PROC trap.send (SHARED TRAP.CT! trap, VAL INT node, port, MOBILE []BYTE data)
TRAP.CHANNEL.CT
trap.inc
43

Interface for a listening Trap port.

Interface for a listening Trap port
CHAN TYPE TRAP.CHANNEL.CT
msg?
trap.inc
45

Messages received from the port.

Messages received from the port
CHAN MOBILE []BYTE
open
trap.inc
52

Replies .

Replies
INT
open; INT
TRAP.CT
trap.inc
62

Handle to the Trap server.

Handle to the Trap server
CHAN TYPE TRAP.CT
overwriting-buffer

Generic N-place overwriting buffer. To use this in your code, you'll need to provide a definition of the data type `ITEM` and then `#INCLUDE "overwriting-buffer.inc"`. You can use channel retyping to connect it to existing channels.

Generic N-place overwriting buffer
overwriting.buffer
overwriting-buffer.inc
28

The buffer process.

The buffer process
CHAN ITEM
CHAN ITEM
CHAN BOOL
VAL INT
INLINE PROC overwriting.buffer (CHAN ITEM in?, out!, CHAN BOOL kill?, VAL INT size)
forall

Definitions available to all occam-pi programs.

The definitions in this module are provided by the compiler or the support library, and are automatically made available for all programs. It is not necessary to explicitly include forall.module.

Definitions available to all occam-pi programs
UNPACKSN
unpacksn.occ
44

Unpack a real number in IEEE single precision format

The sign of X is ignored.

Unpack a real number in IEEE single precision format
VAL INT

a REAL32 which has been retyped to an INT

INT

the fractional part with the implicit bit before the binary point restored

INT

the biased exponent, i.e. the actual exponent + 127

INT

0 if X is zero; 1 if X is a normalised or denormalised number; 2 if X is "infinity"; 3 if X is a Not-a-Number

INT, INT, INT FUNCTION UNPACKSN ( VAL INT X )
RealIDiv
ridiv.occ
42

Perform an unsigned part divide operation.

Perform an unsigned part divide operation
VAL INT

the most significant word of the dividend

VAL INT

the middle word of the dividend

VAL INT

the least significant word of the dividend

VAL [2]INT

the two words of the divisor

INT

the quotient

INT

the most significant word of the remainder

INT

the least significant word of the remainder

INT, INT, INT FUNCTION RealIDiv (VAL INT Hi, Lo, Guard, VAL [2]INT Yfrac)
LONGADD
intrinsics.occ
44

Signed addition with a carry in.

(a + b) + carry

Overflow is an error.

Signed addition with a carry in
VAL INT

Integers to add.

VAL INT

Carry flag.

INT

Addition of a and b.

INT FUNCTION LONGADD (VAL INT a, b, carry)
LONGSUM
intrinsics.occ
55

Unsigned addition with a carry in and carry out.

(a + b) + carry

Unsigned addition with a carry in and carry out
VAL INT

Integers to add.

VAL INT

Carry in flag.

INT

The resulting carry out flag.

INT

The sum of a and b.

INT, INT FUNCTION LONGSUM (VAL INT a, b, carry)
LONGSUB
intrinsics.occ
67

Signed subtraction with a borrow in.

(b - a) - borrow

Overflow is an error.

Signed subtraction with a borrow in
VAL INT

Integers to subtract.

VAL INT

Borrow flag.

INT

Subtraction of a and borrow from b.

INT FUNCTION LONGSUB (VAL INT a, b, borrow)
LONGDIFF
intrinsics.occ
78

Unsigned subtraction with a borrow in and a borrow out.

(b - a) - borrow

Unsigned subtraction with a borrow in and a borrow out
VAL INT

Integers to subtract.

VAL INT

Borrow in flag.

INT

Borrow out flag.

INT

Subtraction of a and borrow from b.

INT, INT FUNCTION LONGDIFF (VAL INT a, b, borrow)
LONGPROD
intrinsics.occ
89

Unsigned multiplication with a carry in, producing a double length result.

(a * b) + carry

Unsigned multiplication with a carry in, producing a double length result
VAL INT

Integers to multiply.

VAL INT

Carry in flag.

INT

High order word of result.

INT

Low order word of result.

INT, INT FUNCTION LONGPROD (VAL INT a, b, carry)
LONGDIV
intrinsics.occ
103

Unsigned division of a double length number, producing a single length result.

[u1, u0] / v

Overflow is an error.

Unsigned division of a double length number, producing a single length result
VAL INT

High order word of quantity being divided.

VAL INT

Low order word of quantity being divided.

VAL INT

Divisor.

INT

High order word of result.

INT

Low order word of result.

INT, INT FUNCTION LONGDIV (VAL INT u1, u0, v)
SHIFTRIGHT
intrinsics.occ
115

Right shift on a double length quantity.

[a1, a0] >> shift

Right shift on a double length quantity
VAL INT

High order word of quantity being shifted.

VAL INT

Low order word of quantity being shifted.

VAL INT

Number of bit places to shift right.

INT

High order word of result.

INT

Low order word of result.

INT, INT FUNCTION SHIFTRIGHT (VAL INT a1, a0, shift)
SHIFTLEFT
intrinsics.occ
127

Left shift on a double length quantity.

[a1, a0] << shift

Left shift on a double length quantity
VAL INT

High order word of quantity being shifted.

VAL INT

Low order word of quantity being shifted.

VAL INT

Number of bit places to shift left.

INT

High order word of result.

INT

Low order word of result.

INT, INT FUNCTION SHIFTLEFT (VAL INT a1, a0, shift)
NORMALISE
intrinsics.occ
140

Normalise a double length quantity.

Shift the double word quantity left until the most significant bit is one.

Normalise a double length quantity
VAL INT

High order word of quantity being normalised.

VAL INT

Low order word of quantity being normalised.

INT

Number of places shifted.

INT

High order word of result.

INT

Low order word of result.

INT, INT, INT FUNCTION NORMALISE (VAL INT a1, a0)
ASHIFTRIGHT
intrinsics.occ
151

Arithmetic right shift on a double length quantity.

The operand is expanded to a double length quantity, then arithmetically shifted right, and the low order word returned.

Arithmetic right shift on a double length quantity
VAL INT

The integer being shifted.

VAL INT

Number of bit places to shift right.

INT
INT FUNCTION ASHIFTRIGHT (VAL INT a, shift)
ASHIFTLEFT
intrinsics.occ
162

Arithmetic left shift on a double length quantity.

The operand is expanded to a double length quantity, then arithmetically shifted left, and the low order word returned.

Arithmetic left shift on a double length quantity
VAL INT

The integer being shifted.

VAL INT

Number of bit places to shift left.

INT
INT FUNCTION ASHIFTLEFT (VAL INT a, shift)
ROTATERIGHT
intrinsics.occ
170

Rotate a word right.

Rotate a word right
VAL INT

The integer being rotated.

VAL INT

Number of bit places to rotate right.

INT

val rotated shift places to the right.

INT FUNCTION ROTATERIGHT (VAL INT val, shift)
ROTATELEFT
intrinsics.occ
178

Rotate a word left.

Rotate a word left
VAL INT

The integer being rotated.

VAL INT

Number of bit places to rotate left.

INT

val rotated shift places to the left.

INT FUNCTION ROTATELEFT (VAL INT val, shift)
CAUSEERROR
intrinsics.occ
186

Set the error flag.

Sets the runtime error flag, causing either the runtime to error out or the current process to stop, depending on compile-time flags and runtime settings.

Set the error flag
PROC CAUSEERROR ()
RESCHEDULE
intrinsics.occ
195

Force rescheduling.

This gives the scheduler an opportunity to switch to another process. It may simply return control to the caller if no other process needs to run.

Force rescheduling
PROC RESCHEDULE ()
ASSERT
intrinsics.occ
209

Causes an error if a condition is false.

Asserts that a given condition is true. If the condition is false then the behaviour is that of .

The compiler may detect false assertions at compile time through static analysis.

Causes an error if a condition is false
VAL BOOL

The condition to test.

PROC ASSERT (VAL BOOL condition)
WSSIZEOF
intrinsics.occ
219

Calculate the workspace size (in words) of a process.

Calculate the workspace size (in words) of a process
PROC

Process for which the workspace size is to be calculated.

INT

Number of workspace words required by process.

INT FUNCTION WSSIZEOF (PROC process)
VSSIZEOF
intrinsics.occ
227

Calculate the vectorspace size (in words) of a process.

Calculate the vectorspace size (in words) of a process
PROC

Process for which the vectorspace size is to be calculated.

INT

Number of vectorspace words required by process.

INT FUNCTION VSSIZEOF (PROC process)
GETPRI
intrinsics.occ
251

Get the priority level of the current process.

Priority 0 is the highest priority available, and priority 31 is the lowest priority. Priorities are only hints to the scheduler; you must not assume that high-priority processes will always run before low-priority processes.

Get the priority level of the current process
RESULT INT

The priority of the calling process.

PROC GETPRI (RESULT INT pri)
SETPRI
intrinsics.occ
262

Set the priority level of the current process.

See for the meanings of priority levels.

Set the priority level of the current process
VAL INT

The requested priority for the calling process. Invalid values will be ignored.

PROC SETPRI (VAL INT pri)
INCPRI
intrinsics.occ
270

Obsolete synonym for .

Obsolete synonym for
PROC INCPRI ()
DECPRI
intrinsics.occ
278

Obsolete synonym for .

Obsolete synonym for
PROC DECPRI ()
RAISE.PRIORITY
intrinsics.occ
286

Raise the priority of the current process by one level.

See for the meanings of priority levels.

Raise the priority of the current process by one level
PROC RAISE.PRIORITY ()
LOWER.PRIORITY
intrinsics.occ
294

Lower the priority of the current process by one level.

See for the meanings of priority levels.

Lower the priority of the current process by one level
PROC LOWER.PRIORITY ()
GETAFF
intrinsics.occ
306

Get the affinity of the current process.

The affinity is a bitmap of logical execution units on which this process may run. The value `-1` means that the process may run on any execution unit.

Get the affinity of the current process
RESULT INT

The affinity of the calling process.

PROC GETAFF (RESULT INT aff)
SETAFF
intrinsics.occ
317

Set the affinity of the current process.

See for the meanings of affinity values.

Set the affinity of the current process
VAL INT

The requested affinity for the calling process. Invalid values will be ignored.

PROC SETAFF (VAL INT aff)
KILLCALL
intrinsics.occ
331

Kill a blocking FFI call.

Kill a `BX.` blocking foreign-function-interface call associated with a channel.

Kill a blocking FFI call
CHAN OF ANY

The channel passed when making the blocking call.

INT

`0` if termination was successfully initiated; `-1` if the call has not yet started; `1` if the call has already terminated.

PROC KILLCALL (CHAN OF ANY chan, INT res)
WAIT.FOR.INTERRUPT
intrinsics.occ
344

Wait for a hardware interrupt.

This call is specific to RMoX, and will not be useful for most occam-pi programs.

Wait for a hardware interrupt
VAL INT

The number of the interrupt to wait for.

VAL INT

CPU or interrupt mask, implementation dependent.

RESULT INT

The number of missed interrupts.

PROC WAIT.FOR.INTERRUPT (VAL INT n, mask, RESULT INT count)
BIND.MOBILE
intrinsics.occ
365

Bind a piece of (virtual) memory to a mobile.

Associates a piece of memory with a mobile. The memory at the given address becomes the backing store for the mobile. This is intended for use with `EMPTY` mobiles.

For example, to associate a mobile with memory address `#1000`: `MOBILE []BYTE x: SEQ x := MOBILE EMPTY [1024]BYTE BIND.MOBILE (x, #1000)`

Bind a piece of (virtual) memory to a mobile
MOBILE.ANY

The mobile to bind.

VAL INT

The address of the memory.

PROC BIND.MOBILE (MOBILE.ANY mobile, VAL INT addr)
BIND.MOBILE.HW
intrinsics.occ
377

Bind a piece of physical memory to a mobile.

Acts as , except a physical address is used. This may be converted to a virtual address by the runtime system.

Bind a piece of physical memory to a mobile
MOBILE.ANY

The mobile to bind.

VAL INT

Hardware address of the memory.

PROC BIND.MOBILE.HW (MOBILE.ANY mobile, VAL INT hw.addr)
DMA.CAPABLE
intrinsics.occ
389

Test whether a mobile is DMA capable.

Test to see if a mobile is backed by DMA-accessible memory. The `HWADDROF` operator is only valid on DMA-capable mobiles.

Test whether a mobile is DMA capable
MOBILE.ANY

The mobile to test.

BOOL

Whether the mobile is DMA accessible by hardware.

BOOL FUNCTION DMA.CAPABLE (MOBILE.ANY mobile)
MAKE.DMA.CAPABLE
intrinsics.occ
399

Move a mobile to DMA capable memory.

Make a mobile DMA-capable. If necessary, this will reallocate the mobile in DMA-accessible memory and copy the contents over. If the mobile is already DMA-capable, this is has no effect.

Move a mobile to DMA capable memory
MOBILE.ANY

The mobile to upgrade.

PROC MAKE.DMA.CAPABLE (MOBILE.ANY mobile)
RESIZE.MOBILE.ARRAY.1D
intrinsics.occ
416

Resize a 1D mobile array.

Change the size of a one-dimensional mobile array. The memory associated with the mobile may or may not be reallocated by the runtime system depending on its memory allocator.

All data within the bounds of the new size of the array, and present in the old bounds of the array will be preserved.

Resize a 1D mobile array
MOBILE.ANY

Mobile array to resize.

VAL INT

The new element count.

PROC RESIZE.MOBILE.ARRAY.1D (MOBILE.ANY mobile, VAL INT count)
MEMORY.BARRIER
intrinsics.occ
430

Generate a read-write memory barrier.

A memory barrier is unrelated to occam-pi `BARRIER`s; it is a synchronisation point for memory operations within a computer system. After the completion of a memory barrier instruction, the affected memory operations are guaranteed to be visible to peripherals and other processors.

This is equivalent to executing both and .

Generate a read-write memory barrier
PROC MEMORY.BARRIER ()
READ.MEMORY.BARRIER
intrinsics.occ
438

Generate a read memory barrier.

See for the semantics of memory barriers.

Generate a read memory barrier
PROC READ.MEMORY.BARRIER ()
WRITE.MEMORY.BARRIER
intrinsics.occ
446

Generate a write memory barrier.

See for the semantics of memory barriers.

Generate a write memory barrier
PROC WRITE.MEMORY.BARRIER ()
ttyutil

A utility library for terminal-based input and output.

This library provides various utilities for use with VT220 compatible terminals.

A utility library for terminal-based input and output
ttyutil.display
ttyutil.occ
50

Basic display process.

Basic display process
CHAN TTYUTIL.DPY

Display commands in.

CHAN BYTE

Screen output.

PROC ttyutil.display (CHAN TTYUTIL.DPY in?, CHAN BYTE out!)
ttyutil.display.shared
ttyutil.occ
105

Display process for shared screen output.

Display process for shared screen output
CHAN TTYUTIL.DPY

Display commands in.

SHARED CHAN BYTE

Screen output.

PROC ttyutil.display.shared (CHAN TTYUTIL.DPY in?, SHARED CHAN BYTE out!)
ttyutil.keyhandler
ttyutil.occ
222

Keyboard handler.

Keyboard handler
CHAN BYTE

Raw keyboard input in.

CHAN INT

Kill channel.

CHAN INT

Processed keystrokes (see ).

PROC ttyutil.keyhandler (CHAN BYTE in?, CHAN INT kill?, CHAN INT out!)
ttyutil.menu
ttyutil.occ
278

Produces a controllable on-screen menu. Expects the first inputs to be addition of new menu items.

Produces a controllable on-screen menu
VAL INT

X position on screen.

VAL INT

Y position on screen.

VAL INT

Width of menu.

VAL INT

Height of menu.

VAL BOOL

Whether or not to draw a border.

CHAN TTYUTIL.MENU

Menu control channel (including keys).

SHARED CHAN TTYUTIL.DPY

Display output channel.

PROC ttyutil.menu (VAL INT x, y, width, height, VAL BOOL border, CHAN TTYUTIL.MENU in?, SHARED CHAN TTYUTIL.DPY out!)
ANSI
ttyutil.inc
33

VT220/ANSI rendering attributes.

VT220/ANSI rendering attributes
ANSI.NORMAL
ttyutil.inc
34

Normal/reset.

Normal/reset
VAL BYTE ANSI.NORMAL
ANSI.BOLD
ttyutil.inc
35

Bold rendering.

Bold rendering
VAL BYTE ANSI.BOLD
ANSI.INVERSE
ttyutil.inc
36

Inverse rendering.

Inverse rendering
VAL BYTE ANSI.INVERSE
ANSI.BLINK
ttyutil.inc
37

Blinking.

Blinking
VAL BYTE ANSI.BLINK
ANSI.FG.BLACK
ttyutil.inc
39

Black foreground.

Black foreground
VAL BYTE ANSI.FG.BLACK
ANSI.FG.RED
ttyutil.inc
40

Red foreground.

Red foreground
VAL BYTE ANSI.FG.RED
ANSI.FG.GREEN
ttyutil.inc
41

Green foreground.

Green foreground
VAL BYTE ANSI.FG.GREEN
ANSI.FG.YELLOW
ttyutil.inc
42

Yellow foreground.

Yellow foreground
VAL BYTE ANSI.FG.YELLOW
ANSI.FG.BLUE
ttyutil.inc
43

Blue foreground.

Blue foreground
VAL BYTE ANSI.FG.BLUE
ANSI.FG.MAGENTA
ttyutil.inc
44

Magenta foreground.

Magenta foreground
VAL BYTE ANSI.FG.MAGENTA
ANSI.FG.CYAN
ttyutil.inc
45

Cyan foreground.

Cyan foreground
VAL BYTE ANSI.FG.CYAN
ANSI.FG.WHITE
ttyutil.inc
46

White foreground.

White foreground
VAL BYTE ANSI.FG.WHITE
ANSI.BG.BLACK
ttyutil.inc
48

Black background.

Black background
VAL BYTE ANSI.BG.BLACK
ANSI.BG.RED
ttyutil.inc
49

Red background.

Red background
VAL BYTE ANSI.BG.RED
ANSI.BG.GREEN
ttyutil.inc
50

Green background.

Green background
VAL BYTE ANSI.BG.GREEN
ANSI.BG.YELLOW
ttyutil.inc
51

Yellow background.

Yellow background
VAL BYTE ANSI.BG.YELLOW
ANSI.BG.BLUE
ttyutil.inc
52

Blue background.

Blue background
VAL BYTE ANSI.BG.BLUE
ANSI.BG.MAGENTA
ttyutil.inc
53

Magenta background.

Magenta background
VAL BYTE ANSI.BG.MAGENTA
ANSI.BG.CYAN
ttyutil.inc
54

Cyan background.

Cyan background
VAL BYTE ANSI.BG.CYAN
ANSI.BG.WHITE
ttyutil.inc
55

White background.

White background
VAL BYTE ANSI.BG.WHITE
KEY
ttyutil.inc
57

Key constants. Values of 0-255 represent ASCII/locale-specific characters.

Key constants
KEY.UP
ttyutil.inc
60

Arrow keys.

Arrow keys
VAL INT KEY.UP
KEY.F1
ttyutil.inc
66

Function keys.

Function keys
VAL INT KEY.F1
TTYUTIL.DPY
ttyutil.inc
97

Basic display protocol.

Basic display protocol
PROTOCOL TTYUTIL.DPY
following
ttyutil.inc
99

Number of outputs to follow (when dealing with an unshared

Number of outputs to follow (when dealing with an unshared
INT
following; INT
clear.screen
ttyutil.inc
103

Clear the screen.

Clear the screen
clear.screen
int.xy
ttyutil.inc
104

Integer at specific position (x, y, value).

Integer at specific position (x, y, value)
INT
INT
INT
int.xy; INT; INT; INT
string.xy
ttyutil.inc
105

String at specific position (x, y, string).

String at specific position (x, y, string)
INT
INT
MOBILE []BYTE
string.xy; INT; INT; MOBILE []BYTE
colours
ttyutil.inc
106

Set ANSI/VT220 attributes (see ).

Set ANSI/VT220 attributes (see )
MOBILE []BYTE
colours; MOBILE []BYTE
quit
ttyutil.inc
108

Quit the display process.

Quit the display process
quit
TTYUTIL.MENU.IN
ttyutil.inc
112

Menu item handler input protocol (menu -> handler).

Menu item handler input protocol (menu -> handler)
PROTOCOL TTYUTIL.MENU.IN
get.text
ttyutil.inc
114

Get item text.

Get item text
get.text
key.left
ttyutil.inc
115

Key item left.

Key item left
key.left
key.right
ttyutil.inc
116

Key item right.

Key item right
key.right
key.other
ttyutil.inc
117

Other key (e.g. return).

Other key (e.g
INT
key.other; INT
quit
ttyutil.inc
119

Menu quit (signals handler to quit).

Menu quit (signals handler to quit)
quit
TTYUTIL.MENU.OUT
ttyutil.inc
123

Menu item handler output protocol (handler -> menu).

Menu item handler output protocol (handler -> menu)
PROTOCOL TTYUTIL.MENU.OUT
text
ttyutil.inc
125

Text update for menu.

Text update for menu
MOBILE []BYTE
text; MOBILE []BYTE
remove
ttyutil.inc
126

Remove this item (self).

Remove this item (self)
remove
TTYUTIL.MENUITEM
ttyutil.inc
130

Menu item channel type.

Menu item channel type
CHAN TYPE TTYUTIL.MENUITEM
in?
ttyutil.inc
132

Menu item handler requests.

Menu item handler requests
CHAN TTYUTIL.MENU.IN
out!
ttyutil.inc
133

Menu item handler responses.

Menu item handler responses
CHAN TTYUTIL.MENU.OUT
TTYUTIL.MENU
ttyutil.inc
137

Menu control protocol.

Menu control protocol
PROTOCOL TTYUTIL.MENU
add.item
ttyutil.inc
139

Add menu item.

Add menu item
TTYUTIL.MENUITEM!
add.item; TTYUTIL.MENUITEM!
insert.item
ttyutil.inc
140

Add menu item at a specific position.

Add menu item at a specific position
INT
TTYUTIL.MENUITEM!
insert.item; INT; TTYUTIL.MENUITEM!
del.item
ttyutil.inc
141

Delete a particular item.

Delete a particular item
INT
del.item; INT
quit
ttyutil.inc
142

Shutdown menu.

Shutdown menu
quit
key.in
ttyutil.inc
144

Incoming key press.

Incoming key press
INT
key.in; INT
sdlraster

SDL raster interface.

This module provides an SDL-based portable bitmap ("raster") display.

sdlraster uses the ring pattern. arrays cycle around a ring of processes. One of the processes is (or ), which generates fresh rasters on startup, and draws rasters it receives to the display before passing them around the ring again. The other processes in the ring can do whatever they like to the rasters before passing them on.

To shut down the ring, a raster of height zero is sent around the ring, replacing one of the existing rasters. Each process passes it on and then exits, aside from the process that sent it which just waits to receive it again before exiting. (You can use to do this.)

To avoid races with multiple shutdown messages, only one process is permitted to initiate shutdown; that is, if you're using , then you mustn't try to shut down the ring from any other process.

Programs that don't care about input events can use , which simply shuts down the ring when the user closes the window. If you want to handle keyboard or mouse input, provides an extra channel which delivers SDL events as structures; in that case, you must shut down the ring using when you want to exit.

(This module also provides the old `SDLRaster` and `miniraster` interfaces for backwards compatibility, but you should not use them in new code.)

SDL raster interface
MAX.RASTERS
sdlraster.occ
65

The maximum number of initial rasters allowed in the ring.

The maximum number of initial rasters allowed in the ring
VAL INT MAX.RASTERS
EVENT.CHECK.TIME
sdlraster.occ
68

The time between event checks, in nanoseconds.

The time between event checks, in nanoseconds
VAL INT EVENT.CHECK.TIME
raster.clear
sdlraster.occ
74

Clear a raster to a solid colour.

Clear a raster to a solid colour
RASTER
VAL INT
PROC raster.clear (RASTER r, VAL INT colour)
raster.convert.event
sdlraster.occ
107

Convert an into a .

Convert an into a
SDL.Event
RESULT RASTER.EVENT
PROC raster.convert.event (SDL.Event event, RESULT RASTER.EVENT ev)
raster.display
sdlraster.occ
280

Raster display process. Generate a number of rasters on startup, and draw incoming rasters to the display. In addition, report any events received on the display.

This process provides `num.rasters + 1` places of buffering in the ring.

Raster display process
VAL []BYTE

Window title

VAL INT

Width of window

VAL INT

Height of window

VAL INT

Initial number of rasters to inject into the ring. This must be at least 1, and no more than .

CHAN RASTER

Raster input

CHAN RASTER

Raster output

CHAN RASTER.EVENT

Input events. When it shuts down, the raster will send a event as its last message, so you know when to stop reading from this channel.

PROC raster.display (VAL []BYTE title, VAL INT width, height, num.rasters, CHAN RASTER in?, out!, CHAN RASTER.EVENT events!)
raster.shutdown
sdlraster.occ
347

Shut down a raster ring. You must have read a raster from the ring yourself before calling this. This outputs an empty raster, and then discards incoming rasters until the empty one's received again.

Shut down a raster ring
CHAN RASTER
CHAN RASTER
PROC raster.shutdown (CHAN RASTER in?, out!)
raster.display.simple
sdlraster.occ
408

Simple interface for programs that don't need to handle events. This automatically shuts down the ring when the window is closed; otherwise it behaves like .

Simple interface for programs that don't need to handle events
VAL []BYTE
VAL INT
VAL INT
VAL INT
CHAN RASTER
CHAN RASTER
PROC raster.display.simple (VAL []BYTE title, VAL INT width, height, num.buffers, CHAN RASTER in?, out!)