FastGeometryBuilder.java :  » App » skylight1 » skylight1 » opengl » Android Open Source

Android Open Source » App » skylight1 
skylight1 » skylight1 » opengl » FastGeometryBuilder.java
package skylight1.opengl;

/**
 * Encapsulates the construction of FastGeometry objects.
 */
public interface FastGeometryBuilder<T, R> extends GeometryBuilder<T, R> {
  /**
   * Adds a 3D triangle to the current geometry..
   * 
   * @return A Triangle3D, which permits adding textures, colour and normals as per the configuration of the
   *         GeometryBuilder
   */
  T add3DTriangle();

  /**
   * Adds a 2D (z = 0) upright rectangle to the current geometry..
   * 
   * @return A Rectangle2D, which permits adding textures and colour as per the configuration of the GeometryBuilder
   */
  R add2DRectangle();

  /**
   * Resets the builder to its initial state. Not necessary for the first use of the object, but required for repeated
   * use.
   */
  void reset();
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.