public void render(Vector2 pos, Vector2 dim)
	{
		switch(renderType)
		{
		case SOLID:
			Renderer.drawRect(pos, dim, color, alpha);
			break;
		case TEX:
			if(tex != null)
			{
				if(tex.isLinearScaling() != linearScaling)
					tex.setLinearScaling(linearScaling);
				if(tex.isRepeat() != repeat)
					tex.setRepeat(repeat);
				Renderer.drawRect(pos, dim, uvPos, uvDim, tex, color, alpha);
			}
			break;
		case ANIM:
			if(anim != null)
			{
				if(anim.getTexture().isLinearScaling() != linearScaling)
					anim.getTexture().setLinearScaling(linearScaling);
				if(anim.getTexture().isRepeat() != repeat)
					anim.getTexture().setRepeat(repeat);
				anim.render(pos, dim, uvPos, uvDim, color, alpha);
			}
			break;
		}
	}