Sha256: 3bd5574eada4ae4aa570bada7e5a00fc4c136b262159f8a4ab143719059c4310

Contents?: true

Size: 1.59 KB

Versions: 20

Compression:

Stored size: 1.59 KB

Contents

package monkstone.vecmath;

import processing.core.PGraphics;

/**
 *
 *
 * @author Martin Prout
 */
public class GfxRender implements JRender {

    final PGraphics g;

    /**
     *
     * @param gfx PGraphics
     */
    public GfxRender(final PGraphics gfx) {
        this.g = gfx;
    }

    /**
     *
     * @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

20 entries across 20 versions & 1 rubygems

Version Path
picrate-2.4.2-java src/main/java/monkstone/vecmath/GfxRender.java
picrate-2.4.1-java src/main/java/monkstone/vecmath/GfxRender.java
picrate-2.4.0-java src/main/java/monkstone/vecmath/GfxRender.java
picrate-2.3.0-java src/main/java/monkstone/vecmath/GfxRender.java
picrate-2.2.0-java src/main/java/monkstone/vecmath/GfxRender.java
picrate-2.1.2-java src/main/java/monkstone/vecmath/GfxRender.java
picrate-2.1.1-java src/main/java/monkstone/vecmath/GfxRender.java
picrate-2.1.0-java src/main/java/monkstone/vecmath/GfxRender.java
picrate-2.0.1-java src/main/java/monkstone/vecmath/GfxRender.java
picrate-1.3.0-java src/main/java/monkstone/vecmath/GfxRender.java
picrate-2.0.0.pre-java src/main/java/monkstone/vecmath/GfxRender.java
picrate-1.2.4-java src/main/java/monkstone/vecmath/GfxRender.java
picrate-1.2.3-java src/main/java/monkstone/vecmath/GfxRender.java
picrate-1.2.2-java src/main/java/monkstone/vecmath/GfxRender.java
picrate-1.2.1-java src/main/java/monkstone/vecmath/GfxRender.java
picrate-1.2.0-java src/main/java/monkstone/vecmath/GfxRender.java
picrate-1.1.0-java src/main/java/monkstone/vecmath/GfxRender.java
picrate-1.0.0-java src/main/java/monkstone/vecmath/GfxRender.java
picrate-0.9.0-java src/main/java/monkstone/vecmath/GfxRender.java
picrate-0.8.0-java src/main/java/monkstone/vecmath/GfxRender.java