예제 #1
0
파일: Billboard.cs 프로젝트: sjk7/DX90SDK
        /// <summary>
        /// Called when the app is exiting, or the device is being changed, this
        /// function deletes any device-dependent objects.
        /// </summary>
        protected override void DeleteDeviceObjects(System.Object sender, System.EventArgs e)
        {
            if (terrainMesh != null)
            {
                terrainMesh.Dispose();
            }

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

            for (int i = 0; i < treeTextureFileNames.Length; i++)
            {
                if (treeTextures[i] != null)
                {
                    treeTextures[i].Dispose();
                }
            }

            if (treeVertexBuffer != null)
            {
                treeVertexBuffer.Dispose();
            }
        }
예제 #2
0
        /// <summary>
        /// Called when the app is exiting, or the device is being changed, this
        /// function deletes any device-dependent objects.
        /// </summary>
        protected override void DeleteDeviceObjects(System.Object sender, System.EventArgs e)
        {
            terrainMesh.Dispose();
            helicopterMesh.Dispose();
            mirrorVertexBuffer.Dispose();

            terrainMesh        = null;
            helicopterMesh     = null;
            mirrorVertexBuffer = null;
        }
예제 #3
0
 /// <summary>
 /// Called when the app is exiting, or the device is being changed, this
 /// function deletes any device-dependent objects.
 /// </summary>
 protected override void DeleteDeviceObjects(System.Object sender, System.EventArgs e)
 {
     blendObject.Dispose();
 }