float TW = Tile.sheet.getTexture().getTextureWidth();
float TH = Tile.sheet.getTexture().getTextureHeight();
float tx = (float) sprite.x() / TW;
float ty = (float) sprite.y() / TH;
float tw = ((float) 40 / TW) + tx;
float th = ((float) 40 / TH) + ty;
glBegin(GL_QUADS);