add dt and alpha params to renderers
continuous-integration/drone/push Build is failing Details

main
cosmonaut 2021-03-23 17:37:47 -07:00
parent 6858ec1b0f
commit 36e98b0376
5 changed files with 7 additions and 7 deletions

View File

@ -17,11 +17,11 @@ namespace Encompass
renderers.Add(renderer);
}
public void Draw()
public void Draw(double dt, double alpha)
{
foreach (var renderer in renderers)
{
renderer.Render();
renderer.Render(dt, alpha);
}
}
}

View File

@ -18,7 +18,7 @@ namespace Encompass
_componentManager = componentManager;
}
public abstract void Render();
public abstract void Render(double dt, double alpha);
protected ReadOnlySpan<Entity> ReadEntities<TComponent>() where TComponent : struct
{

View File

@ -20,7 +20,7 @@ namespace Encompass
}
// can't reflect invoke on Span returns...
public override void Render()
public override void Render(double dt, double alpha)
{
foreach (var type in _componentTypes)
{

View File

@ -69,9 +69,9 @@ namespace Encompass
/// <summary>
/// Causes the Renderers to draw.
/// </summary>
public void Draw()
public void Draw(double dt, double alpha)
{
_renderManager.Draw();
_renderManager.Draw(dt, alpha);
}
}
}

View File

@ -474,7 +474,7 @@ namespace Encompass
dummyComponentManager.WriteComponents();
uberRenderer.SetEntity(uberEngine.Entity);
uberRenderer.Render();
uberRenderer.Render(1, 0);
}
}
}