private void setTransform(int row, int col, Rectangle2D box) {
		Texture texture = SpriteList.get(frame).getTexture();
		transform.clear();
		transform.textureOffsets = new Vector4f();
		transform.color = new Vector4f(1f, 1f, 1f, opacity);
		
		switch(row) {
		case 0:
			transform.y = box.getY() - (frameSize / 3);
			transform.height = frameSize / 3;
			transform.textureOffsets.y = 0;
			transform.textureOffsets.w = (texture.getHeight() / 3f);
			break;
		case 1:
			transform.y = box.getY();
			transform.height = box.getHeight();
			transform.textureOffsets.y = (texture.getHeight() / 3f);
			transform.textureOffsets.w = (texture.getHeight() * 0.667f);
			break;
		case 2:
			transform.y = box.getMaxY();
			transform.height = frameSize / 3;
			transform.textureOffsets.y = (texture.getHeight() * 0.667f);
			transform.textureOffsets.w = (texture.getHeight());
			break;
		}
		
		switch(col) {
		case 0:
			transform.x = box.getX() - (frameSize / 3);
			transform.width = frameSize / 3;
			transform.textureOffsets.x = 0;
			transform.textureOffsets.z = (texture.getWidth() / 3f);
			break;
		case 1:
			transform.x = box.getX();
			transform.width = box.getWidth();
			transform.textureOffsets.x = (texture.getWidth() / 3f);
			transform.textureOffsets.z = (texture.getWidth() * 0.667f);
			break;
		case 2:
			transform.x = box.getMaxX();
			transform.width = frameSize / 3;
			transform.textureOffsets.x = (texture.getWidth() * 0.667f);
			transform.textureOffsets.z = (texture.getWidth());
			break;
		}
	}