Ejemplo n.º 1
0
        ///////////////////////////////////////////

        protected override void OnAttach()
        {
            base.OnAttach();

            //create window
            window = ControlDeclarationManager.Instance.CreateControl("Gui\\GUISamples2Window.gui");
            Controls.Add(window);

            sceneBox = (SceneBox)window.Controls["SceneBox"];

            ((Button)window.Controls["Close"]).Click += Close_Click;
            ((Button)window.Controls["SceneBoxChangeModel"]).Click      += SceneBoxChangeModel_Click;
            ((Button)window.Controls["SceneBoxCreateParticle"]).Click   += SceneBoxCreateParticle_Click;
            ((Button)window.Controls["SceneBoxFullScreenEffect"]).Click += SceneBoxFullScreenEffect_Click;
            //( (Button)window.Controls[ "RenderToTextureTest" ] ).Click += RenderToTextureTest_Click;

            BackColor  = new ColorValue(0, 0, 0, .5f);
            MouseCover = true;

            renderToTexture.Create(window.Controls["RenderToTextureOutput"]);
        }