Sha256: 479fcb670c098d1038f88483b431a847a95cf2b1c39f142167b6aae4246c6864

Contents?: true

Size: 1.66 KB

Versions: 18

Compression:

Stored size: 1.66 KB

Contents

package monkstone.vecmath;

import processing.core.PGraphics;

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

    final PGraphics graphics;

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

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

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

    /**
     *
     * @param x double
     * @param y double
     * @param z double
     */
    @Override
    public void vertex(double x, double y, double z) {
        graphics.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) {
        graphics.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) {
        graphics.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) {
        graphics.curveVertex((float) x, (float) y, (float) z);
    }
}

Version data entries

18 entries across 17 versions & 2 rubygems

Version Path
propane-4.0.0-java src/main/java/monkstone/vecmath/GfxRender.java
picrate-2.5.2-java src/main/java/monkstone/vecmath/GfxRender.java
picrate-2.5.1-java src/main/java/monkstone/vecmath/GfxRender.java
propane-3.11.0-java src/main/java/monkstone/vecmath/GfxRender.java
picrate-2.5.0-java src/main/java/monkstone/vecmath/GfxRender.java
propane-3.10.0-java lib/java/monkstone/vecmath/GfxRender.java
propane-3.10.0-java src/main/java/monkstone/vecmath/GfxRender.java
propane-3.9.0-java src/main/java/monkstone/vecmath/GfxRender.java
propane-3.8.0-java src/main/java/monkstone/vecmath/GfxRender.java
propane-3.7.1-java src/main/java/monkstone/vecmath/GfxRender.java
propane-3.7.0.pre-java src/main/java/monkstone/vecmath/GfxRender.java
propane-3.6.0-java src/main/java/monkstone/vecmath/GfxRender.java
propane-3.5.0-java src/main/java/monkstone/vecmath/GfxRender.java
propane-3.4.2-java src/main/java/monkstone/vecmath/GfxRender.java
propane-3.4.1-java src/main/java/monkstone/vecmath/GfxRender.java
propane-3.4.0-java src/main/java/monkstone/vecmath/GfxRender.java
propane-3.3.1-java src/main/java/monkstone/vecmath/GfxRender.java
propane-3.3.0-java src/main/java/monkstone/vecmath/GfxRender.java