Version: | 0.2.8 |
---|---|
Date: | Jan 05 2014 |
Contents
Function Groups
These are the built-in functions implemented in C.
animate anims time
Arguments
anims | block!/context! Animation or block of animations |
time | decimal! Delta time |
Return
True if any animations are playing.
change-vbo buffer data length
Arguments
buffer | vbo! |
data | vector! |
length | int!/coord! (stride,offset,npv) |
Return
unset!
clear-color color
Arguments
color | decimal!/coord!/vec3! |
Return
unset!
Calls glClearColor().
curve-at curve time
Arguments
curve | block! |
time | int!/decimal! |
Return
Value on curve at time.
The curve block is a sequence of time and value pairs, ordered by time.
display size /fullscreen /title text
Arguments
size | coord! |
/fullscreen | |
/title | |
text | string! |
Return
unset!
lerp value1 value2 fraction
Arguments
value1 | decimal!/coord!/vec3!/quat! |
value2 | decimal!/coord!/vec3!/quat! |
fraction | decimal! |
Return
Interpolated value.
limit number min max
Arguments
number | int!/decimal! |
min | int!/decimal! |
max | int!/decimal! |
Return
Number clamped to min and max.
make-sdf src mask scale
Arguments
src | raster! |
mask | int! |
scale | decimal! |
Return
New signed distance field raster.
move widget position /center
Arguments
widget | widget! |
position | coord!/widget! |
/center |
Return
unset!
pick-point screen-point camera points pos-offset
Arguments
screen-point | coord! (x,y) |
camera | context! |
points | vector! |
pos-offset | int!/coord! (stride,offset) |
Return
int!/none!
project-point pnt a b
Arguments
pnt | vec3! |
a | vec3!/context! |
b | vec3! |
Return
Point projected onto line or screen.
To project the point onto a line pass vec3! end points for a and b.
If 'a is a camera context! then the point will be projected onto the camera's viewport.
turntable camera delta
Arguments
camera | context! |
delta | azim,elev coord!/vec3! |
Return
Transformed camera.
These are the built-in func! functions and aliases.
load-texture file /mipmap /clamp
Arguments
file | PNG filename |
/mipmap | |
/clamp |
Return
texture!
make-matrix pos
Arguments
pos | vec3! |
Return
vector!
Create matrix with position initialized.
recal-curve curve a b
Arguments
curve | block! |
a | decimal!/coord!/vec3! |
b | decimal!/coord!/vec3! |
Return
Recalibrated copy of curve.
A and B must be of the same type.