adding textures (to texture branch, split due to errors)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package org.hl.engine.graphics;
|
||||
|
||||
import org.hl.engine.math.Vector3f;
|
||||
import org.hl.engine.math.lalg.*;
|
||||
|
||||
public class Vertex {
|
||||
|
||||
@@ -8,8 +8,9 @@ public class Vertex {
|
||||
|
||||
private Vector3f position;
|
||||
private Vector3f color;
|
||||
private Vector2f textureCoords;
|
||||
|
||||
public Vertex (Vector3f position, Vector3f color) {
|
||||
public Vertex (Vector3f position, Vector3f color, Vector2f texture) {
|
||||
this.position = position;
|
||||
this.color = color;
|
||||
}
|
||||
@@ -21,4 +22,8 @@ public class Vertex {
|
||||
public Vector3f getColor() {
|
||||
return color;
|
||||
}
|
||||
|
||||
public Vector2f getTextureCoords() {
|
||||
return textureCoords;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user