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);
|
renderers.Add(renderer);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Draw()
|
public void Draw(double dt, double alpha)
|
||||||
{
|
{
|
||||||
foreach (var renderer in renderers)
|
foreach (var renderer in renderers)
|
||||||
{
|
{
|
||||||
renderer.Render();
|
renderer.Render(dt, alpha);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@ namespace Encompass
|
||||||
_componentManager = componentManager;
|
_componentManager = componentManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract void Render();
|
public abstract void Render(double dt, double alpha);
|
||||||
|
|
||||||
protected ReadOnlySpan<Entity> ReadEntities<TComponent>() where TComponent : struct
|
protected ReadOnlySpan<Entity> ReadEntities<TComponent>() where TComponent : struct
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,7 +20,7 @@ namespace Encompass
|
||||||
}
|
}
|
||||||
|
|
||||||
// can't reflect invoke on Span returns...
|
// can't reflect invoke on Span returns...
|
||||||
public override void Render()
|
public override void Render(double dt, double alpha)
|
||||||
{
|
{
|
||||||
foreach (var type in _componentTypes)
|
foreach (var type in _componentTypes)
|
||||||
{
|
{
|
||||||
|
|
|
@ -69,9 +69,9 @@ namespace Encompass
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Causes the Renderers to draw.
|
/// Causes the Renderers to draw.
|
||||||
/// </summary>
|
/// </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();
|
dummyComponentManager.WriteComponents();
|
||||||
|
|
||||||
uberRenderer.SetEntity(uberEngine.Entity);
|
uberRenderer.SetEntity(uberEngine.Entity);
|
||||||
uberRenderer.Render();
|
uberRenderer.Render(1, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue