public static void DrawTexture(Texture tex, float x, float y, float w, float h, Color color, float angle, float px, float py, float ux, float uy, float uw, float uh) {
		
		GL11.glMatrixMode(GL11.GL_MODELVIEW);
		GL11.glColor4f(color.getRf(), color.getGf(), color.getBf(), color.getAf());
		
		GL11.glEnable(GL11.GL_TEXTURE_2D);
		GL11.glBindTexture(GL11.GL_TEXTURE_2D, tex.getTextureId());
		 
		GL11.glPushMatrix();
			GL11.glTranslatef(x+w*px, y+h*py, 0);
			GL11.glRotatef(-angle, 0f, 0f, 1f);
			GL11.glTranslatef(-x-w*px, -y-h*py, 0);
			
			GL11.glBegin(GL11.GL_QUADS);
				GL11.glTexCoord2f(ux,uy);
				GL11.glVertex2f(x, y);
				GL11.glTexCoord2f(ux+uw,uy);
				GL11.glVertex2f(x + w, y);
				GL11.glTexCoord2f(ux+uw,uy+uh);
				GL11.glVertex2f(x + w, y + h);
				GL11.glTexCoord2f(ux,uy+uh);
				GL11.glVertex2f(x , y + h);
			GL11.glEnd();
		GL11.glPopMatrix();
		
		GL11.glDisable(GL11.GL_TEXTURE_2D);
	}