类 Quad.Vertex
java.lang.Object
committee.nova.mods.avaritia.api.client.model.Quad.Vertex
- 封闭类:
- Quad
A simple vertex format.
-
字段概要
字段 -
构造器概要
构造器构造器说明Vertex(CachedFormat format) Create a new Vertex.Vertex(Quad.Vertex other) Creates a new Vertex using the data inside the other. -
方法概要
修饰符和类型方法说明copy()Copies this Vertex to a new one.floatdx(int s) Gets the 2d X coord for the given axis.floatdy(int s) Gets the 2d Y coord for the given axis.interpColorFrom(InterpHelper interpHelper, Quad.Vertex[] others) Interpolates the new color values for this Vertex using the others as a reference.interpLightMapFrom(InterpHelper interpHelper, Quad.Vertex[] others) Interpolates the new LightMap values for this Vertex using the others as a reference.interpUVFrom(InterpHelper interpHelper, Quad.Vertex[] others) Interpolates the new UV values for this Vertex using the others as a reference.voidPulls references to the individual element's arrays inside raw.voidreset(CachedFormat format) Resets the Vertex to a new format.
-
字段详细资料
-
format
-
raw
public float[][] rawThe raw data. -
vec
public float[] vec -
normal
public float[] normal -
color
public float[] color -
uv
public float[] uv -
overlay
public float[] overlay -
lightmap
public float[] lightmap
-
-
构造器详细资料
-
Vertex
Create a new Vertex.- 参数:
format- The format for the vertex.
-
Vertex
Creates a new Vertex using the data inside the other. A copy!- 参数:
other- The other.
-
-
方法详细资料
-
preProcess
public void preProcess()Pulls references to the individual element's arrays inside raw. Modifying the individual element arrays will update raw. -
dx
public float dx(int s) Gets the 2d X coord for the given axis.- 参数:
s- The axis. side >> 1- 返回:
- The x coord.
-
dy
public float dy(int s) Gets the 2d Y coord for the given axis.- 参数:
s- The axis. side >> 1- 返回:
- The y coord.
-
interpColorFrom
Interpolates the new color values for this Vertex using the others as a reference.- 参数:
interpHelper- The InterpHelper to use.others- The other Vertices to use as a template.- 返回:
- The same Vertex.
-
interpUVFrom
Interpolates the new UV values for this Vertex using the others as a reference.- 参数:
interpHelper- The InterpHelper to use.others- The other Vertices to use as a template.- 返回:
- The same Vertex.
-
interpLightMapFrom
Interpolates the new LightMap values for this Vertex using the others as a reference.- 参数:
interpHelper- The InterpHelper to use.others- The other Vertices to use as a template.- 返回:
- The same Vertex.
-
copy
Copies this Vertex to a new one.- 返回:
- The new Vertex.
-
reset
Resets the Vertex to a new format. Expands the raw array if needed.- 参数:
format- The format to reset to.
-