1
0
Fork 0
This commit is contained in:
Fiesta87 2017-01-21 01:23:38 +01:00
parent 89c691beca
commit 4dbd9699c8
5 changed files with 66 additions and 16 deletions

View file

@ -33,10 +33,10 @@ public abstract class Tile {
this.color = Color4f.WHITE;
this.vbo = GL15.glGenBuffers();
float[] a = new float[]{
-.5f,-.5f, 0.0f,0.0f,
.5f,-.5f, 1.0f,0.0f,
.5f,.5f, 1.0f,1.0f,
-.5f,.5f, 0.0f,1.0f
-.5f,-.5f, 0.0f,1.0f,
.5f,-.5f, 1.0f,1.0f,
.5f,.5f, 1.0f,0.0f,
-.5f,.5f, 0.0f,0.0f
};
FloatBuffer buffer = BufferUtils.createFloatBuffer(a.length);
buffer.put(a).flip();