release() public method

public release ( ) : void
return void
Esempio n. 1
0
        /// <summary>
        /// Release the engine and free all objects as well as associated memory, after the form is closed.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void RenderForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            // stop stop watch process
            stopWatch.Stop();

            // release h3d
            app.release();
            Horde3DUtils.releaseOpenGL();
            Environment.Exit(0);
        }
Esempio n. 2
0
        /// <summary>
        /// Release the engine and free all objects as well as associated memory, after the form is closed.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void RenderForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            // stop stop watch process
            stopWatch.Stop();

            // release h3d
            app.release();

            OpenGL.wglDeleteContext(hglrc);

            Environment.Exit(0);
        }