Mesh instances to define
its vertex structure. Vertex attributes have an order. The order is specified by the order they are added to this class.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| public static class | VertexAttributes.
The usage of a vertex attribute. |
| Modifier and Type | Field and Description |
|---|---|
| private final VertexAttribute[] | attributes
the attributes in the order they were specified |
| private int | boneWeightUnits
cache for bone weight units. |
| private VertexAttributes. | |
| private long | |
| private int | textureCoordinates
cache for texture coordinate units. |
| public final int | vertexSize
the size of a single vertex in bytes |
| Access | Constructor and Description |
|---|---|
| public | VertexAttributes(VertexAttribute... attributes)
Constructor, sets the vertex attributes in a specific order |
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| public int | compareTo(VertexAttributes o)
Implements java. Compares this object with the specified object for order. |
| public boolean | equals(final Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public VertexAttribute | findByUsage(int
The usage of the VertexAttribute to find. usage)Returns the first VertexAttribute for the given usage. |
| public VertexAttribute | |
| public int | |
| public long | |
| public long | Returns: the mask with attributes count packed into the last 32 bits.Calculates the mask based on |
| public int | getOffset(int
The usage of the VertexAttribute. usage, int defaultIfNotFound)Returns the offset for the first VertexAttribute with the specified usage. |
| public int | getOffset(int
The usage of the VertexAttribute. usage)Returns the offset for the first VertexAttribute with the specified usage. |
| public int | |
| public int | |
| public Iterator | |
| public int | |
| public String |
| attributes | back to summary |
|---|---|
| private final VertexAttribute[] attributes the attributes in the order they were specified | |
| boneWeightUnits | back to summary |
|---|---|
| private int boneWeightUnits cache for bone weight units. | |
| iterable | back to summary |
|---|---|
| private VertexAttributes. | |
| mask | back to summary |
|---|---|
| private long mask cache of the value calculated by | |
| textureCoordinates | back to summary |
|---|---|
| private int textureCoordinates cache for texture coordinate units. | |
| vertexSize | back to summary |
|---|---|
| public final int vertexSize the size of a single vertex in bytes | |
| VertexAttributes | back to summary |
|---|---|
| public VertexAttributes(VertexAttribute... attributes) Constructor, sets the vertex attributes in a specific order | |
| calculateOffsets | back to summary |
|---|---|
| private int calculateOffsets() | |
| compareTo | back to summary |
|---|---|
| public int compareTo(VertexAttributes o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| findByUsage | back to summary |
|---|---|
| public VertexAttribute findByUsage(int usage) Returns the first VertexAttribute for the given usage.
| |
| get | back to summary |
|---|---|
public VertexAttribute get(int index)
| |
| getBoneWeights | back to summary |
|---|---|
public int getBoneWeights()
| |
| getMask | back to summary |
|---|---|
| public long getMask() Calculates a mask based on the contained
| |
| getMaskWithSizePacked | back to summary |
|---|---|
| public long getMaskWithSizePacked() Calculates the mask based on
| |
| getOffset | back to summary |
|---|---|
| public int getOffset(int usage, int defaultIfNotFound) Returns the offset for the first VertexAttribute with the specified usage.
| |
| getOffset | back to summary |
|---|---|
| public int getOffset(int usage) Returns the offset for the first VertexAttribute with the specified usage.
| |
| getTextureCoordinates | back to summary |
|---|---|
public int getTextureCoordinates()
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type
| |
| size | back to summary |
|---|---|
public int size()
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| private final T[] | |
| private VertexAttributes. | |
| private VertexAttributes. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Iterator |
| array | back to summary |
|---|---|
| private final T[] array | |
| iterator1 | back to summary |
|---|---|
| private VertexAttributes. | |
| iterator2 | back to summary |
|---|---|
| private VertexAttributes. | |
| ReadonlyIterable | back to summary |
|---|---|
| public ReadonlyIterable(T[] array) | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type
| |
| Modifier and Type | Field and Description |
|---|---|
| private final T[] | |
| pack-priv int | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public Iterator | |
| public T | |
| public void | remove()
Overrides default java. Removes from the underlying collection the last element returned by this iterator (optional operation). |
| public void |
| array | back to summary |
|---|---|
| private final T[] array | |
| index | back to summary |
|---|---|
| pack-priv int index | |
| valid | back to summary |
|---|---|
| pack-priv boolean valid | |
| ReadonlyIterator | back to summary |
|---|---|
| public ReadonlyIterator(T[] array) | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type
| |
| next | back to summary |
|---|---|
| public T next() Implements java. Doc from java. Returns the next element in the iteration.
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |
| reset | back to summary |
|---|---|
| public void reset() | |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public |
| BiNormal | back to summary |
|---|---|
| public static final int BiNormal | |
| BoneWeight | back to summary |
|---|---|
| public static final int BoneWeight | |
| ColorPacked | back to summary |
|---|---|
| public static final int ColorPacked | |
| ColorUnpacked | back to summary |
|---|---|
| public static final int ColorUnpacked | |
| Generic | back to summary |
|---|---|
| public static final int Generic | |
| Normal | back to summary |
|---|---|
| public static final int Normal | |
| Position | back to summary |
|---|---|
| public static final int Position | |
| Tangent | back to summary |
|---|---|
| public static final int Tangent | |
| TextureCoordinates | back to summary |
|---|---|
| public static final int TextureCoordinates | |
| Usage | back to summary |
|---|---|
| public Usage() | |