示例#1
0
        public Image()
        {
            this.name     = Name.Blank;
            this.pTexture = null;
            this.poRect   = new Azul.Rect();

            Debug.Assert(this.poRect != null);
        }
示例#2
0
        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);
        }
示例#3
0
 public void SetScreenRect(Azul.Rect newRect)
 {
     this.pScreenRect = newRect;
 }