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); }
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); }
public void Draw(LTextureRegion region, float x, float y) { Draw(region, x, y, region.GetRegionWidth(), region.GetRegionHeight()); }
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()) { }