/// <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(); }