Пример #1
0
 private void RenderHighlightCurrentRoom()
 {
     Draw.SpriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp,
                            DepthStencilState.None, RasterizerState.CullNone, null, Camera.Matrix * Engine.ScreenMatrix);
     if (CurrentSession != null)
     {
         LevelTemplate currentTemplate = levels.Find(template => template.Name == CurrentSession.Level);
         currentTemplate?.RenderHighlight(Camera, false, true);
     }
     Draw.SpriteBatch.End();
 }