public MeshPartRenderData GetMeshPartRenderData(IMeshPart part)
        {
            if (pool.ContainsKey(part))
            {
                return((MeshPartRenderData)pool[part]);
            }

            var ret = meshFactory.CreateMeshPartData(part);

            pool.Add(part, ret);

            return(ret);
        }
Пример #2
0
 private MeshPartRenderData createRenderData(IMeshPart part)
 {
     return(renderDataFactory.CreateMeshPartData(part));
 }