| Version: | 0.1.11 |
|---|---|
| Date: | Jan 31 2011 |
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.
lerp value1 value2 fraction
Arguments
| value1 | decimal!/coord!/vec3! |
| value2 | decimal!/coord!/vec3! |
| 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.
project-point a b pnt
Arguments
| a | vec3! |
| b | vec3! |
| pnt | vec3! |
Return
Point projected onto line a-b.
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.