Sha256: cc2648536a361bd53531c753468a443b57f5c5c90e8cf38914e1d213d338abb9

Contents?: true

Size: 1.6 KB

Versions: 10

Compression:

Stored size: 1.6 KB

Contents

package monkstone.vecmath;

import processing.core.PApplet;
import processing.core.PGraphics;

/**
 *
 *
 */
public class AppRender implements JRender {

    final PGraphics g;

    /**
     *
     * @param app PApplet
     */
    public AppRender(final PApplet app) {
        this.g = app.g;
    }

    /**
     *
     * @param x double
     * @param y double
     */
    @Override
    public void vertex(double x, double y) {
        g.vertex((float) x, (float) y);
    }
    
    /**
     *
     * @param x double
     * @param y double
     */
    @Override
    public void curveVertex(double x, double y) {
        g.curveVertex((float) x, (float) y);
    }

    /**
     *
     * @param x double
     * @param y double
     * @param z double
     */
    @Override
    public void vertex(double x, double y, double z) {
        g.vertex((float) x, (float) y, (float) z);
    }

    /**
     *
     * @param x double
     * @param y double
     * @param z double
     */
    @Override
    public void normal(double x, double y, double z) {
        g.normal((float) x, (float) y, (float) z);
    }

    /**
     *
     * @param x double
     * @param y double
     * @param z double
     * @param u double
     * @param v double
     */
    @Override
    public void vertex(double x, double y, double z, double u, double v) {
        g.vertex((float) x, (float) y, (float) z, (float) u, (float) v);
    }
    
    /**
     *
     * @param x double
     * @param y double
     * @param z double
     */
    @Override
    public void curveVertex(double x, double y, double z) {
        g.curveVertex((float) x, (float) y, (float) z);
    }
}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
picrate-0.5.0-java src/main/java/monkstone/vecmath/AppRender.java
picrate-0.4.3-java src/main/java/monkstone/vecmath/AppRender.java
picrate-0.4.2-java src/main/java/monkstone/vecmath/AppRender.java
picrate-0.4.1-java src/main/java/monkstone/vecmath/AppRender.java
picrate-0.4.0-java src/main/java/monkstone/vecmath/AppRender.java
picrate-0.3.0-java src/main/java/monkstone/vecmath/AppRender.java
picrate-0.2.0-java src/main/java/monkstone/vecmath/AppRender.java
picrate-0.1.0-java src/main/java/monkstone/vecmath/AppRender.java
picrate-0.0.3-java src/main/java/monkstone/vecmath/AppRender.java
picrate-0.0.2-java src/main/java/monkstone/vecmath/AppRender.java