예제 #1
0
파일: Skybox.cs 프로젝트: zhuowp/ge
 protected override void Removed(SystemRegistry registry)
 {
     _vb?.Dispose();
     _ib?.Dispose();
     _material?.Dispose();
     _rasterizerState?.Dispose();
     _cubemapBinding?.Dispose();
     _cubemapBinding?.BoundTexture?.Dispose();
 }
예제 #2
0
 /// <summary>
 /// Frees all graphics resources used by the renderer.
 /// </summary>
 public void Dispose()
 {
     _vertexBuffer.Dispose();
     _indexBuffer.Dispose();
     _depthDisabledState.Dispose();
     _blendState.Dispose();
     _fontTextureBinding.Dispose();
     _shaderSet.Dispose();
 }
예제 #3
0
파일: MeshRenderer.cs 프로젝트: nureyev/ge
 public void ClearDeviceResources()
 {
     _deviceTexture?.Dispose();
     _textureBinding?.Dispose();
     if (_isTransparent)
     {
         _ib?.Dispose();
     }
 }
예제 #4
0
 public void Dispose()
 {
     _vb?.Dispose();
     _ib?.Dispose();
     _material?.Dispose();
     _texture?.Dispose();
     _textureBinding?.Dispose();
     _wireframeState?.Dispose();
 }
예제 #5
0
 public void Dispose()
 {
     _regularPassMaterial.Dispose();
     _shadowPassMaterial.Dispose();
     _overrideTexture?.Dispose();
     _overrideTextureBinding?.Dispose();
     _vb.Dispose();
     _ib.Dispose();
 }
예제 #6
0
 public override void DestroyDeviceObjects()
 {
     _shaderSet.Dispose();
     _vb.Dispose();
     _ib.Dispose();
     _gridTexture.Dispose();
     _textureBinding.Dispose();
     _rasterizerState.Dispose();
 }
예제 #7
0
 public override void DestroyDeviceObjects()
 {
     _shaderSet.Dispose();
     _cubemapTexture.Dispose();
     _cubemapBinding.Dispose();
     _vb.Dispose();
     _ib.Dispose();
     _viewMatrixBuffer.Dispose();
     _rasterizerState.Dispose();
 }