Пример #1
0
 /// <summary>
 ///
 /// </summary>
 private void Initialize()
 {
     if (!this.isInitialized)
     {
         this.viewportState    = new ViewportState();
         this.scissorTestState = new ScissorTestState();
         this.isInitialized    = true;
     }
 }
Пример #2
0
        /// <summary>
        ///
        /// </summary>
        protected override void DoInitialize()
        {
            this.viewportState    = new ViewportState();
            this.scissorTestState = new ScissorTestState();

            RendererBase renderer = this.Renderer;

            if (renderer != null)
            {
                renderer.Initialize();
            }
        }