@Override
	public void render() {
		glEnable(GL_BLEND);
		if (texture != null) {
			RenderAssistant.bindTexture(texture);
			if (!stackTexture) RenderAssistant.renderRect(x, y, width, height);
			else {
				glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
				glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
				RenderAssistant.renderRect(x, y, width, height, 0, 0, width / (float) texW, height / (float) texH);
			}
		}
		glDisable(GL_BLEND);
		int tx = FontAssistant.getFont(font).getWidth(title);
		int mx = width / 2 - tx / 2;
		glColor3f(color.x, color.y, color.z);
		RenderAssistant.renderText(x + ((width > -1 && center) ? mx : 0), y + ((height > -1) ? height / 4f : 0), title, font);
	}