Example #1
0
 public TextureRegion(TextureRegion region, int x, int y, int width, int height)
 {
     setRegion(region, x, y, width, height);
 }
Example #2
0
 public TextureRegion(TextureRegion region)
 {
     setRegion(region);
 }
Example #3
0
 public void setRegion(TextureRegion region, int x, int y, int width, int height)
 {
     texture = region.texture;
     setRegion(region.getRegionX() + x, region.getRegionY() + y, width, height);
 }
Example #4
0
        public static TextureRegion[,] split(Texture2D texture, int tileWidth, int tileHeight)
        {
            TextureRegion region = new TextureRegion(texture);

            return(region.split(tileWidth, tileHeight));
        }
Example #5
0
 //set the texture and coords to that of given region
 public void setRegion(TextureRegion region)
 {
     texture = region.texture;
     setRegion(region.x, region.y, region.xx, region.yy);
 }