2019-08-01 22:06:19 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Encompass
|
|
|
|
|
{
|
2019-09-26 19:29:59 +00:00
|
|
|
|
public abstract class OrderedRenderer<TComponent> : Renderer where TComponent : struct, IComponent, IDrawComponent
|
2019-08-01 22:06:19 +00:00
|
|
|
|
{
|
|
|
|
|
public abstract void Render(Guid drawComponentID, TComponent drawComponent);
|
|
|
|
|
|
|
|
|
|
internal void InternalRender(Guid drawComponentId, IComponent component)
|
|
|
|
|
{
|
|
|
|
|
Render(drawComponentId, (TComponent)component);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|