add dt and alpha params to renderers
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
6858ec1b0f
commit
36e98b0376
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -474,7 +474,7 @@ namespace Encompass
|
|||
dummyComponentManager.WriteComponents();
|
||||
|
||||
uberRenderer.SetEntity(uberEngine.Entity);
|
||||
uberRenderer.Render();
|
||||
uberRenderer.Render(1, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue