Exemplo n.º 1
0
 public void Dispose()
 {
     _vb?.Dispose();
     _ib?.Dispose();
     _material?.Dispose();
     _texture?.Dispose();
     _textureBinding?.Dispose();
     _wireframeState?.Dispose();
 }
Exemplo n.º 2
0
Arquivo: Skybox.cs Projeto: zhuowp/ge
 protected override void Removed(SystemRegistry registry)
 {
     _vb?.Dispose();
     _ib?.Dispose();
     _material?.Dispose();
     _rasterizerState?.Dispose();
     _cubemapBinding?.Dispose();
     _cubemapBinding?.BoundTexture?.Dispose();
 }