Пример #1
0
        public MyRootGraphic(UIPlatform uiPlatform,
                             GraphicsPlatform gfxPlatform,
                             int width, int height)
            : base(width, height)
        {
            this.uiPlatform          = uiPlatform;
            this.graphicsPlatform    = gfxPlatform;
            this.graphicTimerTaskMan = new GraphicsTimerTaskManager(this, uiPlatform);
#if DEBUG
            dbugCurrentGlobalVRoot = this;
            dbug_Init();
#endif

            //create default render box***
            this.topWindowRenderBox = new TopWindowRenderBox(this, width, height);
            this.topWindowEventRoot = new TopWindowEventRoot(this.topWindowRenderBox);


            this.SubscribeGraphicsIntervalTask(normalUpdateTask,
                                               TaskIntervalPlan.Animation,
                                               20,
                                               (s, e) =>
            {
                this.PrepareRender();
                this.FlushAccumGraphics();
            });
        }
Пример #2
0
        Func <PixelFarm.Drawing.GLES2.MyGLDrawBoard> _getDrawboard; //

        public MyRootGraphic(
            int width, int height)
            : base(width, height)
        {
            _gfxTimerTaskMx      = new GraphicsTimerTaskManager(this);
            _defaultTextEditFont = MyFontSettings.DefaultRootGraphicsFont;


#if DEBUG
            dbugCurrentGlobalVRoot = this;
            dbug_Init(null, null, null);
#endif

            //create default render box***
            _topWindowRenderBox = new TopWindowRenderBox(this, width, height);
            _topWindowEventRoot = new TopWindowEventRoot(this, _topWindowRenderBox);
            _gfxTimerTask       = this.SubscribeGraphicsIntervalTask(_normalUpdateTask,
                                                                     TaskIntervalPlan.Animation,
                                                                     20,
                                                                     (s, e) =>
            {
                this.PrepareRender();
                this.FlushAccumGraphics();
            });

            _primaryContainerElement = _topWindowRenderBox;
        }
Пример #3
0
        public MyRootGraphic(UIPlatform uiPlatform, 
            int width, int height)
            : base(width, height)
        {
            this.uiPlatform = uiPlatform;
            
            this.graphicTimerTaskMan = new GraphicsTimerTaskManager(this, uiPlatform);
            _defaultTextEditFont = new RequestFont("tahoma", 10);

#if DEBUG
            dbugCurrentGlobalVRoot = this;
            dbug_Init(null, null, null);
#endif

            //create default render box***
            this.topWindowRenderBox = new TopWindowRenderBox(this, width, height);
            this.topWindowEventRoot = new TopWindowEventRoot(this.topWindowRenderBox);
            this.SubscribeGraphicsIntervalTask(normalUpdateTask,
                TaskIntervalPlan.Animation,
                20,
                (s, e) =>
                {
                    this.PrepareRender();
                    this.FlushAccumGraphics();
                });
        }
Пример #4
0
 public override void CloseWinRoot()
 {
     if (graphicTimerTaskMan != null)
     {
         this.graphicTimerTaskMan.CloseAllWorkers();
         this.graphicTimerTaskMan = null;
     }
 }
Пример #5
0
        public void Dispose()
        {
            if (_gfxTimerTaskMx != null)
            {
                _gfxTimerTaskMx.CloseAllWorkers();
                _gfxTimerTaskMx = null;
            }
#if DEBUG
            dbugHitTracker.Close();
#endif
        }
Пример #6
0
        public override void CloseWinRoot()
        {
            if (_gfxTimerTask != null)
            {
                _gfxTimerTask.RemoveSelf();
                _gfxTimerTask = null;
            }

            if (_gfxTimerTaskMx != null)
            {
                _gfxTimerTaskMx.CloseAllWorkers();
                _gfxTimerTaskMx = null;
            }
        }
Пример #7
0
 public override void CloseWinRoot()
 {
     if (graphicTimerTaskMan != null)
     {
         this.graphicTimerTaskMan.CloseAllWorkers();
         this.graphicTimerTaskMan = null;
     }
 }