Exemplo n.º 1
0
 /**
  * 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 });
 }
Exemplo n.º 2
0
 public Point2 set(Point2 p)
 {
     x = p.x;
     y = p.y;
     return this;
 }
Exemplo n.º 3
0
 public Point2(Point2 p)
 {
     x = p.x;
     y = p.y;
 }
Exemplo n.º 4
0
 public static Vector3 pnoise(Point2 p, float periodx, float periody)
 {
     return pnoise(p.x, p.y, periodx, periody);
 }
Exemplo n.º 5
0
 public static Vector3 noise(Point2 p)
 {
     return noise(p.x, p.y);
 }
Exemplo n.º 6
0
 /**
  * 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;
 }