diff options
| author | sschirm <[email protected]> | 2016-12-23 14:20:36 +0100 |
|---|---|---|
| committer | sschirm <[email protected]> | 2016-12-23 14:56:17 +0100 |
| commit | ef6937e69e8ee3f409cf9d460d5ad300a65d5924 (patch) | |
| tree | 710426e8daa605551ce3f34b581897011101c30f /APEX_1.4/samples_v2/SampleParticlesMeshParticles/Main.cpp | |
| parent | Initial commit: (diff) | |
| download | physx-3.4-ef6937e69e8ee3f409cf9d460d5ad300a65d5924.tar.xz physx-3.4-ef6937e69e8ee3f409cf9d460d5ad300a65d5924.zip | |
PhysX 3.4 / APEX 1.4 release candidate @21506124
Diffstat (limited to 'APEX_1.4/samples_v2/SampleParticlesMeshParticles/Main.cpp')
| -rw-r--r-- | APEX_1.4/samples_v2/SampleParticlesMeshParticles/Main.cpp | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/APEX_1.4/samples_v2/SampleParticlesMeshParticles/Main.cpp b/APEX_1.4/samples_v2/SampleParticlesMeshParticles/Main.cpp deleted file mode 100644 index 61565451..00000000 --- a/APEX_1.4/samples_v2/SampleParticlesMeshParticles/Main.cpp +++ /dev/null @@ -1,51 +0,0 @@ -#include "Utils.h" - -#include <DirectXMath.h> -#include "XInput.h" -#include "DXUTMisc.h" -#include "DXUTCamera.h" - - -#include "ApexController.h" -#include "ApexRenderer.h" -#include "CommonUIController.h" -#include "SampleUIController.h" -#include "SampleSceneController.h" - -#include "SampleManager.h" - -int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow) -{ - PX_UNUSED(hInstance); - PX_UNUSED(hPrevInstance); - PX_UNUSED(lpCmdLine); - PX_UNUSED(nCmdShow); - -// Enable run-time memory check for debug builds. -#if defined(DEBUG) | defined(_DEBUG) - _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); - AllocConsole(); -#endif - - SampleManager* sampleManager = new SampleManager(L"APEX Particles Sample: Mesh Particles"); - - CFirstPersonCamera camera; - - auto apexController = ApexController(PxDefaultSimulationFilterShader, &camera); - auto apexRender = ApexRenderer(&camera, apexController); - auto sceneController = SampleSceneController(&camera, apexController); - auto commonUiController = CommonUIController(&camera, &apexRender, &apexController); - auto sampleUIController = SampleUIController(&sceneController, &commonUiController); - - sampleManager->addControllerToFront(&apexController); - sampleManager->addControllerToFront(&apexRender); - sampleManager->addControllerToFront(&sceneController); - sampleManager->addControllerToFront(&sampleUIController); - sampleManager->addControllerToFront(&commonUiController); - - int result = sampleManager->run(); - - delete sampleManager; - - return result; -} |