public Image() { this.name = Name.Blank; this.pTexture = null; this.poRect = new Azul.Rect(); Debug.Assert(this.poRect != null); }
public void Set(Name name, Image image, float x, float y, float width, float height) { this.name = name; this.pImage = image; this.pScreenRect = new Azul.Rect(x, y, width, height); Debug.Assert(pScreenRect != null); this.x = x; this.y = y; // Configure Azul Sprite this.pAzulSprite = createAzulSprite(image); }
public void SetScreenRect(Azul.Rect newRect) { this.pScreenRect = newRect; }