ordered renderers register components with world builder
parent
4f75aeebf1
commit
c1e1f7f5ca
|
@ -196,6 +196,8 @@ namespace Encompass
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public OrderedRenderer<TComponent> AddOrderedRenderer<TComponent>(OrderedRenderer<TComponent> renderer) where TComponent : struct, IComponent, IDrawableComponent
|
public OrderedRenderer<TComponent> AddOrderedRenderer<TComponent>(OrderedRenderer<TComponent> renderer) where TComponent : struct, IComponent, IDrawableComponent
|
||||||
{
|
{
|
||||||
|
RegisterComponentType<TComponent>();
|
||||||
|
componentTypesToRegister.Add(typeof(TComponent));
|
||||||
renderer.AssignEntityManager(entityManager);
|
renderer.AssignEntityManager(entityManager);
|
||||||
renderer.AssignComponentManager(componentManager);
|
renderer.AssignComponentManager(componentManager);
|
||||||
renderManager.RegisterOrderedRenderer<TComponent>(renderer.InternalRender);
|
renderManager.RegisterOrderedRenderer<TComponent>(renderer.InternalRender);
|
||||||
|
|
Loading…
Reference in New Issue