Search in sources :

Example 6 with JRender

use of monkstone.vecmath.JRender in project propane by ruby-processing.

the class Vec2 method toVertex.

/**
 * To vertex
 *
 * @param context ThreadContext
 * @param object IRubyObject vertex renderer
 */
@JRubyMethod(name = "to_vertex")
public void toVertex(ThreadContext context, IRubyObject object) {
    JRender renderer = (JRender) object.toJava(JRender.class);
    renderer.vertex(jx, jy);
}
Also used : JRender(monkstone.vecmath.JRender) JRubyMethod(org.jruby.anno.JRubyMethod)

Aggregations

JRender (monkstone.vecmath.JRender)6 JRubyMethod (org.jruby.anno.JRubyMethod)6 Vec2 (monkstone.vecmath.vec2.Vec2)1 RubyFixnum (org.jruby.RubyFixnum)1 RubyFloat (org.jruby.RubyFloat)1