//---------------------------------------------------------------------------- //---------------------------------------------------------------------------- public void RemoveModel(MHandle modelKey) { int nHashCode = modelKey.m_nHashCode; List <RenderData> data = m_Renderables[nHashCode]; data[modelKey.RefNumber] = null; ((IDisposable)modelKey).Dispose(); if (data.Count == 0) { m_Renderables.Remove(modelKey.m_nHashCode); } }
//---------------------------------------------------------------------------- //---------------------------------------------------------------------------- public Model GetModel(MHandle modelKey) { return(m_Renderables[modelKey.m_nHashCode][modelKey.RefNumber].Model); }