public virtual void Update() { if (!Paused) { Entities.Update(); RendererList.Update(); } }
public Scene() { Tracker = new Tracker(); Entities = new EntityList(this); TagLists = new TagLists(); RendererList = new RendererList(this); actualDepthLookup = new Dictionary <int, double>(); HelperEntity = new Entity(); Entities.Add(HelperEntity); }
public virtual void BeforeUpdate() { if (!Paused) { TimeActive += Engine.DeltaTime; } RawTimeActive += Engine.RawDeltaTime; Entities.UpdateLists(); TagLists.UpdateLists(); RendererList.UpdateLists(); }
public virtual void AfterRender() { RendererList.AfterRender(); }
/// <summary> /// Shortcut function to remove a Renderer from the Renderer list /// </summary> /// <param name="renderer">The Renderer to remove</param> public void Remove(Renderer renderer) { RendererList.Remove(renderer); }
/// <summary> /// Shortcut function to add a Renderer to the Renderer list /// </summary> /// <param name="renderer">The Renderer to add</param> public void Add(Renderer renderer) { RendererList.Add(renderer); }
public virtual void Render() { RendererList.Render(); }
public virtual void BeforeRender() { RendererList.BeforeRender(); }