Sha256: 8ad44169804beb14e3ed58b8199f431cd3a01d7372b43f8c46c627c10c57ab65
Contents?: true
Size: 1.56 KB
Versions: 4
Compression:
Stored size: 1.56 KB
Contents
package monkstone.vecmath; import processing.core.PShape; /** * * @author Martin Prout */ public class ShapeRender implements JRender { final PShape shape; /** * * @param shape */ public ShapeRender(final PShape shape) { this.shape = shape; } /** * * @param x * @param y */ @Override public void vertex(double x, double y) { shape.vertex((float) x, (float) y); } /** * * @param x * @param y */ @Override public void curveVertex(double x, double y) { throw new UnsupportedOperationException("Not implemented for this renderer"); } /** * * @param x * @param y * @param z */ @Override public void vertex(double x, double y, double z) { shape.vertex((float) x, (float) y, (float) z); } /** * * @param x * @param y * @param z */ @Override public void normal(double x, double y, double z) { shape.normal((float) x, (float) y, (float) z); } /** * * @param x * @param y * @param z * @param u * @param v */ @Override public void vertex(double x, double y, double z, double u, double v) { shape.vertex((float) x, (float) y, (float) z, (float) u, (float) v); } /** * * @param x * @param y * @param z */ @Override public void curveVertex(double x, double y, double z) { throw new UnsupportedOperationException("Not implemented for this renderer"); } }
Version data entries
4 entries across 4 versions & 1 rubygems