Sha256: 81f4d0e3bc8e18e6aac574b001147c1001bec622b362f8256758a9b98401d401
Contents?: true
Size: 1.47 KB
Versions: 4
Compression:
Stored size: 1.47 KB
Contents
package monkstone.vecmath; import processing.core.PApplet; /** * * @author Martin Prout */ public class AppRender implements JRender { final PApplet app; /** * * @param app */ public AppRender(final PApplet app) { this.app = app; } /** * * @param x * @param y */ @Override public void vertex(double x, double y) { app.vertex((float) x, (float) y); } /** * * @param x * @param y */ @Override public void curveVertex(double x, double y) { app.curveVertex((float) x, (float) y); } /** * * @param x * @param y * @param z */ @Override public void vertex(double x, double y, double z) { app.vertex((float) x, (float) y, (float) z); } /** * * @param x * @param y * @param z */ @Override public void normal(double x, double y, double z) { app.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) { app.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) { app.curveVertex((float) x, (float) y, (float) z); } }
Version data entries
4 entries across 4 versions & 1 rubygems