Ejemplo n.º 1
0
        /// <summary>
        /// Initialize defaut states
        /// </summary>
        private void InitializeDefaultState()
        {
            _spriteBatchConfig = new SpriteBatchConfiguration()
            {
                SpriteSortMode    = SpriteSortMode.Deferred,
                BlendState        = BlendState.AlphaBlend,
                SamplerState      = SamplerState.LinearClamp,
                DepthStencilState = DepthStencilState.Default,
                RasterizerState   = RasterizerState.CullNone,
                Effect            = null
            };

            _camera = new YnCamera2D();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initialize defaut states
        /// </summary>
        private void InitializeDefaultState()
        {
            _spriteBatchConfig = new SpriteBatchConfiguration()
            {
                SpriteSortMode = SpriteSortMode.Deferred,
                BlendState = BlendState.AlphaBlend,
                SamplerState = SamplerState.LinearClamp,
                DepthStencilState = DepthStencilState.Default,
                RasterizerState = RasterizerState.CullNone,
                Effect = null
            };

            _camera = new YnCamera2D();
        }