Function anima_engine::scripting::get_mruby
[−]
[src]
pub fn get_mruby() -> MrubyType
A fn
that returns a new mruby state with require
able Anima API.
API is structured in virtual mruby files thus:
math
Bezier
Interpolator
Matrix
Quaternion
Vector
Examples
let mruby = scripting::get_mruby(); mruby.run("require 'math'; Vector.uniform 0.1").unwrap();