示例#1
0
        //CLM [04.26.06] this function called when a tab becomes 'active'
        public override void Activate()
        {
            base.Activate();
            //this call passes in the panel width and height
            MainWindow.mMainWindow.deviceResize(d3dRenderPanel.Width, d3dRenderPanel.Height, false);

            //this call passes in the panel handle in which you want to render to.
            //this is handled during the 'present' call
            BRenderDevice.setWindowTarget(d3dRenderPanel);
        }