Exemplo n.º 1
0
        public TSAImageObject AddImage(TextureRegion2D tex, FRectangle r, Color c)
        {
            var obj = new TSAImageObject(tex, r, c, 0f, Elements.Any() ? Elements.Last().Order + 1 : 1);

            AddElement(obj);
            return(obj);
        }
Exemplo n.º 2
0
        public TSAImageObject AddImage(TextureRegion2D tex, float x, float y, float w, float h, Color c)
        {
            var obj = new TSAImageObject(tex, new FRectangle(x, y, w, h), c, 0f, Elements.Any() ? Elements.Last().Order + 1 : 1);

            AddElement(obj);
            return(obj);
        }