コード例 #1
0
        //----------------------------------------------------------------------------
        //----------------------------------------------------------------------------
        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);
            }
        }
コード例 #2
0
 //----------------------------------------------------------------------------
 //----------------------------------------------------------------------------
 public Model GetModel(MHandle modelKey)
 {
     return(m_Renderables[modelKey.m_nHashCode][modelKey.RefNumber].Model);
 }