org.jagatoo.loaders.models._util
Interface GeometryFactory


public interface GeometryFactory

Insert type comment here.


Nested Class Summary
static class GeometryFactory.GeometryType
           
 
Method Summary
 NamedObject createGeometry(java.lang.String name, GeometryFactory.GeometryType type, int coordSize, int numVertices, int numIndices, int[] numStrips)
           
 NamedObject createInterleavedGeometry(java.lang.String name, GeometryFactory.GeometryType type, int coordSize, int numVertices, int numIndices, int[] numStrips, int features, boolean colorAlpha, int[] tuSizes, int[] vaSizes)
           
 void finalizeGeometry(NamedObject geometry, GeometryFactory.GeometryType type, int initialVertexIndex, int numValidVertices, int initialIndexIndex, int numValidIndices)
           
 void setColors(NamedObject geometry, GeometryFactory.GeometryType type, int colorSize, int vertexIndex, org.openmali.vecmath2.Colorf[] data, int offset, int num)
           
 void setColors(NamedObject geometry, GeometryFactory.GeometryType type, int colorSize, int vertexIndex, float[] data, int offset, int num)
           
 void setCoordinate(NamedObject geometry, GeometryFactory.GeometryType type, int vertexIndex, float x, float y, float z)
           
 void setCoordinates(NamedObject geometry, GeometryFactory.GeometryType type, int vertexIndex, float[] data, int offset, int num)
           
 void setCoordinates(NamedObject geometry, GeometryFactory.GeometryType type, int vertexIndex, org.openmali.vecmath2.Point3f[] data, int offset, int num)
           
 void setIndex(NamedObject geometry, GeometryFactory.GeometryType type, int vertexIndex, int[] data, int offset, int num)
           
 void setNormal(NamedObject geometry, GeometryFactory.GeometryType type, int vertexIndex, float x, float y, float z)
           
 void setNormals(NamedObject geometry, GeometryFactory.GeometryType type, int vertexIndex, float[] data, int offset, int num)
           
 void setNormals(NamedObject geometry, GeometryFactory.GeometryType type, int vertexIndex, org.openmali.vecmath2.Vector3f[] data, int offset, int num)
           
 void setTexCoord(NamedObject geometry, GeometryFactory.GeometryType type, int textureUnit, int vertexIndex, float s, float t)
           
 void setTexCoords(NamedObject geometry, GeometryFactory.GeometryType type, int textureUnit, int texCoordSize, int vertexIndex, float[] data, int offset, int num)
           
 void setTexCoords(NamedObject geometry, GeometryFactory.GeometryType type, int textureUnit, int texCoordSize, int vertexIndex, org.openmali.vecmath2.TexCoordf<?>[] data, int offset, int num)
           
 void setVertexAttribs(NamedObject geometry, GeometryFactory.GeometryType type, int attribIndex, int attribSize, int vertexIndex, float[] data, int offset, int num)
           
 

Method Detail

createGeometry

NamedObject createGeometry(java.lang.String name,
                           GeometryFactory.GeometryType type,
                           int coordSize,
                           int numVertices,
                           int numIndices,
                           int[] numStrips)

createInterleavedGeometry

NamedObject createInterleavedGeometry(java.lang.String name,
                                      GeometryFactory.GeometryType type,
                                      int coordSize,
                                      int numVertices,
                                      int numIndices,
                                      int[] numStrips,
                                      int features,
                                      boolean colorAlpha,
                                      int[] tuSizes,
                                      int[] vaSizes)

setCoordinate

void setCoordinate(NamedObject geometry,
                   GeometryFactory.GeometryType type,
                   int vertexIndex,
                   float x,
                   float y,
                   float z)

setCoordinates

void setCoordinates(NamedObject geometry,
                    GeometryFactory.GeometryType type,
                    int vertexIndex,
                    float[] data,
                    int offset,
                    int num)

setCoordinates

void setCoordinates(NamedObject geometry,
                    GeometryFactory.GeometryType type,
                    int vertexIndex,
                    org.openmali.vecmath2.Point3f[] data,
                    int offset,
                    int num)

setNormal

void setNormal(NamedObject geometry,
               GeometryFactory.GeometryType type,
               int vertexIndex,
               float x,
               float y,
               float z)

setNormals

void setNormals(NamedObject geometry,
                GeometryFactory.GeometryType type,
                int vertexIndex,
                float[] data,
                int offset,
                int num)

setNormals

void setNormals(NamedObject geometry,
                GeometryFactory.GeometryType type,
                int vertexIndex,
                org.openmali.vecmath2.Vector3f[] data,
                int offset,
                int num)

setTexCoord

void setTexCoord(NamedObject geometry,
                 GeometryFactory.GeometryType type,
                 int textureUnit,
                 int vertexIndex,
                 float s,
                 float t)

setTexCoords

void setTexCoords(NamedObject geometry,
                  GeometryFactory.GeometryType type,
                  int textureUnit,
                  int texCoordSize,
                  int vertexIndex,
                  float[] data,
                  int offset,
                  int num)

setTexCoords

void setTexCoords(NamedObject geometry,
                  GeometryFactory.GeometryType type,
                  int textureUnit,
                  int texCoordSize,
                  int vertexIndex,
                  org.openmali.vecmath2.TexCoordf<?>[] data,
                  int offset,
                  int num)

setColors

void setColors(NamedObject geometry,
               GeometryFactory.GeometryType type,
               int colorSize,
               int vertexIndex,
               float[] data,
               int offset,
               int num)

setColors

void setColors(NamedObject geometry,
               GeometryFactory.GeometryType type,
               int colorSize,
               int vertexIndex,
               org.openmali.vecmath2.Colorf[] data,
               int offset,
               int num)

setVertexAttribs

void setVertexAttribs(NamedObject geometry,
                      GeometryFactory.GeometryType type,
                      int attribIndex,
                      int attribSize,
                      int vertexIndex,
                      float[] data,
                      int offset,
                      int num)

setIndex

void setIndex(NamedObject geometry,
              GeometryFactory.GeometryType type,
              int vertexIndex,
              int[] data,
              int offset,
              int num)

finalizeGeometry

void finalizeGeometry(NamedObject geometry,
                      GeometryFactory.GeometryType type,
                      int initialVertexIndex,
                      int numValidVertices,
                      int initialIndexIndex,
                      int numValidIndices)