Ejemplo n.º 1
0
 public void Add(ISprite sprite, Vector2 leftPos, float width, float height, Color color)
 {
     sprite.AddRef();
     mData.Add(new ISpriteData()
     {
         sprite = sprite, leftPos = leftPos, color = color, width = width, height = height
     });
     isRebuild = true;
 }
Ejemplo n.º 2
0
            public void Reset(NodeBase n, ISprite s, Rect r, Line l)
            {
                if (sprite != null)
                {
                    sprite.SubRef();
                }

                node   = n;
                sprite = s;
                rect   = r;
                line   = l;
                if (sprite != null)
                {
                    sprite.AddRef();
                }
            }