Class dnx.ice.Model
All Packages Class Hierarchy This Package Previous Next Index
Class dnx.ice.Model
java.lang.Object
|
+----dnx.ice.Model
- public class Model
- extends Object
A model is a group of rendering primitives of the same
type--either polygons, lines, or points. Models are constructe
from ModelSources; all non-static methods of the Model
class should only be called from the sendModelData method
of a ModelSource.
-
BINDING_NONE
- Normal, color, and texture coordinate binding types
-
BINDING_PER_FACE
-
-
BINDING_PER_FACE_GENERATE
-
-
BINDING_PER_VERTEX
-
-
BINDING_PER_VERTEX_GENERATE
-
-
LINES
-
-
POINTS
-
-
POLYGONS
-
-
component(int, int[], int[], int[], int[])
-
-
isValidColorBinding(int)
-
-
isValidComponentType(int)
-
-
isValidNormalBinding(int)
-
-
isValidTextureCoordBinding(int)
-
-
normal(float, float, float)
-
-
normal(int, float[])
-
-
normal(int, Vector3[])
-
-
normal(Vector3)
-
-
setColorBinding(int)
- Set the binding of colors to components of the model.
-
setComponentType(int)
- Set the component type which this model is built from.
-
setCreaseAngle(float)
- Set the crease angle.
-
setNormalBinding(int)
- Set the binding of normals to components of the model.
-
setTextureCoordBinding(int)
- Set the binding of texture coordinates to components of
the model.
-
textureCoord(float, float)
-
-
textureCoord(int, float[])
-
-
textureCoord(int, Point2[])
-
-
textureCoord(Point2)
-
-
vertex(float, float, float)
-
-
vertex(int, float[])
-
-
vertex(int, Point3[])
-
-
vertex(Point3)
-
BINDING_NONE
public final static int BINDING_NONE
- Normal, color, and texture coordinate binding types
BINDING_PER_FACE
public final static int BINDING_PER_FACE
BINDING_PER_VERTEX
public final static int BINDING_PER_VERTEX
BINDING_PER_FACE_GENERATE
public final static int BINDING_PER_FACE_GENERATE
BINDING_PER_VERTEX_GENERATE
public final static int BINDING_PER_VERTEX_GENERATE
POLYGONS
public final static int POLYGONS
LINES
public final static int LINES
POINTS
public final static int POINTS
isValidComponentType
public final static boolean isValidComponentType(int type)
isValidNormalBinding
public final static boolean isValidNormalBinding(int binding)
isValidTextureCoordBinding
public final static boolean isValidTextureCoordBinding(int binding)
isValidColorBinding
public final static boolean isValidColorBinding(int binding)
setComponentType
public abstract void setComponentType(int componentType)
- Set the component type which this model is built from. This
must be the first method called from a ModelSource's
sendModelData() method.
setNormalBinding
public abstract void setNormalBinding(int binding)
- Set the binding of normals to components of the model.
Th setBindingXXX methods must be called after setComponentType()
and before any other Model methods.
setTextureCoordBinding
public abstract void setTextureCoordBinding(int binding)
- Set the binding of texture coordinates to components of
the model. The setBindingXXX methods must be called after
setComponentType() and before any other Model methods.
setColorBinding
public abstract void setColorBinding(int binding)
- Set the binding of colors to components of the model.
The setBindingXXX methods must be called after setComponentType()
and before any other Model methods.
setCreaseAngle
public void setCreaseAngle(float creaseAngle)
- Set the crease angle. This is used in vertex normal generation
for polygon-based models. It defines the maximum angle between
faces that represent a smooth surface. If this method is called
from the sendModelData method of a ModelSource, it must be
called before any calls to vertex(), normal(), textureCoord(),
or component() are made.
vertex
public abstract void vertex(float x,
float y,
float z)
vertex
public void vertex(Point3 p)
vertex
public void vertex(int count,
float vertices[])
vertex
public void vertex(int count,
Point3 vertices[])
normal
public abstract void normal(float x,
float y,
float z)
normal
public void normal(Vector3 v)
normal
public void normal(int count,
float normals[])
normal
public void normal(int count,
Vector3 normals[])
textureCoord
public abstract void textureCoord(float u,
float v)
textureCoord
public void textureCoord(Point2 p)
textureCoord
public void textureCoord(int count,
float textureCoords[])
textureCoord
public void textureCoord(int count,
Point2 textureCoords[])
component
public abstract void component(int nVertices,
int vi[],
int ni[],
int ti[],
int colors[])
All Packages Class Hierarchy This Package Previous Next Index