top level cleanup
parent
da52273dd0
commit
d156fbc39a
|
@ -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;
|
||||
|
|
24
SceneData.cs
24
SceneData.cs
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue