|
|
@@ -43,11 +43,6 @@ namespace BansheeEngine
|
|
|
*/
|
|
|
void setUpExample();
|
|
|
|
|
|
- /**
|
|
|
- * Releases all resources and prepares the example fur shutdown.
|
|
|
- */
|
|
|
- void shutDownExample();
|
|
|
-
|
|
|
/**
|
|
|
* Toggles the primary window between full-screen and windowed mode.
|
|
|
*/
|
|
|
@@ -100,9 +95,6 @@ int CALLBACK WinMain(
|
|
|
// window or exits in some other way.
|
|
|
Application::instance().runMainLoop();
|
|
|
|
|
|
- // Perform cleanup
|
|
|
- shutDownExample();
|
|
|
-
|
|
|
Application::shutDown();
|
|
|
|
|
|
return 0;
|
|
|
@@ -452,23 +444,6 @@ namespace BansheeEngine
|
|
|
videoModeListBox->onSelectionChanged.connect(&videoModeChanged);
|
|
|
}
|
|
|
|
|
|
- void shutDownExample()
|
|
|
- {
|
|
|
- // We require all handles to be released before shutdown.
|
|
|
- gResources().unload(exampleModel);
|
|
|
- gResources().unload(exampleTexture);
|
|
|
- gResources().unload(exampleFragmentGPUProg);
|
|
|
- gResources().unload(exampleVertexGPUProg);
|
|
|
-
|
|
|
- exampleModel = nullptr;
|
|
|
- exampleTexture = nullptr;
|
|
|
- exampleFragmentGPUProg = nullptr;
|
|
|
- exampleVertexGPUProg = nullptr;
|
|
|
-
|
|
|
- sceneCamera = nullptr;
|
|
|
- profilerOverlay = nullptr;
|
|
|
- }
|
|
|
-
|
|
|
void toggleFullscreen()
|
|
|
{
|
|
|
RenderWindowPtr window = gApplication().getPrimaryWindow();
|