#region CPL License /* Nuclex Framework Copyright (C) 2002-2010 Nuclex Development Labs This library is free software; you can redistribute it and/or modify it under the terms of the IBM Common Public License as published by the IBM Corporation; either version 1.0 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the IBM Common Public License for more details. You should have received a copy of the IBM Common Public License along with this library */ #endregion using System; using System.Collections.Generic; using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using SynapseGaming.LightingSystem.Core; using SynapseGaming.LightingSystem.Rendering; using SynapseGaming.LightingSystem.Editor; using Ninject; namespace Nuclex.Ninject.Sunburn { /// /// Adds Sunburn's lighting system editor to the game's update loop /// public class LightingSystemEditorComponent : GameComponent { /// Initializes a new splash screen display component /// Game the splash screen will be displayed in /// The Sunburn lighting system editor public LightingSystemEditorComponent( Game game, LightingSystemEditor lightingSystemEditor ) : base(game) { this.lightingSystemEditor = lightingSystemEditor; UpdateOrder = int.MaxValue; } /// Called when the GameComponent needs to be updated /// Time elapsed since the last call to Update public override void Update(GameTime gameTime) { this.lightingSystemEditor.Update(gameTime); } /// /// Lighting system editor through which the user can interactively modify /// the scene's lighting, textures and other settings /// private LightingSystemEditor lightingSystemEditor; } } // namespace Nuclex.Ninject.Sunburn