예제 #1
0
 public UIRenderable(Control control)
 {
     Debug.Assert(control is not null);
     _control  = control;
     IsFrozen  = true;       // disable calling update method per frame
     HasShadow = false;
     Activating.Subscribe((f, ct) => SafeCast.As <UIRenderable>(f).OnActivating());
 }
예제 #2
0
파일: SkyBox.cs 프로젝트: ikorin24/Elffy
 public SkyBox()
 {
     Activating.Subscribe((f, ct) => SafeCast.As <SkyBox>(f).OnActivating());
 }
예제 #3
0
 public SkySphere()
 {
     Activating.Subscribe((f, ct) => SafeCast.As <SkySphere>(f).OnActivating());
 }
예제 #4
0
 public DeferredRenderingLayer(int sortNumber = DRLayerDefaultSort) : base(sortNumber)
 {
     _gBuffer     = new GBuffer();
     _postProcess = new PbrDeferredRenderingPostProcess(this, static screen => ref screen.Camera.View);
     Activating.Subscribe((l, ct) => SafeCast.As <DeferredRenderingLayer>(l).OnActivating());
 }
예제 #5
0
 public Cube()
 {
     Activating.Subscribe((f, ct) => SafeCast.As <Cube>(f).OnActivating());
 }