adding textures (has errors)

This commit is contained in:
2020-05-09 11:20:19 -04:00
parent 08928c65cb
commit eb6101d2ec
12 changed files with 99 additions and 26 deletions
+9 -2
View File
@@ -1,6 +1,7 @@
package org.hl.engine.graphics;
import org.hl.engine.math.Vector3f;
import org.hl.engine.math.lalg.Vector2f;
import org.hl.engine.math.lalg.Vector3f;
public class Vertex {
@@ -8,16 +9,22 @@ public class Vertex {
private Vector3f position;
private Vector3f color;
private Vector2f textureCoordinates;
public Vertex (Vector3f position, Vector3f color) {
public Vertex (Vector3f position, Vector3f color, Vector2f textureCoordinates) {
this.position = position;
this.color = color;
this.textureCoordinates = textureCoordinates;
}
public Vector3f getPosition() {
return position;
}
public Vector2f getTextureCoordinates() {
return textureCoordinates;
}
public Vector3f getColor() {
return color;
}