Initial 1.7 commit

This commit is contained in:
Chicken-Bomes committed 2014-04-07 14:02:47 +10:00
1 parent 34154fc011
commit ca675b5f31
72 files changed
+2967 -3335

No files matched your search

+19 -3
View File
@@ -4,10 +4,13 @@ import java.math.BigDecimal;
import java.math.MathContext;
import java.math.RoundingMode;
import codechicken.lib.render.uv.UV;
import codechicken.lib.render.uv.UVTransformation;
import codechicken.lib.util.Copyable;
import codechicken.lib.vec.Transformation;
import codechicken.lib.vec.Vector3;
public class Vertex5
public class Vertex5 implements Copyable<Vertex5>
{
public Vector3 vec;
public UV uv;
@@ -32,7 +35,7 @@ public class Vertex5
{
this(new Vector3(x, y, z), new UV(u, v));
}
public Vertex5 set(double x, double y, double z, double u, double v)
{
vec.set(x, y, z);
@@ -40,6 +43,19 @@ public class Vertex5
return this;
}
public Vertex5 set(double x, double y, double z, double u, double v, int tex)
{
vec.set(x, y, z);
uv.set(u, v, tex);
return this;
}
public Vertex5 set(Vertex5 vert) {
vec.set(vert.vec);
uv.set(vert.uv);
return this;
}
public Vertex5(Vertex5 vertex5)
{
this(vertex5.vec.copy(), vertex5.uv.copy());
@@ -62,7 +78,7 @@ public class Vertex5
return this;
}
public Vertex5 apply(IUVTransformation t)
public Vertex5 apply(UVTransformation t)
{
uv.apply(t);
return this;