Revert "Revert "adding textures (has errors)""

This reverts commit 8c94a73d70.

removing textureloader
This commit is contained in:
2020-05-10 10:52:12 -04:00
parent 8c94a73d70
commit 6f99ed0ebe
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;
}