All functions
444 functions, A to Z.
A
- alert
- Shows a message with an OK button.
- ambient
- Sets how bright the light is everywhere in the scene, even where no light shines.
- applylevelprobes
- Gives a built level's probes their cube maps from a
.prbfile's bytes, so they don't need baking again. - askstring
- Asks the person to type some text.
B
- bakeprobes
- Bakes any of a level's own probes that aren't baked yet, a little at a time.
- billboard3d
- Draws a picture standing upright at a place, turned to face
camera3d's camera, for trees and people. - box
- Draws a filled rectangle with an outline in another colour.
- btn
- Tells you whether a key is held down right now.
- btnp
- Tells you whether a key was pressed this frame.
- buildlevel
- Builds a level's table into a level that draws and collides.
C
- camera
- Moves everything drawn after it by
-x,-y. - camera3d
- Sets where the camera for meshes is and which way it looks.
- camfog3d
- Adds fog to what a camera sees, so far-off things fade into a colour.
- campick3d
- Finds the pickable thing under a point in a camera's picture, such as the mouse pointer.
- camproject3d
- Works out where a place in the world shows up in a camera's picture, for putting labels over things.
- canpickfiles
- Tells you whether
pickfilesworks here. - centertext
- Writes text centred on a point across, which is handy for titles and buttons.
- circ
- Draws the outline of a circle.
- circfill
- Draws a filled circle.
- clamp
- Keeps a number between two limits, like a player's position inside the screen.
- clear3d
- Starts a frame of meshes: it clears the depth buffer, and the picture too if you give a colour.
- clearworld
- Throws the whole scene away.
- clip
- Limits drawing to a rectangle, so nothing is drawn outside it.
- close
- Closes your window, asking first if it has unsaved work.
- cls
- Fills the whole window, or the picture you're drawing into, with one colour.
- clscolor3d
- Sets the colour the picture is cleared to before a camera draws, such as the sky.
- collide3d
- Gives a thing a collision type, so
collisionsandupdateworldcan make it bump into things. - collisions
- Makes things of one collision type bump into things of another.
- color3d
- Paints a thing all one colour, in place of its texture.
- confirm
- Asks a question with OK and Cancel buttons.
- cube3d
- Makes a box mesh, seen from outside, centred on 0, 0, 0.
- cube3dsides
- Makes a box mesh like
cube3d, with different pictures on its sides, top and bottom. - cubemaps
- Finds out whether the graphics card can draw baked reflections (cube maps).
D
- decodepicture
- Makes a picture from PNG data in memory, such as a file you've read or something downloaded.
- decodepicturefile
- The same as
decodepicture, but reads the PNG from a file. - deltatime
- Tells you how long it's been since your program's last
_update, so things can move at the same speed however fast the frames come. - display_current
- Tells you the screen's size and how many colours it shows, all in one call.
- display_height
- Tells you how tall the whole screen is now.
- display_request
- Asks for the screen to be a different size or show a different number of colours.
- display_size
- Gives you one of the sizes the last
display_sizesfound. - display_sizes
- Finds out which sizes the screen can be.
- display_width
- Tells you how wide the whole screen is now.
- dist3d
- Works out how far apart two things are in the world.
- drawinto
- Sends all drawing into a picture instead of your window, so you can build something once and draw it many times.
- drawmesh
- Draws a mesh at a place, turned and sized as you say.
- drawmeshm
- Draws a mesh with a 3 by 3 transform of your own, to stretch or squash it or turn it in a way you've worked out.
- drawpal
- From now on, anything you draw in one colour is drawn in another instead.
- drawpalreset
- Stops swapping colours, so every colour draws as itself again.
- drawpart
- Draws one rectangle of a picture, such as a single frame from a sheet of them.
- drawpartex
- Draws one rectangle of a picture, made bigger or flipped.
- drawpicture
- Draws a whole picture into the window, or into the picture you're drawing into.
- drawpictureex
- Draws a whole picture, made bigger or flipped.
E
- entityclasscount
- Tells you how many classes there are in a set.
- entityclasses
- Finds the classes a level at a place can have, reading the game's
entities.luaif there is one. - entityclassfield
- Gives one of a class's fields: its name, its type and its default, each as text.
- entityclassfieldcount
- Tells you how many fields a class describes.
- entityclassinfo
- Gives one thing about a class, as text.
- entityclassname
- Gives the name of one class in a set: Macaw OS's own first, then the game's, then the generic ones.
F
- fget
- Reads a sprite's flags, from
gfx.flags. - fileexists
- Checks whether there's a file or folder at a path.
- fileinfo
- Finds out how big a file is, when it last changed and whether it's a folder.
- flr
- Rounds a number down to a whole number, as
floordoes:flr(2.7)is 2 andflr(-2.5)is -3. - focused
- Tells you whether your window is the one in front, for example to pause a game when it isn't.
- fog3d
- Adds fog to meshes, so far-off things fade into a colour.
- forward3d
- Finds out which way a thing is facing in the world, as a direction 1 unit long.
- fov3d
- Sets how wide a camera's view is.
- free3d
- Takes a thing out of the scene for good.
- freelevel
- Lets go of a level and everything built for it.
- freemesh
- Lets go of a mesh when you've finished with it, so its memory can be used again.
- freepicture
- Lets go of a picture you've finished with.
- freesong
- Lets go of a song you loaded, once you won't play it again.
- fset
- Sets all 8 of a sprite's flags at once, while your program runs.
- fullbright3d
- Stops light and shade changing how a thing looks, for lamps, the sky and glowing things.
- fullscreen
- Asks to make your window fill the screen, or puts it back.
G
- getclipboard
- Gets the text on the clipboard, the one every Macaw OS program shares with the computer underneath.
- gethit3d
- Gets one of the things a thing bumped into during the last
updateworld(): the thing, where it touched, and the way the surface there faces. - getpref
- Reads one of the system preferences, the settings in System Preferences, as text.
- glrinfonumber
- Gets one fact about the graphics card as a number.
- glrinfotext
- Gets one fact about the graphics card as text, such as its name.
- glrpresent
- Finds out whether a graphics card is doing the drawing.
- glrvram
- Finds out roughly how much of the graphics card's memory your program is using.
- gpu_ambient
- Sets the light that falls everywhere, even where no light reaches, so shadows aren't black.
- gpu_begin
- Starts drawing shapes a corner at a time.
- gpu_bindtexture
- Draws the next shapes with a picture on them, a texture, placed by
gpu_texcoordor a buffer'st. - gpu_buffer
- Makes a vertex buffer: a list of corners kept ready to draw.
- gpu_buffercount
- Tells you how many corners a buffer holds.
- gpu_bufferset
- Replaces what's in a buffer, keeping its layout.
- gpu_clear
- Fills the picture with the clear colour, empties the depth buffer, or both, inside the viewport.
- gpu_clearcolor
- Sets the colour
gpu_clearfills the picture with. - gpu_clearmask
- Clears the marked water pixels without drawing anything.
- gpu_color
- Sets the colour of the corners you send after it, for drawing without a texture.
- gpu_colorex
- Sets the colour of the next corners, and how bright they are.
- gpu_cullface
- Picks which side of each triangle
"cull_face"skips. - gpu_depthmask
- Sets whether drawing writes to the depth buffer, the hidden picture of how far away each pixel is.
- gpu_disable
- Switches a feature of the chip off.
- gpu_done
- Finishes the shapes
gpu_beginstarted and draws them. - gpu_drawarrays
- Draws a buffer's corners in order, as if you'd sent them between
gpu_beginandgpu_done. - gpu_drawelements
- Draws the corners of a buffer that an index buffer picks, in the index buffer's order.
- gpu_enable
- Switches a feature of the chip on.
- gpu_end
- The same as
gpu_done, named as in OpenGL. - gpu_envloaded
- Tells you whether all six faces of a cube map are on the graphics card yet.
- gpu_envmap
- Makes a cube map from six square pictures.
- gpu_envmapbytes
- Makes a cube map again from the bytes
gpu_envpixelsgave you, such as ones you saved in a file. - gpu_envpixels
- Copies a cube map's six faces out as bytes, so you can save them and make it again with
gpu_envmapbytes. - gpu_envunload
- Takes a cube map off the graphics card to save its memory.
- gpu_fog
- Sets the fog, which fades things into a colour the further away they are.
- gpu_freebuffer
- Lets go of a buffer you've finished with.
- gpu_freeenvmap
- Lets go of a cube map you've finished with.
- gpu_freeindices
- Lets go of an index buffer you've finished with.
- gpu_frontface
- Says which way round a triangle's corners go, on the screen, when you're looking at its front.
- gpu_frustum
- Sets up a perspective projection by where its edges are.
- gpu_getmatrix
- Copies a matrix out, so you can keep it or work with it.
- gpu_indices
- Makes an index buffer: a list of which corners of a vertex buffer to draw, so a corner shared by several triangles is only kept once.
- gpu_isenabled
- Tells you whether a feature is switched on.
- gpu_light
- Sets up one of the eight lights and switches it on.
- gpu_lightoff
- Switches one light off.
- gpu_loadidentity
- Resets the current matrix so it changes nothing.
- gpu_loadmatrix
- Replaces the current matrix with 16 numbers of your own.
- gpu_lookat
- Points the camera from an eye at a target.
- gpu_mask
- While it's on, the triangles you draw don't show: they mark which pixels are water, for
gpu_water. - gpu_material
- Sets how shiny the surfaces you draw next are.
- gpu_matrixmode
- Picks which matrix the matrix calls after it change.
- gpu_multmatrix
- Multiplies the current matrix by 16 numbers of your own, as
gpu_translateand the others do with theirs. - gpu_normal
- Sets which way the surface faces at the next corners, so lighting knows how much light falls on it.
- gpu_ortho
- Sets up a flat projection, where things stay the same size however far away they are.
- gpu_perspective
- Sets up a perspective projection, where far things look smaller.
- gpu_pointsize
- Sets how big the dots are when you draw with
"points". - gpu_popmatrix
- Gets back the matrix you last saved with
gpu_pushmatrix. - gpu_project
- Works out where a point in your 3D world lands in the window, with the matrices as they are now.
- gpu_pushmatrix
- Saves a copy of the current matrix, so you can change it and get the saved one back with
gpu_popmatrix. - gpu_reset
- Puts all of the chip's settings back how they started: features, matrices, lights, fog, the texture and the viewport.
- gpu_rotate
- Turns everything you draw after it round an axis, anticlockwise when you look along the axis towards the middle.
- gpu_scale
- Grows or shrinks everything you draw after it.
- gpu_shademodel
- Sets how lighting is worked out across each triangle.
- gpu_stats
- Tells you how much was drawn, to help you find out what's slow.
- gpu_texcoord
- Sets which place on the texture the next corner shows.
- gpu_translate
- Moves everything you draw after it.
- gpu_vertex
- Sends a corner (a vertex), with the colour, texture place and normal set last.
- gpu_vertex4
- Sends a corner with a fourth number,
w, as OpenGL'sglVertex4does. - gpu_viewport
- Makes drawing go into one part of the window, like a smaller window inside it.
- gpu_water
- Mixes a reflection into the marked water pixels, with ripples, a tint and a drifting surface, then clears the marks.
- gpu_waterdefaults
- Fills in every one of
gpu_water's options with its usual value, so you can change only the ones you want.
H
- height3d
- Finds how high the ground of a terrain is at a place, so you can keep things standing on it.
- hide3d
- Stops drawing a thing, and anything parented to it.
- hitcount3d
- Finds out how many things a thing bumped into during the last
updateworld().
I
- imap_free
- Lets go of an imported map you've finished with.
- imap_get
- Reads one tile of an imported map.
- imap_layername
- Gives you the name of one of an imported map's layers.
- imap_layers
- Tells you how many layers an imported map has.
- imap_note
- Gives you one of the import's notes, as text you can show the person.
- imap_notes
- Tells you how many notes the import left, about what was left out or changed.
- imap_picture
- Gives you a 256 x 256 picture of the imported map's tiles, each in its sprite's place, laid out like a sprite sheet.
- imap_size
- Tells you how big one layer of an imported map is, in tiles.
- imap_used
- Tells you whether the imported map's tiles fill a sprite, so you know which places in the sheet they take.
- importmap
- Reads a map made in another program: a Tiled map (
.tmxor.json) or a CSV of tile numbers. - importmapimage
- Reads a picture of a whole level (a PNG) and cuts it into tiles.
- importpicture
- Brings in a PNG made elsewhere, ready for editing: each pixel becomes the nearest of the 256 colours, and see-through parts become colour 0.
- importpicturefile
- The same as
importpicture, but reads the PNG from a file. - isfolder
- Checks whether a path is a folder.
- ismac
- Checks whether Macaw OS is running on any kind of Mac.
K
- keysp
- Makes a list of every key that went down or repeated this frame.
- keyspname
- Gives the name of one key in the list
keyspmade, so you can see what was pressed without testing every key.
L
- lerp
- Finds the number part of the way from one number to another, for smooth movement and fades.
- leveladdbox
- Adds a box-shaped brush, from one corner to the opposite one.
- leveladdentity
- Adds an entity of a class at a place.
- leveladdshape
- Adds a convex brush of any shape, such as a wedge or a ramp, made of flat sides (planes).
- levelbake
- Starts baking a level's light.
- levelbakestep
- Bakes for a little while.
- levelboxinside
- Tells you whether a box is inside a brush, by more than just touching it.
- levelboxsolid
- Tells you whether a box touches anything solid.
- levelbrushbox
- Gives a brush's corners: a box's own, or the box round a shaped brush.
- levelbrushcount
- Tells you how many brushes a level has.
- levelbrushglow
- Makes a face of a brush glow.
- levelbrushshine
- Makes a brush, or one face of it, shiny, so it reflects the nearest probe.
- levelbrushtexture
- Changes the texture on one face of a brush.
- levelbrushwater
- Makes a brush water or solid again.
- levelbuilt
- Tells you whether a level has been built, so whether it can draw and collide yet.
- leveldraw
- Draws all of the level.
- leveldrawabove
- Draws only the part of the level above a height.
- leveldrawbsp
- Draws only the parts of the level the camera can see, working them out through the level's BSP tree and portals (the way it's cut into pieces).
- leveldrawgpu
- Draws all of the level with the graphics chip's camera, viewport and fog (from
<macawgpu.h>) instead ofcamera3d's. - leveldrawgpuabove
- Draws the part of the level above a height, with the graphics chip's camera.
- levelentity
- Gives where an entity is.
- levelentitycount
- Tells you how many entities of a class a level has.
- levelentityfield
- Gives the name of one of an entity's fields, so you can go through them all.
- levelentityhas
- Tells you whether an entity has a field, and what kind of value it holds.
- levelentitynum
- Gives an entity's field as a number.
- levelentitysetbool
- Sets one of an entity's fields to true or false.
- levelentitysetnum
- Sets one of an entity's fields to a number.
- levelentitysettext
- Sets one of an entity's fields to text, or takes the field away.
- levelentitytext
- Gives an entity's field as text.
- levelerror
- Gives the message from the last call that didn't work, such as a file that wasn't there.
- levelface
- Gives one face of the built level: its corners, its texture and which way it faces.
- levelfacecount
- Tells you how many faces the built level has.
- levellight
- Gives one of a level's lamps or area lights, with the defaults filled in for what the level doesn't say.
- levellightcount
- Tells you how many lamps and area lights a level has.
- levellightdata
- Gives a level's baked light as bytes, to save in its
.litfile. - levellit
- Tells you whether a level has baked light on it, from its
.litfile,levelsetlightor a finished bake. - levellitpath
- Gives the file a level's baked light is kept in: the same name with
.litin place of.lvl. - levelmoveentity
- Moves an entity to a new place.
- levelpath
- Gives the file a level was opened or loaded from.
- levelprobe
- Gives where one of the table's probes is.
- levelprobecount
- Tells you how many probe entities a level's table has.
- levelprobedata
- Gives a level's baked probes as the bytes of a
.prbfile, for you to save. - levelprobelimit
- Sets how many probes may be on the graphics card at once, the ones nearest the camera, or asks.
- levelprobepath
- Gives the file a level's baked reflection probes are kept in: the same name with
.prbin place of.lvl. - levelraycast
- Sends a ray from a point in a direction and finds where it first goes into a brush.
- levelremovebrush
- Takes a brush out of the level.
- levelremoveentity
- Takes an entity out of the level.
- levelsetlight
- Puts baked light back on a level, from bytes
levellightdatagave or a.litfile holds. - levelsetprobes
- Tells a built level which cube maps its shiny surfaces reflect.
- levelsetsetting
- Sets one of a level's number settings.
- levelsetsettingtext
- Sets one of a level's settings to text, such as
"sky". - levelsetsky
- Puts a sky round a level, from six square pictures, or takes it away.
- levelsetting
- Gives one of a level's number settings:
"ambient"(the light everywhere),"bounce"(how much light bounces),"luxel"(the size of a patch of baked light) or"skylight"(how strong the sky's light is). - levelsettingtext
- Gives one of a level's settings as text, such as
"sky", the name of the sky round it. - levelskies
- Gives the name of one of the skies there are, in alphabetical order, so you can list them.
- levelsky
- Gives a sky's six pictures, for
levelsetsky, and its average colour. - levelstart
- Gives where the player starts: the player start's feet, and which way it faces.
- levelstat
- Gives a number about the built level, such as
"faces","leaves","portals","luxels"(patches of baked light),"baked"(1 if it's lit),"drawn"(faces drawn last time),"shiny"(shiny faces) or"probes"(cube maps it's been given). - leveltexture
- Gives the picture for a texture name, to draw with yourself.
- leveltexturename
- Gives the name of one of the built-in textures, so you can list them.
- leveltrace
- Follows a line from one point to another and tells you how far it gets before it hits something.
- leveltracebox
- Moves a box from one place towards another and tells you how far it gets before it hits something.
- levelunbake
- Takes a level's baked light off, back to plain shading.
- levelwater
- Gives where one of the table's water surfaces is: the top of a water brush (a shaped one gives the box round it).
- levelwatercount
- Tells you how many water brushes a level's table has.
- light3d
- Sets the sun for meshes: the way its light travels and how strong it is, and the light everywhere.
- line
- Draws a straight line from one point to another.
- line3d
- Draws a line between two places in the world, seen through
camera3d's camera, over the picture. - listfolder
- Gives the name of one thing in a folder.
- loadlevel
- Reads a
.lvlfile into a level table without building it. - loadobj
- Makes a mesh from a model in an
.objfile. - loadpicture
- Loads a picture from a file: a
.pxlsaved by Paint, or a.png. - loadsong
- Reads a song file once, so you can play it many times with
playloadedsongwithout reading the file again. - loadtexture
- Loads a photo texture from a
.texfile, such as one in/system/textures.
M
- makefolder
- Makes a new folder.
- map
- Draws tiles from your program's map,
map.map, each one a 16 x 16 sprite. - mapheight
- Tells you how many tiles down a map layer is.
- maplayername
- Gives you the name of one of the map's layers, to pass to
mapormget. - maplayers
- Tells you how many layers your map has.
- mapwidth
- Tells you how many tiles across a map layer is.
- markdown
- Turns Markdown into HTML, and gives you its first heading to use as a title.
- memory
- Tells you how much memory your program has and how much the machine has.
- mesh3d
- Makes a mesh of any shape from your own corners and triangles.
- meshsize
- Finds out how many corners and triangles a mesh has.
- meshtexture
- Changes one of a mesh's textures.
- mget
- Reads one tile of the map.
- mid
- Gives the middle one of three numbers.
- modkey
- Gives the name of the key people hold for shortcuts, so your help text can name the right one.
- mouse
- Finds out where the pointer is and which mouse buttons are held down.
- move3d
- Moves a thing along the way it's facing, so you can walk a camera forward whichever way it points.
- mset
- Changes one tile of the map while your program runs.
- music
- Plays a song made in Tracker from its start, or stops it.
- music_note
- Plays one note on the music chip straight away, with an instrument from the last song played.
- music_release
- Lets go of the note playing on a channel, so it fades away the way its instrument does.
- music_volume
- Sets how loud the music chip is, for songs and for
music_note.
N
- nearestcolor
- Finds which of the 256 colours is closest to a mix of red, green and blue, as they look now.
- nest_choose
- Lets the person pick one of their saved passwords for your program.
- nest_get
- Reads back a password your program saved with
nest_set. - nest_has
- Checks whether your program has a password saved, without reading it.
- nest_keep
- Offers to save a password the person typed in the system's keychain: a box asks them what it's for.
- nest_list
- Makes a list of what your program has saved, in order of service and then account.
- nest_listchanged
- Tells you when one entry in the list
nest_listmade was last saved. - nest_listitem
- Gives the service and account of one entry in the list
nest_listmade. - nest_listlabel
- Gives the note kept with one entry in the list
nest_listmade. - nest_remove
- Forgets a password your program saved.
- nest_request
- Asks the person for one of the system's own passwords, such as Dial-Up's.
- nest_set
- Saves a password in your program's own keychain, which no other program can read.
- net_accept
- Takes the next person who has connected to your listener.
- net_close
- Closes a connection, or stops a listener.
- net_connect
- Starts a connection to a computer on the Macaw network.
- net_dial
- Asks Macaw OS to go online: Dial-Up opens and dials, unless it's online already.
- net_listen
- Starts listening on a port, so other people on the Macaw network can connect to you at
yourname.macaw. - net_online
- Checks whether Macaw OS is dialled in to the Macaw network.
- net_peer
- Tells you who is at the other end of a connection.
- net_port
- Tells you which port a listener is on, which you need after
net_listen(0). - net_read
- Takes exactly
nbytes from a connection, once that many have arrived. - net_readline
- Takes one whole line that has arrived on a connection.
- net_receive
- Takes whatever has arrived on a connection so far, up to
sizebytes. - net_send
- Sends bytes down a connection.
- net_status
- Tells you how a connection is getting on.
- newcamera
- Makes a camera to look through.
- newcone
- Makes a cone with its point at y = 1 and a closed, round base of radius 1 at y = -1.
- newcube
- Makes a cube 2 units across, from -1 to 1 each way around its position.
- newcylinder
- Makes a cylinder with a radius of 1, from y = -1 to y = 1.
- newlevel
- Makes an empty level, with no brushes or entities, for building from code.
- newlight
- Makes a light.
- newmesh
- Makes a thing with a shape of your own, built from triangles.
- newmodel
- Makes a thing from a model in an
.objfile. - newpicture
- Makes a new, empty picture that you can draw into or draw from.
- newpivot
- Makes an empty, invisible thing.
- newplane
- Makes a flat square 2 units across, lying at y = 0 and facing up.
- newprobe
- Makes a probe of your own at a place.
- newsphere
- Makes a ball 2 units across (a radius of 1).
- newsprite
- Makes a flat picture that always turns to face the camera, for trees and people.
- newterrain
- Makes hills from a picture.
- newterrainfn
- Makes hills like
newterrain, but your own function works out how high each point is. - newwater
- Adds a water surface of your own: a flat rectangle at a height.
- noclip
- Lets you draw anywhere in the window, or the picture you're drawing into, again after
clip. - nofog3d
- Turns the fog off again.
- note
- Works out the pitch of a named note, to give to
tone. - notename
- Turns a note's number back into its name, the way Tracker writes it.
- notenumber
- Turns a note's name, written the way Tracker writes it, into its number.
- now
- Tells you how long Macaw OS has been running.
O
- ondrop
- Sets a function to call when files are dropped on your window, from Files or the computer.
- openfile
- Shows the Open dialog, for the person to pick a file.
- openlevel
- Reads a
.lvlfile, builds it, and puts on its baked light from the.litfile next to it (and its baked probes from the.prbfile, if the light went on). - openpath
- Opens a file or program as double-clicking it would: a program runs, and a document opens in its program.
P
- pal
- Changes what one colour number looks like, everywhere on the screen, until you put it back with
palreset. - palreset
- Puts every colour back to how it normally looks, after
pal. - parent3d
- Makes a thing move, turn and grow with another, like a moon going round a planet.
- parsepicture
- Makes a picture from rows of text, one character for each pixel.
- pget
- Reads the colour of one pixel of the window, or of the picture you're drawing into.
- pick
- Finds the nearest pickable thing along a ray, such as a line of sight or a shot.
- pickable3d
- Lets rays and the mouse hit a thing, so
pickandcampick3dcan find it. - pickcolour
- Shows the colour picker, for picking any colour.
- pickfiles
- Asks the person to pick files from their computer.
- pictureclear
- Fills a whole picture with one colour.
- picturecopy
- Makes a new picture that's the same as another one, so you can change the copy and keep the first.
- pictureget
- Reads the colour of one pixel of a picture.
- picturegetrgb
- Reads a pixel's true colour as red, green and blue.
- pictureheight
- Tells you how tall a picture is.
- pictureset
- Sets one pixel of a picture to a colour.
- picturesetrgb
- Sets a pixel's true colour, which shows when the screen is in thousands of colours.
- picturesize
- Tells you a picture's width and height in one call.
- picturewidth
- Tells you how wide a picture is.
- platform
- Tells you what Macaw OS is running on.
- play
- Plays a musical note on one of the four sound-effect voices, as a square wave at half volume.
- playloadedsong
- Plays a song you loaded with
loadsong. - playsong
- Plays a song file on the music chip, from the Music app or Tracker.
- point3d
- Turns a thing to face another thing, and takes away any lean.
- pointat3d
- Turns a thing to face a place in the world, and takes away any lean.
- pointlight3d
- Sets one of the eight lamps for meshes, which lights things near it, fading out at its radius.
- pos3d
- Finds out where a thing is in the world, counting any parents.
- position3d
- Puts a thing at a place.
- probeat
- Gives one of a level's probes as a probe number, for the calls below.
- probebake
- Bakes a probe, drawing one of its six views each call.
- probebaked
- Tells you whether a probe has been baked.
- probecount
- Tells you how many probes a built level has.
- probeenv
- Gives a baked probe's cube map.
- probepos
- Gives where a probe is.
- project3d
- Works out where a place in the world shows up in the picture, seen through
camera3d's camera. - pset
- Sets one pixel to a colour.
- putondesktop
- Puts an alias of a file, folder, program or game on the desktop.
R
- realtime
- Makes your window draw every frame, which games and animations need.
- rect
- Draws the outline of a rectangle, one pixel thick.
- rectfill
- Fills a rectangle with one colour.
- redraw
- Asks for your window to be drawn again on the next frame.
- render
- Draws the whole scene through a camera, into the window (or the picture you're drawing into).
- resetcollisions
- Forgets where a thing was.
- resizable
- Says whether people can resize your window with its size box.
- rnd
- Gives a random number, for dice, enemy moves and anything else that should change each time.
- room3d
- Makes the inside of a box, for standing in.
- rotate3d
- Turns a thing to face a particular way, whichever way it faced before.
S
- savefile
- Shows the Save dialog, for the person to choose a name and a folder.
- savelevel
- Writes a level's table to a
.lvlfile, which Brushwork can open. - savepicture
- Saves a picture as a
.pxlfile, which Paint can open. - scale3d
- Sets a thing's size.
- screenheight
- Tells you how tall your window's picture is.
- screenmem
- Gives you the address of your window's picture in memory, so you can write pixels into it directly.
- screenwidth
- Tells you how wide your window's picture is.
- setclipboard
- Puts text on the clipboard, for every Macaw OS program and the computer underneath.
- setpref
- Changes one of the system preferences.
- settitle
- Changes the words in your window's title bar while the program runs.
- sfx
- Plays one of Macaw OS's ready-made sound effects.
- sgn
- Tells you whether a number is below 0, for things like which way something faces.
- shadowtext
- Writes text with a shadow one pixel down and to the right, so it stands out on a busy background.
- show3d
- Starts drawing a thing again after
hide3d. - spr
- Draws one 16 x 16 sprite from your program's sprite sheet,
gfx.pxl. - sprex
- Draws a block of sprites together, flipped if you like.
- sprimage
- Copies a sprite, or a block of them, into a picture of its own.
- spritesheet
- Gives you your program's whole sprite sheet as a picture, 256 x 256 pixels.
- sspr
- Draws any rectangle of the sprite sheet, given in pixels rather than sprites.
- startdrag
- Starts dragging files out of your window, to Files, the Trash, the desktop or another program.
- stats3d
- Finds out how much 3D drawing there was this frame, for checking your program's speed.
- stop
- Stops whatever the four sound-effect voices are playing.
- stopsong
- Stops the song that's playing.
- sys_clipboard
- Gets the text on the computer's own clipboard.
- sys_cursor
- Shows or hides the computer's own pointer over Macaw OS.
- sys_display
- Finds out the size of the whole screen and how many colours it shows.
- sys_fps
- Tells you how fast Macaw OS is drawing right now.
- sys_screenshot
- Saves a picture of the whole screen as a PNG file.
- sys_setclipboard
- Puts text on the computer's own clipboard.
- sys_title
- Sets the title of the window Macaw OS runs in on the computer underneath.
- sys_version
- Tells you which version of Macaw OS this is.
- sys_volume
- Reads the volume of all sound in Macaw OS, and can change it.
T
- text
- Writes text in the built-in font.
- textinput
- Gives you the characters typed this frame, for a text box or a name.
- textscaled
- Writes text with every pixel of the font made bigger.
- texture3d
- Changes the picture a thing is covered with.
- textwidth
- Measures how wide some text would be, so you can line it up before you write it.
- tone
- Plays a plain beep at any pitch on one of the four sound-effect voices, as a square wave at half volume.
- translate3d
- Moves a thing along the world's directions, whichever way it's facing.
- tri
- Draws a filled triangle between three corners.
- turn3d
- Turns a thing by this much from the way it faces now.
- twosided3d
- Draws the back of each face as well as the front, for flat things seen from both sides.
U
- ui_at
- Puts the next widget at exactly this place, instead of under the last one.
- ui_begin
- Starts this frame's widgets.
- ui_beginex
- Starts this frame's widgets, like
ui_begin, but you choose where they go and what's behind them. - ui_button
- Shows a button.
- ui_checkbox
- Shows a tick box.
- ui_disabled
- Greys out the widgets after it, and they stop answering the mouse and keys.
- ui_dropdown
- Shows a drop-down menu: a box with the picked item, which opens a list when it's clicked.
- ui_endgroup
- Ends the box
ui_groupstarted, and draws it round the widgets inside. - ui_finish
- Ends this frame's widgets.
- ui_focus
- Tells you which widget has the keyboard's focus, so your own key handling can leave it alone.
- ui_group
- Starts a box with a title round the widgets that follow, until
ui_endgroup. - ui_heading
- Shows a heading, with a line under it.
- ui_image
- Shows a picture among the widgets.
- ui_label
- Shows some text, wrapped onto more lines if it's too long for the width.
- ui_listbox
- Shows a list to pick from.
- ui_nexty
- Tells you where the next widget would go, so you can draw something of your own under a form.
- ui_progress
- Shows a progress bar, for how far through something you are.
- ui_radio
- Shows one choice of a set, where only one can be picked.
- ui_rect
- Tells you where a widget was last drawn, in the window.
- ui_row
- Puts the next few widgets side by side on one line, sharing its width.
- ui_separator
- Draws a line across, to divide one part of a form from the next.
- ui_setfocus
- Gives the keyboard's focus to a widget, such as a text box you want the person to type in first.
- ui_slider
- Shows a slider for picking a number between two others.
- ui_space
- Leaves a gap before the next widget.
- ui_swatches
- Shows squares of colour to pick one from.
- ui_tabs
- Shows a row of tabs.
- ui_textbox
- Shows a box to type text in.
- ui_textboxex
- Shows a box to type text in, like
ui_textbox, with a few more choices. - ui_typing
- Tells you whether a text box is taking the keys.
- up3d
- Finds out which way a thing's top is facing in the world, as a direction 1 unit long.
- updateworld
- Works out collisions for everything with a collision type: things that ran into something are pushed back out, and their hits are noted.
V
- visible3d
- Finds out whether a thing is being drawn.
W
- waterbake
- Bakes a water's reflection once, so it doesn't have to be drawn every frame.
- waterbaked
- Tells you whether a water's reflection has been baked.
- watercamera
- Points the graphics chip's camera the same way as
camera3d, sogpu_drawing in a reflection lines up with the level. - watercount
- Tells you how many water surfaces a level has to draw: those built from its water brushes, and any you've added with
newwater. - waterdraw
- Draws a water surface, with ripples and its reflection mixed in.
- waterinfo
- Gives where a water surface is.
- waterreflect
- Draws a water's live reflection: the level is drawn again from a camera mirrored under the water, into the water's own picture.
- waterreflections
- Turns a water's reflection on or off, or asks whether it's on.
- window
- Says what size your window should be and what its title bar says.
- windowcolors
- Asks for the screen to show this many colours while your program runs.
- windowcursor
- Shows or hides the pointer while it's over your window.
- windowmin
- Sets the smallest size people can resize your window to.
- windowscale
- Shows every pixel of your window bigger, for pixel art.
- wrapline
- Gives you one of the lines the last
wraptextmade. - wraptext
- Breaks text into lines short enough to fit, breaking at spaces where it can.