/** * Declare a parameter with the specified name and value. This parameter * will be added to the currently active parameter list. * * @param name parameter name * @param value parameter value */ public void parameter(String name, Point2 value) { parameterList.addTexCoords(name, ParameterList.InterpolationType.NONE, new float[] { value.x, value.y }); }
public Point2 set(Point2 p) { x = p.x; y = p.y; return this; }
public Point2(Point2 p) { x = p.x; y = p.y; }
public static Vector3 pnoise(Point2 p, float periodx, float periody) { return pnoise(p.x, p.y, periodx, periody); }
public static Vector3 noise(Point2 p) { return noise(p.x, p.y); }
/** * Get the specified texture coordinate parameter from this list. * * @param name name of the parameter * @param defaultValue value to return if not found * @return the value of the parameter specified or default value if not * found */ public Point2 getTexCoord(string name, Point2 defaultValue) { Parameter p; if (list.TryGetValue(name, out p)) if (isValidParameter(name, ParameterType.TEXCOORD, InterpolationType.NONE, 1, p)) return p.getTexCoord(); return defaultValue; }