コード例 #1
0
        public static void dbugStart_Basic()
        {
            //demonstrate basic setup
            var  bridge         = new MyGlfwTopWindowBridge.GlfwEventBridge();
            Size primScreenSize = UIPlatform.CurrentPlatform.GetPrimaryMonitorSize();
            var  form           = new GlFwForm(primScreenSize.Width, primScreenSize.Height, "GLES_GLFW", bridge);

            Init(form);
            //------

            //this is an app detail
            Box bgBox = new Box(primScreenSize.Width, primScreenSize.Height);

            bgBox.BackColor = Color.White;
            s_myRootGfx.AddChild(bgBox.GetPrimaryRenderElement());

            //----------------------
            dbugMySprite sprite = new dbugMySprite(200, 300);
            dbugMyBoxUI  boxUI  = new dbugMyBoxUI();

            boxUI.SetRenderElement(sprite);
            sprite.SetController(boxUI);

            bgBox.Add(boxUI);
            //---------
        }
コード例 #2
0
ファイル: MyApp3.cs プロジェクト: brezza92/PixelFarm
        public static void dbugStart_Basic()
        {
            //demonstrate basic setup


            Init();
            //------

            //this is an app detail
            Size primScreenSize = UIPlatform.CurrentPlatform.GetPrimaryMonitorSize();

            Box bgBox = new Box(primScreenSize.Width, primScreenSize.Height);

            bgBox.BackColor = Color.White;
            s_myRootGfx.AddChild(bgBox.GetPrimaryRenderElement());

            //----------------------
            dbugMySprite sprite = new dbugMySprite(200, 300);
            dbugMyBoxUI  boxUI  = new dbugMyBoxUI();

            boxUI.SetRenderElement(sprite);
            sprite.SetController(boxUI);

            bgBox.Add(boxUI);
            //---------
        }