From ef6937e69e8ee3f409cf9d460d5ad300a65d5924 Mon Sep 17 00:00:00 2001 From: sschirm Date: Fri, 23 Dec 2016 14:20:36 +0100 Subject: PhysX 3.4 / APEX 1.4 release candidate @21506124 --- .../iofx_legacy/src/autogen/ModuleIOFXLegacy.cpp | 86 ---------------------- 1 file changed, 86 deletions(-) delete mode 100644 APEX_1.4/module/iofx_legacy/src/autogen/ModuleIOFXLegacy.cpp (limited to 'APEX_1.4/module/iofx_legacy/src/autogen/ModuleIOFXLegacy.cpp') diff --git a/APEX_1.4/module/iofx_legacy/src/autogen/ModuleIOFXLegacy.cpp b/APEX_1.4/module/iofx_legacy/src/autogen/ModuleIOFXLegacy.cpp deleted file mode 100644 index 6d615d4b..00000000 --- a/APEX_1.4/module/iofx_legacy/src/autogen/ModuleIOFXLegacy.cpp +++ /dev/null @@ -1,86 +0,0 @@ -/* -* Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved. -* -* NVIDIA CORPORATION and its licensors retain all intellectual property -* and proprietary rights in and to this software, related documentation -* and any modifications thereto. Any use, reproduction, disclosure or -* distribution of this software and related documentation without an express -* license agreement from NVIDIA CORPORATION is strictly prohibited. -* -* This code was autogenerated from ModuleIOFXLegacy.template -*/ - -#include "ApexUsingNamespace.h" -#include "Apex.h" -#include "ApexLegacyModule.h" -#include "ApexRWLockable.h" -#include "legacy/ModuleIofxLegacy.h" -#include "IofxLegacyRender.h" -#include "PsHashMap.h" - -#include "ModuleIOFXLegacyRegistration.h" - -namespace nvidia -{ -namespace apex -{ -namespace legacy -{ - -class ModuleIOFXLegacy : public TApexLegacyModule, public ApexRWLockable -{ -public: - APEX_RW_LOCKABLE_BOILERPLATE - - ModuleIOFXLegacy(ApexSDKIntl* inSdk) - { - mName = "IOFX_Legacy"; - mSdk = inSdk; - mApiProxy = this; - ModuleIOFXLegacyRegistration::invokeRegistration(mSdk->getParameterizedTraits()); - } - - virtual nvidia::apex::IofxRenderCallback* getIofxLegacyRenderCallback(const Scene& apexScene) - { - IofxLegacyRenderCallback* &renderCallback = mSceneCallbackMap[&apexScene]; - if (renderCallback == NULL) - { - renderCallback = PX_NEW(IofxLegacyRenderCallback)(&apexScene); - } - return renderCallback; - } - - - virtual ~ModuleIOFXLegacy() - { - for (SceneCallbackMap_t::Iterator it = mSceneCallbackMap.getIterator(); !it.done(); ++it) - { - IofxLegacyRenderCallback* renderCallback = it->second; - if (renderCallback) - { - PX_DELETE(renderCallback); - } - } - } - -protected: - void releaseLegacyObjects() - { - ModuleIOFXLegacyRegistration::invokeUnregistration(mSdk->getParameterizedTraits()); - } - -private: - typedef nvidia::shdfnd::HashMap SceneCallbackMap_t; - SceneCallbackMap_t mSceneCallbackMap; -}; - -void instantiateModuleIOFXLegacy() -{ - ApexSDKIntl *sdk = GetInternalApexSDK(); - ModuleIOFXLegacy *impl = PX_NEW(ModuleIOFXLegacy)(sdk); - sdk->registerExternalModule((Module *) impl, (ModuleIntl *) impl); -} - -} -} -} -- cgit v1.2.3