Experimental schematics
@@ -132,6 +132,12 @@ public class TextureRegion{
set(region.getX() + x, region.getY() + y, width, height);
}
+ /** Sets the texture to that of the specified region and sets the coordinates relative to the specified region. */
+ public void set(Texture texture, int x, int y, int width, int height){
+ this.texture = texture;
+ set(x, y, width, height);
+ }
+
public Texture getTexture(){
return texture;
}
