packages/Windows API Code Pack 1.1/source/Samples/DirectX/CS/UtilitiesLibrary/MeshLoader/XMeshManager.cs
/// <summary>
/// Cleans up the memory allocated by the manager.
/// </summary>
Cleans up the memory allocated by the manager.
Cleans up the memory allocated by the manager .
protected virtual void Dispose(bool disposing)
        {
            if (!disposed)
            {
                disposed = true;
                if (effect != null)
                    effect.Dispose();
                effect = null;
                if (techniqueRenderTexture != null)
                    techniqueRenderTexture.Dispose();
                techniqueRenderTexture = null;
                if (techniqueRenderVertexColor != null)
                    techniqueRenderVertexColor.Dispose();
                techniqueRenderVertexColor = null;
                if (techniqueRenderMaterialColor != null)
                    techniqueRenderMaterialColor.Dispose();
                techniqueRenderMaterialColor = null;
                if (brightnessVariable != null)
                    brightnessVariable.Dispose();
                brightnessVariable = null;
                if (materialColorVariable != null)
                    materialColorVariable.Dispose();
                materialColorVariable = null;
                if (worldVariable != null)
                    worldVariable.Dispose();
                worldVariable = null;
                if (viewVariable != null)
                    viewVariable.Dispose();
                viewVariable = null;
                if (projectionVariable != null)
                    projectionVariable.Dispose();
                projectionVariable = null;
                if (diffuseVariable != null)
                    diffuseVariable.Dispose();
                diffuseVariable = null;
            }
        }
protected virtual void Dispose ( bool disposing ) { if ( ! disposed ) { disposed = true ; if ( effect != null ) effect . Dispose ( ) ; effect = null ; if ( techniqueRenderTexture != null ) techniqueRenderTexture . Dispose ( ) ; techniqueRenderTexture = null ; if ( techniqueRenderVertexColor != null ) techniqueRenderVertexColor . Dispose ( ) ; techniqueRenderVertexColor = null ; if ( techniqueRenderMaterialColor != null ) techniqueRenderMaterialColor . Dispose ( ) ; techniqueRenderMaterialColor = null ; if ( brightnessVariable != null ) brightnessVariable . Dispose ( ) ; brightnessVariable = null ; if ( materialColorVariable != null ) materialColorVariable . Dispose ( ) ; materialColorVariable = null ; if ( worldVariable != null ) worldVariable . Dispose ( ) ; worldVariable = null ; if ( viewVariable != null ) viewVariable . Dispose ( ) ; viewVariable = null ; if ( projectionVariable != null ) projectionVariable . Dispose ( ) ; projectionVariable = null ; if ( diffuseVariable != null ) diffuseVariable . Dispose ( ) ; diffuseVariable = null ; } }
Cleans up the memory allocated by the manager.
Cleans up the memory allocated by the manager .
disposing
bool