ARCed.Controls.ImageSelectXnaPanel.Initialize C# (CSharp) Метод

Initialize() защищенный Метод

Creates the context and prepares for drawing
protected Initialize ( ) : void
Результат void
        protected override void Initialize()
        {
            _addBlend = new BlendState
            {
                ColorDestinationBlend = Blend.One,
                ColorSourceBlend = Blend.One,
                AlphaDestinationBlend = Blend.One,
                AlphaSourceBlend = Blend.One,
                ColorBlendFunction = BlendFunction.Add,
                AlphaBlendFunction = BlendFunction.Add
            };
            _subBlend = new BlendState
            {
                ColorSourceBlend = Blend.InverseBlendFactor,
                ColorDestinationBlend = Blend.One | Blend.InverseSourceColor,
                ColorBlendFunction = BlendFunction.Add,
                AlphaSourceBlend = Blend.InverseBlendFactor,
                AlphaDestinationBlend = Blend.One | Blend.InverseSourceAlpha,
                AlphaBlendFunction = BlendFunction.Add
            };
            _backColor = XnaColor.White;
            IconCache.GraphicsDevice = GraphicsDevice;
            this._batch = new SpriteBatch(GraphicsDevice);
            GraphicsDevice.Clear(XnaColor.DarkGray);
            Disposed += this.imageSelectXnaPanel_Disposed;
            MouseDown += this.imageXnaPanel_MouseDown;
            MouseUp += this.imageXnaPanel_MouseUp;
            MouseMove += this.imageXnaPanel_MouseMove;
        }