示例#1
0
 public SpriteRegion(LTextureRegion region)
 {
     SetRegion(region);
     SetColor(1f, 1f, 1f, 1f);
     setSize(Math.Abs(region.GetRegionWidth()),
             Math.Abs(region.GetRegionHeight()));
     setOrigin(width / 2, height / 2);
 }
示例#2
0
 public void Draw(LTextureRegion region, float x, float y, float width,
         float height, float rotation)
 {
     Draw(region, x, y, region.GetRegionWidth() / 2,
             region.GetRegionHeight() / 2, width, height, 1f, 1f, rotation);
 }
示例#3
0
 public void Draw(LTextureRegion region, float x, float y)
 {
     Draw(region, x, y, region.GetRegionWidth(), region.GetRegionHeight());
 }
示例#4
0
        public EmulatorButton(LTextureRegion img, int w, int h, int x, int y,
				bool flag)
            : this(img, w, h, x, y, flag, img.GetRegionWidth(), img.GetRegionHeight())
        {
        }