Esempio n. 1
0
 public Picture(List <DrawCmd> drawCmds,
                Rect paintBounds,
                bool isDynamic = false,
                BBoxHierarchy <IndexedRect> bbh = null,
                List <int> stateUpdatesIndices  = null)
 {
     this.drawCmds            = drawCmds;
     this.paintBounds         = paintBounds;
     this._isDynamic          = isDynamic;
     this.bbh                 = bbh;
     this.stateUpdatesIndices = stateUpdatesIndices;
 }
Esempio n. 2
0
        public static uiPicture create(List <uiDrawCmd> drawCmds,
                                       uiRect paintBounds,
                                       BBoxHierarchy <IndexedRect> bbh = null,
                                       uiList <int> stateUpdateIndices = null)
        {
            var picture = ObjectPool <uiPicture> .alloc();

            picture.drawCmds            = drawCmds;
            picture.paintBounds         = paintBounds;
            picture.bbh                 = bbh;
            picture.stateUpdatesIndices = stateUpdateIndices;
            return(picture);
        }