Exemple #1
0
        public void Cleanup()
        {
            if (mm.vexbuf != null)
            {
                mm.vexbuf.Dispose();
                mm.vexbuf = null;
            }

            if (mm.texture != null)
            {
                mm.DisposeAllTextures();
                mm.texture = null;
            }

            axises.DisposeAllBuffer();

            if (device != null)
            {
                device.Dispose();
                device = null;
            }
        }