Exemplo n.º 1
0
 public D3DRenderComponent()
 {
     CanRender            = true;
     IsModified           = true;
     disposer             = new DisposeObserver();
     TransformWorldBuffer = new DisposableSetter <SharpDX.Direct3D11.Buffer>(disposer);
     VertexBuffer         = new DisposableSetter <SharpDX.Direct3D11.Buffer>(disposer);
     IndexBuffer          = new DisposableSetter <SharpDX.Direct3D11.Buffer>(disposer);
     DepthStencilState    = new DisposableSetter <DepthStencilState>(disposer);
     BlendingState        = new DisposableSetter <BlendState>(disposer);
     MaterialBuffer       = new DisposableSetter <SharpDX.Direct3D11.Buffer>(disposer);
     SampleState          = new DisposableSetter <SamplerState>(disposer);
     TextureResources     = new EnumerableDisposableSetter <ShaderResourceView[]>(disposer);
 }
Exemplo n.º 2
0
 protected NestedRenderTechniqueSystem()
 {
     disposer = new DisposeObserver();
 }