public UcWorldNodeVisualCache(IDiContainer di, ISceneNode node) { standardMaterialCache = di.Get <IStandardMaterialCache>(); Node = node; parentObj = di.Get <IGlobalObjectService>().VisualObjects; unityObjects = new List <Pair <GameObject, MaterialPropertyBlock> >(); }
public UcRenderService(IDiContainer di, IEventRoutingService eventRoutingService, IGlobalObjectService globalObjectService, IWindowingSystem windowingSystem, IStandardMaterialCache standardMaterialCache) { this.di = di; this.globalObjectService = globalObjectService; this.standardMaterialCache = standardMaterialCache; eventRoutingService.RegisterServiceDependency(typeof(IRenderService), typeof(IStandardMaterialCache)); eventRoutingService.Subscribe <ILateUpdateEvent>(typeof(IRenderService), "OnLateUpdate", e => { Render(windowingSystem.RenderControl, e.FrameTime.TotalSeconds); }); }