private SceneManager() { _sceneVisitorRendering = new SceneVisitorRendering(this); for (int i = 0; i < RenderJobs.Length; i++ ) { RenderJobs[i] = new List<RenderJob>(); } }
/// <summary> /// Traverse is giving the Update routine access to the DeltaTime and the Input class and afterwards executes the Update routine. /// </summary> /// <param name="sceneVisitorRendering">The scene visitor rendering.</param> public void TraverseForRendering(SceneVisitorRendering sceneVisitorRendering) { Update(); }
/// <summary> /// Add's a Spotlight to the lightqueue. /// </summary> /// <param name="sceneVisitorRendering">The SceneVisitorRendering instance.</param> public void TraverseForRendering(SceneVisitorRendering sceneVisitorRendering) { sceneVisitorRendering.AddLightSpot(_position, _direction, _diffuseColor, _ambientColor, _specularColor, _angle, _type, _channel ); }