public final class VertexElement extends ValueType
Constructor and Description |
---|
VertexElement(int offset,
VertexElementFormat elementFormat,
VertexElementUsage elementUsage,
int usageIndex)
Initializes a new instance of the VertexElement class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Returns a value that indicates whether the current instance is equal to a specified object.
|
int |
getOffset()
Retrieves the offset (if any) from the beginning of the stream to the beginning of the vertex data.
|
int |
getUsageIndex()
Modifies the usage data to allow the user to specify multiple usage types.
|
VertexElementFormat |
getVertexElementFormat()
Gets the format of this vertex element.
|
VertexElementUsage |
getVertexElementUsage()
Gets a value describing how the vertex element is to be used.
|
int |
hashCode() |
void |
setOffset(int value)
Sets the offset (if any) from the beginning of the stream to the beginning of the vertex data.
|
void |
setUsageIndex(int value)
Modifies the usage data to allow the user to specify multiple usage types.
|
void |
setVertexElementFormat(VertexElementFormat value)
Sets the format of this vertex element.
|
void |
setVertexElementUsage(VertexElementUsage value)
Sets a value describing how the vertex element is to be used.
|
java.lang.String |
toString()
Retrieves a string representation of this object.
|
public VertexElement(int offset, VertexElementFormat elementFormat, VertexElementUsage elementUsage, int usageIndex)
offset
- Offset (if any) from the beginning of the stream to the beginning of the vertex data.elementFormat
- One of several predefined types that define the vertex data size.elementUsage
- The intended use of the vertex data.usageIndex
- Modifies the usage data to allow the user to specify multiple usage types.public int getOffset()
public void setOffset(int value)
public int getUsageIndex()
public void setUsageIndex(int value)
public VertexElementFormat getVertexElementFormat()
public void setVertexElementFormat(VertexElementFormat value)
public VertexElementUsage getVertexElementUsage()
public void setVertexElementUsage(VertexElementUsage value)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The Object to compare with the current VertexElement.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object