Resolving conflicts and applying textures

This commit is contained in:
2020-05-25 15:53:12 -04:00
27 changed files with 1132 additions and 535 deletions
+25 -14
View File
@@ -1,24 +1,35 @@
package org.hl.engine.graphics;
import org.hl.engine.math.Vector3f;
import org.hl.engine.math.lalg.*;
public class Vertex {
// Just a vertex
// Just a vertex
private Vector3f position;
private Vector3f color;
private Vector3f position;
private Vector3f color;
private Vector2f textureCoords;
public Vertex (Vector3f position, Vector3f color) {
this.position = position;
this.color = color;
}
public Vector3f getPosition() {
return position;
}
public Vertex (Vector3f position, Vector3f color, Vector2f textureCoords) {
this.position = position;
this.color = color;
this.textureCoords = textureCoords;
}
public Vector3f getPosition() {
return position;
}
public Vector3f getColor() {
return color;
}
public Vector2f getTextureCoords() {
return textureCoords;
}
public Vector3f getColor() {
return color;
}
}