this.gl.glBindVertexArray(0);
}
@Override
public void renderSpriteRotated(Sprite sprite, int x, int y, float phi){
Texture t = sprite.getTexture();
int xpos = x;
int ypos = y;
int width = sprite.getWidth();
int height = sprite.getHeight();
float xit = (float) sprite.getTextureX();
float yit = (float) sprite.getTextureY();
float wit = (float) sprite.getWidthInTexture();
float hit = (float) sprite.getHeightInTexture();
this.setSpriteUBO(xpos, ypos, width, height, xit, yit, wit, hit, phi);
this.gl.glBindVertexArray(this.spriteVAO);
this.gl.glBindTexture(GL_TEXTURE_2D, t.getID());
this.gl.glUseProgram(this.defaultProgram.getID());
this.gl.glDrawElements(GL_TRIANGLES, 6, GL_UNSIGNED_BYTE, 0);
this.gl.glUseProgram(0);