top level cleanup

shadows
cosmonaut 2020-08-06 00:13:39 -07:00
parent da52273dd0
commit d156fbc39a
4 changed files with 0 additions and 29 deletions

View File

@ -5,11 +5,6 @@ namespace Kav
{
public static class Renderer
{
public static void Render(GraphicsDevice graphicsDevice, SceneData sceneData)
{
Render(graphicsDevice, sceneData.Camera, sceneData.Models, sceneData.PointLights);
}
public static void Render(GraphicsDevice graphicsDevice, Camera camera, IEnumerable<Model> models, IEnumerable<PointLight> pointLights)
{
var view = camera.View;

View File

@ -1,24 +0,0 @@
using System.Collections.Generic;
namespace Kav
{
public class SceneData
{
private readonly PointLight[] pointLights = new PointLight[4];
private readonly List<Model> models = new List<Model>();
public Camera Camera { get; set; }
public IEnumerable<Model> Models { get { return models; } }
public IEnumerable<PointLight> PointLights { get { return pointLights; } }
public void AddPointLight(int index, PointLight light)
{
pointLights[index] = light;
}
public void AddModel(Model model)
{
models.Add(model);
}
}
}