示例#1
0
        void GraphicsDevice_LostDevice()
        {
            deviceEvent++;
            Renderer.OnLostDevice(Scene.View.Content);

            foreach (Entity e in resources.Keys)
            {
                foreach (Graphics.Content.MetaModel metaModel in e.AllGraphics)
                {
                    RemoveRenderable(e, metaModel);
                }
            }
            cachedEntities.Clear();
            cachedShadowEntities.Clear();
        }