Expand description
A C ABI over the deformations, so they can be called from outside Rust.
This exists for the preview: the engine is built for wasm32 and driven
from the page, which means the mesh you watch bend in a browser is the one
warp::mesh_part builds for a real window. A reimplementation in JavaScript
would drift the first time either changed, and the drift would be
invisible โ the page would still bend something plausible.
A grid is written into a fixed scratch buffer rather than allocated, the
same way solium_layout::ffi publishes its rectangles: the crate has no
dependencies and wants none, and a wasm module that never allocates is a
wasm module with nothing to leak.
Constantsยง
- CAPACITY
- The most points a grid will report, as
x, ypairs.
Staticsยง
- SCRATCH ๐
Functionsยง
- effect ๐
- The effect at
indexinDeform::all, with the parameters given. - publish ๐
- Put one point into the scratch buffer.
- solium_
axis_ count - How many axes there are.
- solium_
effect_ capacity - solium_
effect_ columns - How many columns the grid for this effect has. Points across is one more.
- solium_
effect_ count - How many effects there are, so a caller can enumerate them.
- solium_
effect_ grid - Deform a window into a target and write the whole grid out.
- solium_
effect_ rows - How many rows the grid for this effect has. Points down is one more.
- solium_
effect_ scratch - Where the last grid was written.