Rendering

Omg. Sorry I’ll make this my last post here. But Omg…

I gave VBO’s 1 last chance. I tried doing this at the start of my updateVBO() method.

	
public void updateVBOCoords()
{
	vertexData = BufferUtils.createFloatBuffer(amountOfVertices * vertexSize);
        vertexData.put(new float[]{x, y, x + width, y, x + width, y + height, x, y + height});
        vertexData.flip();
        
        vboVertexHandle = glGenBuffers();
        glBindBuffer(GL_ARRAY_BUFFER, vboVertexHandle);
        glBufferData(GL_ARRAY_BUFFER, vertexData, GL_STATIC_DRAW);
        glBindBuffer(GL_ARRAY_BUFFER, 0);
}

So all it does is reload the coords. IT WORKED! Lol… I don’t know why I never tried that, but hey ti worked.

Regarding the texture looking weird, I keep reading that OpenGL only uses triangles, so the texture is rendering 2 triangles. I don’t know the best way around this, but I’ll look into it a little more.

http://gyazo.com/45f25d3db43ee9558fa8d55a10d22f72

But omg, I got it to move lol. VBO’s turn up!