diff options
| author | git perforce import user <a@b> | 2016-10-25 12:29:14 -0600 |
|---|---|---|
| committer | Sheikh Dawood Abdul Ajees <Sheikh Dawood Abdul Ajees> | 2016-10-25 18:56:37 -0500 |
| commit | 3dfe2108cfab31ba3ee5527e217d0d8e99a51162 (patch) | |
| tree | fa6485c169e50d7415a651bf838f5bcd0fd3bfbd /APEX_1.4/module/iofx_legacy/include | |
| download | physx-3.4-3dfe2108cfab31ba3ee5527e217d0d8e99a51162.tar.xz physx-3.4-3dfe2108cfab31ba3ee5527e217d0d8e99a51162.zip | |
Initial commit:
PhysX 3.4.0 Update @ 21294896
APEX 1.4.0 Update @ 21275617
[CL 21300167]
Diffstat (limited to 'APEX_1.4/module/iofx_legacy/include')
67 files changed, 14223 insertions, 0 deletions
diff --git a/APEX_1.4/module/iofx_legacy/include/ConversionIofxAssetParameters_0p0_0p1.h b/APEX_1.4/module/iofx_legacy/include/ConversionIofxAssetParameters_0p0_0p1.h new file mode 100644 index 00000000..777f989a --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/ConversionIofxAssetParameters_0p0_0p1.h @@ -0,0 +1,185 @@ +/* + * 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. + */ + + +#ifndef MODULE_CONVERSIONIOFXASSETPARAMETERS_0P0_0P1H_H +#define MODULE_CONVERSIONIOFXASSETPARAMETERS_0P0_0P1H_H + +#include "NvParamConversionTemplate.h" +#include "IofxAssetParameters_0p0.h" +#include "IofxAssetParameters_0p1.h" + +#include "nvparameterized/NvParamUtils.h" + +#define PARAM_RET(x) if( (x) != NvParameterized::ERROR_NONE ) \ + { PX_ASSERT(0 && "INVALID Parameter"); return false; } + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::IofxAssetParameters_0p0, + nvidia::parameterized::IofxAssetParameters_0p1, + nvidia::parameterized::IofxAssetParameters_0p0::ClassVersion, + nvidia::parameterized::IofxAssetParameters_0p1::ClassVersion> + ConversionIofxAssetParameters_0p0_0p1Parent; + +class ConversionIofxAssetParameters_0p0_0p1: public ConversionIofxAssetParameters_0p0_0p1Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionIofxAssetParameters_0p0_0p1)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionIofxAssetParameters_0p0_0p1)(t) : 0; + } + +private: + ConversionIofxAssetParameters_0p0_0p1(NvParameterized::Traits* t) : ConversionIofxAssetParameters_0p0_0p1Parent(t) {} + // TODO: make it a generic "array copy" method + bool deepCopyModifiers(NvParameterized::Interface* newModListParams, const char* modListString) + { + int32_t arraySize = 0, modIgnoreCount = 0; + NvParameterized::Handle hOld(*mLegacyData, modListString); + NvParameterized::Handle hNew(*newModListParams, modListString); + + PX_ASSERT(hOld.isValid() && hNew.isValid()); + + // resize the new array + NvParameterized::getParamArraySize(*mLegacyData, modListString, arraySize); + PARAM_RET(hNew.resizeArray(arraySize)); + + // copy the modifiers + for (int32_t i = 0; i < arraySize; i++) + { + NvParameterized::Interface* curOldMod = NULL; + + PARAM_RET(hNew.set(i - modIgnoreCount)); + PARAM_RET(hOld.set(i)); + + PARAM_RET(hOld.getParamRef(curOldMod)); + PX_ASSERT(curOldMod); + + if (!nvidia::strcmp(curOldMod->className(), "RotationModifierParams") && + !nvidia::strcmp(newModListParams->className(), "SpriteIofxParameters")) + { + modIgnoreCount++; + + hNew.popIndex(); + hOld.popIndex(); + continue; + } + + PARAM_RET(hNew.setParamRef(curOldMod)); + PARAM_RET(hOld.setParamRef(0)); + + hNew.popIndex(); + hOld.popIndex(); + } + + if (modIgnoreCount) + { + PARAM_RET(hNew.resizeArray(arraySize - modIgnoreCount)); + } + + return true; + } + + bool copyRenderMeshList(NvParameterized::Interface* meshIofxParams) + { + char indexedWeightString[32]; + + NvParameterized::Handle hOld(*mLegacyData, "renderMeshList"); + PX_ASSERT(hOld.isValid()); + + NvParameterized::Handle hNew(*meshIofxParams, "renderMeshList"); + PX_ASSERT(hNew.isValid()); + + int32_t arraySize = 0; + PARAM_RET(hOld.getArraySize(arraySize)); + PARAM_RET(hNew.resizeArray(arraySize)); + + for (int32_t i = 0; i < arraySize; i++) + { + PARAM_RET(hNew.set(i)); + PARAM_RET(hOld.set(i)); + + // first handle the weight + uint32_t oldWeight; + shdfnd::snprintf(indexedWeightString, sizeof(indexedWeightString), "renderMeshList[%i].weight", i); + NvParameterized::getParamU32(*mLegacyData, indexedWeightString, oldWeight); + NvParameterized::setParamU32(*meshIofxParams, indexedWeightString, oldWeight); + + // then get the meshAssetName (named ref) + NvParameterized::Handle hChild(mLegacyData); + PARAM_RET(hOld.getChildHandle(mLegacyData, "meshAssetName", hChild)); + PX_ASSERT(hOld.isValid()); + + NvParameterized::Interface* oldMeshRef = NULL; + + PARAM_RET(hChild.getParamRef(oldMeshRef)); + PARAM_RET(hChild.setParamRef(0)); + PX_ASSERT(oldMeshRef); + + PARAM_RET(hNew.getChildHandle(meshIofxParams, "meshAssetName", hChild)); + PARAM_RET(hChild.setParamRef(oldMeshRef)); + + hNew.popIndex(); + hOld.popIndex(); + } + + return true; + } + +protected: + + bool convert() + { + // if sprite name is present, then it's a sprite modifier, else, mesh + NvParameterized::Interface* iofxType = 0; + if (mLegacyData->spriteMaterialName && mLegacyData->spriteMaterialName->name()) + { + // create new sprite type + + iofxType = mTraits->createNvParameterized("SpriteIofxParameters", 0); + PX_ASSERT(iofxType); + + // copy the new spriteMaterialName named reference + NvParameterized::Handle h(*iofxType, "spriteMaterialName"); + h.setParamRef(mLegacyData->spriteMaterialName); + mLegacyData->spriteMaterialName = 0; + } + else + { + // create new mesh iofx type + + iofxType = mTraits->createNvParameterized("MeshIofxParameters", 0); + PX_ASSERT(iofxType); + + // copy the renderMeshList array (renderMesh names and weights) + copyRenderMeshList(iofxType); + } + + // deep copy the spawn and continuous list + deepCopyModifiers(iofxType, "spawnModifierList"); + deepCopyModifiers(iofxType, "continuousModifierList"); + + mNewData->iofxType = iofxType; + + return true; + } +}; + + +} +} +} //nvidia::apex::legacy + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/ConversionIofxAssetParameters_0p1_0p2.h b/APEX_1.4/module/iofx_legacy/include/ConversionIofxAssetParameters_0p1_0p2.h new file mode 100644 index 00000000..49edc8d0 --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/ConversionIofxAssetParameters_0p1_0p2.h @@ -0,0 +1,80 @@ +/* + * 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. + */ + + +#ifndef MODULE_CONVERSIONIOFXASSETPARAMETERS_0P1_0P2H_H +#define MODULE_CONVERSIONIOFXASSETPARAMETERS_0P1_0P2H_H + +#include "NvParamConversionTemplate.h" +#include "IofxAssetParameters_0p1.h" +#include "IofxAssetParameters_0p2.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::IofxAssetParameters_0p1, + nvidia::parameterized::IofxAssetParameters_0p2, + nvidia::parameterized::IofxAssetParameters_0p1::ClassVersion, + nvidia::parameterized::IofxAssetParameters_0p2::ClassVersion> + ConversionIofxAssetParameters_0p1_0p2Parent; + +class ConversionIofxAssetParameters_0p1_0p2: public ConversionIofxAssetParameters_0p1_0p2Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionIofxAssetParameters_0p1_0p2)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionIofxAssetParameters_0p1_0p2)(t) : 0; + } + +protected: + ConversionIofxAssetParameters_0p1_0p2(NvParameterized::Traits* t) : ConversionIofxAssetParameters_0p1_0p2Parent(t) {} + + const NvParameterized::PrefVer* getPreferredVersions() const + { + static NvParameterized::PrefVer prefVers[] = + { + //TODO: + // Add your preferred versions for included references here. + // Entry format is + // { (const char*)longName, (uint32_t)preferredVersion } + + { 0, 0 } // Terminator (do not remove!) + }; + + return prefVers; + } + + bool convert() + { + //TODO: + // Write custom conversion code here using mNewData and mLegacyData members. + // + // Note that + // - mNewData has already been initialized with default values + // - same-named/same-typed members have already been copied + // from mLegacyData to mNewData + // - included references were moved to mNewData + // (and updated to preferred versions according to getPreferredVersions) + // + // For more info see the versioning wiki. + + return true; + } +}; + + +} +} +} //nvidia::apex::legacy + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/ConversionMeshIofxParameters_0p0_0p1.h b/APEX_1.4/module/iofx_legacy/include/ConversionMeshIofxParameters_0p0_0p1.h new file mode 100644 index 00000000..523ea3b2 --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/ConversionMeshIofxParameters_0p0_0p1.h @@ -0,0 +1,64 @@ +/* + * 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. + */ + + +#ifndef MODULE_CONVERSIONMESHIOFXPARAMETERS_0P0_0P1H_H +#define MODULE_CONVERSIONMESHIOFXPARAMETERS_0P0_0P1H_H + +#include "NvParamConversionTemplate.h" +#include "MeshIofxParameters_0p0.h" +#include "MeshIofxParameters_0p1.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::MeshIofxParameters_0p0, + nvidia::parameterized::MeshIofxParameters_0p1, + nvidia::parameterized::MeshIofxParameters_0p0::ClassVersion, + nvidia::parameterized::MeshIofxParameters_0p1::ClassVersion> + ConversionMeshIofxParameters_0p0_0p1Parent; + +class ConversionMeshIofxParameters_0p0_0p1: public ConversionMeshIofxParameters_0p0_0p1Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionMeshIofxParameters_0p0_0p1)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionMeshIofxParameters_0p0_0p1)(t) : 0; + } + +protected: + ConversionMeshIofxParameters_0p0_0p1(NvParameterized::Traits* t) : ConversionMeshIofxParameters_0p0_0p1Parent(t) {} + + bool convert() + { + //TODO: + // Write custom conversion code here using mNewData and mLegacyData members. + // + // Note that + // - mNewData was initialized with default values + // - same-named/same-typed members were copied from mLegacyData to mNewData + // - included references were moved to mNewData + // (and updated to preferred versions according to getPreferredVersions) + // + // For more info see the versioning wiki. + + return true; + } +}; + + +} +} +} //nvidia::apex::legacy + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/ConversionMeshIofxParameters_0p1_0p2.h b/APEX_1.4/module/iofx_legacy/include/ConversionMeshIofxParameters_0p1_0p2.h new file mode 100644 index 00000000..c3c493fb --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/ConversionMeshIofxParameters_0p1_0p2.h @@ -0,0 +1,80 @@ +/* + * 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. + */ + + +#ifndef MODULE_CONVERSIONMESHIOFXPARAMETERS_0P1_0P2H_H +#define MODULE_CONVERSIONMESHIOFXPARAMETERS_0P1_0P2H_H + +#include "NvParamConversionTemplate.h" +#include "MeshIofxParameters_0p1.h" +#include "MeshIofxParameters_0p2.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::MeshIofxParameters_0p1, + nvidia::parameterized::MeshIofxParameters_0p2, + nvidia::parameterized::MeshIofxParameters_0p1::ClassVersion, + nvidia::parameterized::MeshIofxParameters_0p2::ClassVersion> + ConversionMeshIofxParameters_0p1_0p2Parent; + +class ConversionMeshIofxParameters_0p1_0p2: public ConversionMeshIofxParameters_0p1_0p2Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionMeshIofxParameters_0p1_0p2)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionMeshIofxParameters_0p1_0p2)(t) : 0; + } + +protected: + ConversionMeshIofxParameters_0p1_0p2(NvParameterized::Traits* t) : ConversionMeshIofxParameters_0p1_0p2Parent(t) {} + + const NvParameterized::PrefVer* getPreferredVersions() const + { + static NvParameterized::PrefVer prefVers[] = + { + //TODO: + // Add your preferred versions for included references here. + // Entry format is + // { (const char*)longName, (uint32_t)preferredVersion } + + { 0, 0 } // Terminator (do not remove!) + }; + + return prefVers; + } + + bool convert() + { + //TODO: + // Write custom conversion code here using mNewData and mLegacyData members. + // + // Note that + // - mNewData has already been initialized with default values + // - same-named/same-typed members have already been copied + // from mLegacyData to mNewData + // - included references were moved to mNewData + // (and updated to preferred versions according to getPreferredVersions) + // + // For more info see the versioning wiki. + + return true; + } +}; + + +} +} +} //nvidia::apex::legacy + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/ConversionMeshIofxParameters_0p2_0p3.h b/APEX_1.4/module/iofx_legacy/include/ConversionMeshIofxParameters_0p2_0p3.h new file mode 100644 index 00000000..19cbbd79 --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/ConversionMeshIofxParameters_0p2_0p3.h @@ -0,0 +1,80 @@ +/* + * 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. + */ + + +#ifndef MODULE_CONVERSIONMESHIOFXPARAMETERS_0P2_0P3H_H +#define MODULE_CONVERSIONMESHIOFXPARAMETERS_0P2_0P3H_H + +#include "NvParamConversionTemplate.h" +#include "MeshIofxParameters_0p2.h" +#include "MeshIofxParameters_0p3.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::MeshIofxParameters_0p2, + nvidia::parameterized::MeshIofxParameters_0p3, + nvidia::parameterized::MeshIofxParameters_0p2::ClassVersion, + nvidia::parameterized::MeshIofxParameters_0p3::ClassVersion> + ConversionMeshIofxParameters_0p2_0p3Parent; + +class ConversionMeshIofxParameters_0p2_0p3: public ConversionMeshIofxParameters_0p2_0p3Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionMeshIofxParameters_0p2_0p3)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionMeshIofxParameters_0p2_0p3)(t) : 0; + } + +protected: + ConversionMeshIofxParameters_0p2_0p3(NvParameterized::Traits* t) : ConversionMeshIofxParameters_0p2_0p3Parent(t) {} + + const NvParameterized::PrefVer* getPreferredVersions() const + { + static NvParameterized::PrefVer prefVers[] = + { + //TODO: + // Add your preferred versions for included references here. + // Entry format is + // { (const char*)longName, (uint32_t)preferredVersion } + + { 0, 0 } // Terminator (do not remove!) + }; + + return prefVers; + } + + bool convert() + { + //TODO: + // Write custom conversion code here using mNewData and mLegacyData members. + // + // Note that + // - mNewData has already been initialized with default values + // - same-named/same-typed members have already been copied + // from mLegacyData to mNewData + // - included references were moved to mNewData + // (and updated to preferred versions according to getPreferredVersions) + // + // For more info see the versioning wiki. + + return true; + } +}; + + +} +} +} //nvidia::apex::legacy + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/ConversionMeshIofxParameters_0p3_0p4.h b/APEX_1.4/module/iofx_legacy/include/ConversionMeshIofxParameters_0p3_0p4.h new file mode 100644 index 00000000..574f976c --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/ConversionMeshIofxParameters_0p3_0p4.h @@ -0,0 +1,80 @@ +/* + * 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. + */ + + +#ifndef MODULE_CONVERSIONMESHIOFXPARAMETERS_0P3_0P4H_H +#define MODULE_CONVERSIONMESHIOFXPARAMETERS_0P3_0P4H_H + +#include "NvParamConversionTemplate.h" +#include "MeshIofxParameters_0p3.h" +#include "MeshIofxParameters_0p4.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::MeshIofxParameters_0p3, + nvidia::parameterized::MeshIofxParameters_0p4, + nvidia::parameterized::MeshIofxParameters_0p3::ClassVersion, + nvidia::parameterized::MeshIofxParameters_0p4::ClassVersion> + ConversionMeshIofxParameters_0p3_0p4Parent; + +class ConversionMeshIofxParameters_0p3_0p4: public ConversionMeshIofxParameters_0p3_0p4Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionMeshIofxParameters_0p3_0p4)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionMeshIofxParameters_0p3_0p4)(t) : 0; + } + +protected: + ConversionMeshIofxParameters_0p3_0p4(NvParameterized::Traits* t) : ConversionMeshIofxParameters_0p3_0p4Parent(t) {} + + const NvParameterized::PrefVer* getPreferredVersions() const + { + static NvParameterized::PrefVer prefVers[] = + { + //TODO: + // Add your preferred versions for included references here. + // Entry format is + // { (const char*)longName, (uint32_t)preferredVersion } + + { 0, 0 } // Terminator (do not remove!) + }; + + return prefVers; + } + + bool convert() + { + //TODO: + // Write custom conversion code here using mNewData and mLegacyData members. + // + // Note that + // - mNewData has already been initialized with default values + // - same-named/same-typed members have already been copied + // from mLegacyData to mNewData + // - included references were moved to mNewData + // (and updated to preferred versions according to getPreferredVersions) + // + // For more info see the versioning wiki. + + return true; + } +}; + + +} +} +} //nvidia::apex::legacy + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/ConversionOrientScaleAlongScreenVelocityModifierParams_0p0_0p1.h b/APEX_1.4/module/iofx_legacy/include/ConversionOrientScaleAlongScreenVelocityModifierParams_0p0_0p1.h new file mode 100644 index 00000000..e9254c3f --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/ConversionOrientScaleAlongScreenVelocityModifierParams_0p0_0p1.h @@ -0,0 +1,80 @@ +/* + * 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. + */ + + +#ifndef MODULE_CONVERSIONORIENTSCALEALONGSCREENVELOCITYMODIFIERPARAMS_0P0_0P1H_H +#define MODULE_CONVERSIONORIENTSCALEALONGSCREENVELOCITYMODIFIERPARAMS_0P0_0P1H_H + +#include "NvParamConversionTemplate.h" +#include "OrientScaleAlongScreenVelocityModifierParams_0p0.h" +#include "OrientScaleAlongScreenVelocityModifierParams_0p1.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::OrientScaleAlongScreenVelocityModifierParams_0p0, + nvidia::parameterized::OrientScaleAlongScreenVelocityModifierParams_0p1, + nvidia::parameterized::OrientScaleAlongScreenVelocityModifierParams_0p0::ClassVersion, + nvidia::parameterized::OrientScaleAlongScreenVelocityModifierParams_0p1::ClassVersion> + ConversionOrientScaleAlongScreenVelocityModifierParams_0p0_0p1Parent; + +class ConversionOrientScaleAlongScreenVelocityModifierParams_0p0_0p1: public ConversionOrientScaleAlongScreenVelocityModifierParams_0p0_0p1Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionOrientScaleAlongScreenVelocityModifierParams_0p0_0p1)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionOrientScaleAlongScreenVelocityModifierParams_0p0_0p1)(t) : 0; + } + +protected: + ConversionOrientScaleAlongScreenVelocityModifierParams_0p0_0p1(NvParameterized::Traits* t) : ConversionOrientScaleAlongScreenVelocityModifierParams_0p0_0p1Parent(t) {} + + const NvParameterized::PrefVer* getPreferredVersions() const + { + static NvParameterized::PrefVer prefVers[] = + { + //TODO: + // Add your preferred versions for included references here. + // Entry format is + // { (const char*)longName, (uint32_t)preferredVersion } + + { 0, 0 } // Terminator (do not remove!) + }; + + return prefVers; + } + + bool convert() + { + //TODO: + // Write custom conversion code here using mNewData and mLegacyData members. + // + // Note that + // - mNewData has already been initialized with default values + // - same-named/same-typed members have already been copied + // from mLegacyData to mNewData + // - included references were moved to mNewData + // (and updated to preferred versions according to getPreferredVersions) + // + // For more info see the versioning wiki. + + return true; + } +}; + + +} +} +} //nvidia::apex::legacy + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/ConversionRotationModifierParams_0p0_0p1.h b/APEX_1.4/module/iofx_legacy/include/ConversionRotationModifierParams_0p0_0p1.h new file mode 100644 index 00000000..d61b5bfe --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/ConversionRotationModifierParams_0p0_0p1.h @@ -0,0 +1,80 @@ +/* + * 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. + */ + + +#ifndef MODULE_CONVERSIONROTATIONMODIFIERPARAMS_0P0_0P1H_H +#define MODULE_CONVERSIONROTATIONMODIFIERPARAMS_0P0_0P1H_H + +#include "NvParamConversionTemplate.h" +#include "RotationModifierParams_0p0.h" +#include "RotationModifierParams_0p1.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::RotationModifierParams_0p0, + nvidia::parameterized::RotationModifierParams_0p1, + nvidia::parameterized::RotationModifierParams_0p0::ClassVersion, + nvidia::parameterized::RotationModifierParams_0p1::ClassVersion> + ConversionRotationModifierParams_0p0_0p1Parent; + +class ConversionRotationModifierParams_0p0_0p1: public ConversionRotationModifierParams_0p0_0p1Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionRotationModifierParams_0p0_0p1)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionRotationModifierParams_0p0_0p1)(t) : 0; + } + +protected: + ConversionRotationModifierParams_0p0_0p1(NvParameterized::Traits* t) : ConversionRotationModifierParams_0p0_0p1Parent(t) {} + + const NvParameterized::PrefVer* getPreferredVersions() const + { + static NvParameterized::PrefVer prefVers[] = + { + //TODO: + // Add your preferred versions for included references here. + // Entry format is + // { (const char*)longName, (uint32_t)preferredVersion } + + { 0, 0 } // Terminator (do not remove!) + }; + + return prefVers; + } + + bool convert() + { + //TODO: + // Write custom conversion code here using mNewData and mLegacyData members. + // + // Note that + // - mNewData has already been initialized with default values + // - same-named/same-typed members have already been copied + // from mLegacyData to mNewData + // - included references were moved to mNewData + // (and updated to preferred versions according to getPreferredVersions) + // + // For more info see the versioning wiki. + + return true; + } +}; + + +} +} +} //nvidia::apex::legacy + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/ConversionRotationModifierParams_0p1_0p2.h b/APEX_1.4/module/iofx_legacy/include/ConversionRotationModifierParams_0p1_0p2.h new file mode 100644 index 00000000..24100cd0 --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/ConversionRotationModifierParams_0p1_0p2.h @@ -0,0 +1,80 @@ +/* + * 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. + */ + + +#ifndef MODULE_CONVERSIONROTATIONMODIFIERPARAMS_0P1_0P2H_H +#define MODULE_CONVERSIONROTATIONMODIFIERPARAMS_0P1_0P2H_H + +#include "NvParamConversionTemplate.h" +#include "RotationModifierParams_0p1.h" +#include "RotationModifierParams_0p2.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::RotationModifierParams_0p1, + nvidia::parameterized::RotationModifierParams_0p2, + nvidia::parameterized::RotationModifierParams_0p1::ClassVersion, + nvidia::parameterized::RotationModifierParams_0p2::ClassVersion> + ConversionRotationModifierParams_0p1_0p2Parent; + +class ConversionRotationModifierParams_0p1_0p2: public ConversionRotationModifierParams_0p1_0p2Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionRotationModifierParams_0p1_0p2)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionRotationModifierParams_0p1_0p2)(t) : 0; + } + +protected: + ConversionRotationModifierParams_0p1_0p2(NvParameterized::Traits* t) : ConversionRotationModifierParams_0p1_0p2Parent(t) {} + + const NvParameterized::PrefVer* getPreferredVersions() const + { + static NvParameterized::PrefVer prefVers[] = + { + //TODO: + // Add your preferred versions for included references here. + // Entry format is + // { (const char*)longName, (uint32_t)preferredVersion } + + { 0, 0 } // Terminator (do not remove!) + }; + + return prefVers; + } + + bool convert() + { + //TODO: + // Write custom conversion code here using mNewData and mLegacyData members. + // + // Note that + // - mNewData has already been initialized with default values + // - same-named/same-typed members have already been copied + // from mLegacyData to mNewData + // - included references were moved to mNewData + // (and updated to preferred versions according to getPreferredVersions) + // + // For more info see the versioning wiki. + + return true; + } +}; + + +} +} +} //nvidia::apex::legacy + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/ConversionSpriteIofxParameters_0p0_0p1.h b/APEX_1.4/module/iofx_legacy/include/ConversionSpriteIofxParameters_0p0_0p1.h new file mode 100644 index 00000000..29eb7c1c --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/ConversionSpriteIofxParameters_0p0_0p1.h @@ -0,0 +1,64 @@ +/* + * 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. + */ + + +#ifndef MODULE_CONVERSIONSPRITEIOFXPARAMETERS_0P0_0P1H_H +#define MODULE_CONVERSIONSPRITEIOFXPARAMETERS_0P0_0P1H_H + +#include "NvParamConversionTemplate.h" +#include "SpriteIofxParameters_0p0.h" +#include "SpriteIofxParameters_0p1.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::SpriteIofxParameters_0p0, + nvidia::parameterized::SpriteIofxParameters_0p1, + nvidia::parameterized::SpriteIofxParameters_0p0::ClassVersion, + nvidia::parameterized::SpriteIofxParameters_0p1::ClassVersion> + ConversionSpriteIofxParameters_0p0_0p1Parent; + +class ConversionSpriteIofxParameters_0p0_0p1: public ConversionSpriteIofxParameters_0p0_0p1Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionSpriteIofxParameters_0p0_0p1)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionSpriteIofxParameters_0p0_0p1)(t) : 0; + } + +protected: + ConversionSpriteIofxParameters_0p0_0p1(NvParameterized::Traits* t) : ConversionSpriteIofxParameters_0p0_0p1Parent(t) {} + + bool convert() + { + //TODO: + // Write custom conversion code here using mNewData and mLegacyData members. + // + // Note that + // - mNewData was initialized with default values + // - same-named/same-typed members were copied from mLegacyData to mNewData + // - included references were moved to mNewData + // (and updated to preferred versions according to getPreferredVersions) + // + // For more info see the versioning wiki. + + return true; + } +}; + + +} +} +} //nvidia::apex::legacy + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/ConversionSpriteIofxParameters_0p1_0p2.h b/APEX_1.4/module/iofx_legacy/include/ConversionSpriteIofxParameters_0p1_0p2.h new file mode 100644 index 00000000..b43b524b --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/ConversionSpriteIofxParameters_0p1_0p2.h @@ -0,0 +1,80 @@ +/* + * 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. + */ + + +#ifndef MODULE_CONVERSIONSPRITEIOFXPARAMETERS_0P1_0P2H_H +#define MODULE_CONVERSIONSPRITEIOFXPARAMETERS_0P1_0P2H_H + +#include "NvParamConversionTemplate.h" +#include "SpriteIofxParameters_0p1.h" +#include "SpriteIofxParameters_0p2.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::SpriteIofxParameters_0p1, + nvidia::parameterized::SpriteIofxParameters_0p2, + nvidia::parameterized::SpriteIofxParameters_0p1::ClassVersion, + nvidia::parameterized::SpriteIofxParameters_0p2::ClassVersion> + ConversionSpriteIofxParameters_0p1_0p2Parent; + +class ConversionSpriteIofxParameters_0p1_0p2: public ConversionSpriteIofxParameters_0p1_0p2Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionSpriteIofxParameters_0p1_0p2)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionSpriteIofxParameters_0p1_0p2)(t) : 0; + } + +protected: + ConversionSpriteIofxParameters_0p1_0p2(NvParameterized::Traits* t) : ConversionSpriteIofxParameters_0p1_0p2Parent(t) {} + + const NvParameterized::PrefVer* getPreferredVersions() const + { + static NvParameterized::PrefVer prefVers[] = + { + //TODO: + // Add your preferred versions for included references here. + // Entry format is + // { (const char*)longName, (uint32_t)preferredVersion } + + { 0, 0 } // Terminator (do not remove!) + }; + + return prefVers; + } + + bool convert() + { + //TODO: + // Write custom conversion code here using mNewData and mLegacyData members. + // + // Note that + // - mNewData has already been initialized with default values + // - same-named/same-typed members have already been copied + // from mLegacyData to mNewData + // - included references were moved to mNewData + // (and updated to preferred versions according to getPreferredVersions) + // + // For more info see the versioning wiki. + + return true; + } +}; + + +} +} +} //nvidia::apex::legacy + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/ConversionSpriteIofxParameters_0p2_0p3.h b/APEX_1.4/module/iofx_legacy/include/ConversionSpriteIofxParameters_0p2_0p3.h new file mode 100644 index 00000000..2690ff0e --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/ConversionSpriteIofxParameters_0p2_0p3.h @@ -0,0 +1,80 @@ +/* + * 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. + */ + + +#ifndef MODULE_CONVERSIONSPRITEIOFXPARAMETERS_0P2_0P3H_H +#define MODULE_CONVERSIONSPRITEIOFXPARAMETERS_0P2_0P3H_H + +#include "NvParamConversionTemplate.h" +#include "SpriteIofxParameters_0p2.h" +#include "SpriteIofxParameters_0p3.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::SpriteIofxParameters_0p2, + nvidia::parameterized::SpriteIofxParameters_0p3, + nvidia::parameterized::SpriteIofxParameters_0p2::ClassVersion, + nvidia::parameterized::SpriteIofxParameters_0p3::ClassVersion> + ConversionSpriteIofxParameters_0p2_0p3Parent; + +class ConversionSpriteIofxParameters_0p2_0p3: public ConversionSpriteIofxParameters_0p2_0p3Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionSpriteIofxParameters_0p2_0p3)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionSpriteIofxParameters_0p2_0p3)(t) : 0; + } + +protected: + ConversionSpriteIofxParameters_0p2_0p3(NvParameterized::Traits* t) : ConversionSpriteIofxParameters_0p2_0p3Parent(t) {} + + const NvParameterized::PrefVer* getPreferredVersions() const + { + static NvParameterized::PrefVer prefVers[] = + { + //TODO: + // Add your preferred versions for included references here. + // Entry format is + // { (const char*)longName, (uint32_t)preferredVersion } + + { 0, 0 } // Terminator (do not remove!) + }; + + return prefVers; + } + + bool convert() + { + //TODO: + // Write custom conversion code here using mNewData and mLegacyData members. + // + // Note that + // - mNewData has already been initialized with default values + // - same-named/same-typed members have already been copied + // from mLegacyData to mNewData + // - included references were moved to mNewData + // (and updated to preferred versions according to getPreferredVersions) + // + // For more info see the versioning wiki. + + return true; + } +}; + + +} +} +} //nvidia::apex::legacy + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/ConversionSpriteIofxParameters_0p3_0p4.h b/APEX_1.4/module/iofx_legacy/include/ConversionSpriteIofxParameters_0p3_0p4.h new file mode 100644 index 00000000..fb0b5a2b --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/ConversionSpriteIofxParameters_0p3_0p4.h @@ -0,0 +1,80 @@ +/* + * 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. + */ + + +#ifndef MODULE_CONVERSIONSPRITEIOFXPARAMETERS_0P3_0P4H_H +#define MODULE_CONVERSIONSPRITEIOFXPARAMETERS_0P3_0P4H_H + +#include "NvParamConversionTemplate.h" +#include "SpriteIofxParameters_0p3.h" +#include "SpriteIofxParameters_0p4.h" + +namespace nvidia { +namespace apex { +namespace legacy { + + +typedef NvParameterized::ParamConversionTemplate<nvidia::parameterized::SpriteIofxParameters_0p3, + nvidia::parameterized::SpriteIofxParameters_0p4, + nvidia::parameterized::SpriteIofxParameters_0p3::ClassVersion, + nvidia::parameterized::SpriteIofxParameters_0p4::ClassVersion> + ConversionSpriteIofxParameters_0p3_0p4Parent; + +class ConversionSpriteIofxParameters_0p3_0p4: public ConversionSpriteIofxParameters_0p3_0p4Parent +{ +public: + static NvParameterized::Conversion* Create(NvParameterized::Traits* t) + { + void* buf = t->alloc(sizeof(ConversionSpriteIofxParameters_0p3_0p4)); + return buf ? PX_PLACEMENT_NEW(buf, ConversionSpriteIofxParameters_0p3_0p4)(t) : 0; + } + +protected: + ConversionSpriteIofxParameters_0p3_0p4(NvParameterized::Traits* t) : ConversionSpriteIofxParameters_0p3_0p4Parent(t) {} + + const NvParameterized::PrefVer* getPreferredVersions() const + { + static NvParameterized::PrefVer prefVers[] = + { + //TODO: + // Add your preferred versions for included references here. + // Entry format is + // { (const char*)longName, (uint32_t)preferredVersion } + + { 0, 0 } // Terminator (do not remove!) + }; + + return prefVers; + } + + bool convert() + { + //TODO: + // Write custom conversion code here using mNewData and mLegacyData members. + // + // Note that + // - mNewData has already been initialized with default values + // - same-named/same-typed members have already been copied + // from mLegacyData to mNewData + // - included references were moved to mNewData + // (and updated to preferred versions according to getPreferredVersions) + // + // For more info see the versioning wiki. + + return true; + } +}; + + +} +} +} //nvidia::apex::legacy + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/IofxLegacyRender.h b/APEX_1.4/module/iofx_legacy/include/IofxLegacyRender.h new file mode 100644 index 00000000..b821790b --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/IofxLegacyRender.h @@ -0,0 +1,179 @@ +/* + * 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. + */ + + +#ifndef __IOFX_LEGACY_RENDER_H__ +#define __IOFX_LEGACY_RENDER_H__ + +#include "Px.h" +#include "Renderable.h" +#include "PsUserAllocated.h" +#include "ApexRenderable.h" +#include "ApexRWLockable.h" + +#include "iofx/IofxRenderable.h" +#include "iofx/IofxRenderCallback.h" + +#include "ApexSDKIntl.h" +#include "Scene.h" +#include "PxTaskManager.h" + + +namespace nvidia +{ +namespace apex +{ +namespace legacy +{ + + +class IofxLegacyRenderable : public Renderable, public ApexRenderable, public UserAllocated, public ApexRWLockable +{ +public: + virtual physx::PxBounds3 getBounds() const + { + return ApexRenderable::getBounds(); + } + virtual void lockRenderResources() + { + ApexRenderable::renderDataLock(); + } + virtual void unlockRenderResources() + { + ApexRenderable::renderDataUnLock(); + } + + void update() + { + ApexRenderable::mRenderBounds = mRenderable.getBounds(); + } + +protected: + IofxLegacyRenderable(const IofxRenderable& renderable) + : mRenderable(renderable) + { + } + + const IofxRenderable& mRenderable; +}; + + +class IofxLegacySpriteRenderable : public IofxLegacyRenderable +{ +public: + IofxLegacySpriteRenderable(const IofxRenderable& renderable) + : IofxLegacyRenderable(renderable) + , mRenderResource(NULL) + { + } + virtual ~IofxLegacySpriteRenderable() + { + if (mRenderResource != NULL) + { + GetInternalApexSDK()->getUserRenderResourceManager()->releaseResource(*mRenderResource); + } + } + + virtual void updateRenderResources(bool rewriteBuffers, void* userRenderData); + virtual void dispatchRenderResources(UserRenderer& renderer); + +private: + UserRenderResource* mRenderResource; +}; + + +class IofxLegacyMeshRenderable : public IofxLegacyRenderable +{ +public: + IofxLegacyMeshRenderable(const IofxRenderable& renderable) + : IofxLegacyRenderable(renderable) + , mRenderMeshActor(NULL) + { + } + virtual ~IofxLegacyMeshRenderable() + { + if (mRenderMeshActor != NULL) + { + mRenderMeshActor->release(); + } + } + + virtual void updateRenderResources(bool rewriteBuffers, void* userRenderData); + virtual void dispatchRenderResources(UserRenderer& renderer); + +private: + RenderMeshActor* loadRenderMeshActor(const IofxMeshRenderData* meshRenderData); + + RenderMeshActor* mRenderMeshActor; +}; + + +class IofxLegacyRenderCallback : public IofxRenderCallback, public UserAllocated +{ +public: + IofxLegacyRenderCallback(const Scene* apexScene) + { + mGpuDispatcher = apexScene->getTaskManager()->getGpuDispatcher(); + } + + virtual void onCreatedIofxRenderable(IofxRenderable& renderable) + { + IofxLegacyRenderable* legacyRenderable = NULL; + switch (renderable.getType()) + { + case IofxRenderable::SPRITE: + legacyRenderable = PX_NEW(IofxLegacySpriteRenderable)(renderable); + break; + case IofxRenderable::MESH: + legacyRenderable = PX_NEW(IofxLegacyMeshRenderable)(renderable); + break; + default: + PX_ALWAYS_ASSERT(); + } + renderable.userData = legacyRenderable; + } + + virtual void onUpdatedIofxRenderable(IofxRenderable& renderable) + { + IofxLegacyRenderable* legacyRenderable = static_cast<IofxLegacyRenderable*>(renderable.userData); + if (legacyRenderable != NULL) + { + legacyRenderable->update(); + } + } + + virtual void onReleasingIofxRenderable(IofxRenderable& renderable) + { + IofxLegacyRenderable* legacyRenderable = static_cast<IofxLegacyRenderable*>(renderable.userData); + if (legacyRenderable != NULL) + { + PX_DELETE(legacyRenderable); + renderable.userData = NULL; + } + } + + virtual bool getIofxSpriteRenderLayout(IofxSpriteRenderLayout& spriteRenderLayout, uint32_t spriteCount, uint32_t spriteSemanticsBitmap, RenderInteropFlags::Enum interopFlags); + + virtual bool getIofxMeshRenderLayout(IofxMeshRenderLayout& meshRenderLayout, uint32_t meshCount, uint32_t meshSemanticsBitmap, RenderInteropFlags::Enum interopFlags); + + virtual UserRenderBuffer* createRenderBuffer(const UserRenderBufferDesc& ); + + virtual UserRenderSurface* createRenderSurface(const UserRenderSurfaceDesc& ); + +private: + PxGpuDispatcher* mGpuDispatcher; +}; + + +} +} +} // namespace nvidia + +#endif /* __IOFX_LEGACY_RENDER_H__ */ diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/ColorVsDensityCompositeModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/ColorVsDensityCompositeModifierParams_0p0.h new file mode 100644 index 00000000..82129200 --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/ColorVsDensityCompositeModifierParams_0p0.h @@ -0,0 +1,244 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_ColorVsDensityCompositeModifierParams_0p0_h +#define HEADER_ColorVsDensityCompositeModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace ColorVsDensityCompositeModifierParams_0p0NS +{ + +struct colorDensityStruct_Type; + +struct colorDensityStruct_DynamicArray1D_Type +{ + colorDensityStruct_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct colorDensityStruct_Type +{ + float density; + physx::PxVec4 color; +}; + +struct ParametersStruct +{ + + colorDensityStruct_DynamicArray1D_Type controlPoints; + +}; + +static const uint32_t checksum[] = { 0x6ee7f5a0, 0xedd1e5d5, 0x6169ab3c, 0x868306ec, }; + +} // namespace ColorVsDensityCompositeModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ColorVsDensityCompositeModifierParams_0p0 : public NvParameterized::NvParameters, public ColorVsDensityCompositeModifierParams_0p0NS::ParametersStruct +{ +public: + ColorVsDensityCompositeModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ColorVsDensityCompositeModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ColorVsDensityCompositeModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(ColorVsDensityCompositeModifierParams_0p0NS::checksum); + return ColorVsDensityCompositeModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ColorVsDensityCompositeModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + ColorVsDensityCompositeModifierParams_0p0* tmpThis = const_cast<ColorVsDensityCompositeModifierParams_0p0*>(this); + return *(static_cast<ColorVsDensityCompositeModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + ColorVsDensityCompositeModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ColorVsDensityCompositeModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class ColorVsDensityCompositeModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ColorVsDensityCompositeModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ColorVsDensityCompositeModifierParams_0p0), ColorVsDensityCompositeModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ColorVsDensityCompositeModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ColorVsDensityCompositeModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ColorVsDensityCompositeModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ColorVsDensityCompositeModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ColorVsDensityCompositeModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ColorVsDensityCompositeModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ColorVsDensityCompositeModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ColorVsDensityCompositeModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (ColorVsDensityCompositeModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ColorVsDensityCompositeModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ColorVsDensityCompositeModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ColorVsDensityCompositeModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ColorVsDensityCompositeModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/ColorVsDensityModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/ColorVsDensityModifierParams_0p0.h new file mode 100644 index 00000000..d395d0ae --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/ColorVsDensityModifierParams_0p0.h @@ -0,0 +1,245 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_ColorVsDensityModifierParams_0p0_h +#define HEADER_ColorVsDensityModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace ColorVsDensityModifierParams_0p0NS +{ + +struct vec2_Type; + +struct vec2_DynamicArray1D_Type +{ + vec2_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct vec2_Type +{ + float x; + float y; +}; + +struct ParametersStruct +{ + + const char* colorChannel; + vec2_DynamicArray1D_Type controlPoints; + +}; + +static const uint32_t checksum[] = { 0xbd1ead31, 0x79bc4460, 0x6a89ef07, 0xbbe13350, }; + +} // namespace ColorVsDensityModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ColorVsDensityModifierParams_0p0 : public NvParameterized::NvParameters, public ColorVsDensityModifierParams_0p0NS::ParametersStruct +{ +public: + ColorVsDensityModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ColorVsDensityModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ColorVsDensityModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(ColorVsDensityModifierParams_0p0NS::checksum); + return ColorVsDensityModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ColorVsDensityModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + ColorVsDensityModifierParams_0p0* tmpThis = const_cast<ColorVsDensityModifierParams_0p0*>(this); + return *(static_cast<ColorVsDensityModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + ColorVsDensityModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ColorVsDensityModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class ColorVsDensityModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ColorVsDensityModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ColorVsDensityModifierParams_0p0), ColorVsDensityModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ColorVsDensityModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ColorVsDensityModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ColorVsDensityModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ColorVsDensityModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ColorVsDensityModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ColorVsDensityModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ColorVsDensityModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ColorVsDensityModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (ColorVsDensityModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ColorVsDensityModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ColorVsDensityModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ColorVsDensityModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ColorVsDensityModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/ColorVsLifeCompositeModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/ColorVsLifeCompositeModifierParams_0p0.h new file mode 100644 index 00000000..cc3c24af --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/ColorVsLifeCompositeModifierParams_0p0.h @@ -0,0 +1,244 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_ColorVsLifeCompositeModifierParams_0p0_h +#define HEADER_ColorVsLifeCompositeModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace ColorVsLifeCompositeModifierParams_0p0NS +{ + +struct colorLifeStruct_Type; + +struct colorLifeStruct_DynamicArray1D_Type +{ + colorLifeStruct_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct colorLifeStruct_Type +{ + float lifeRemaining; + physx::PxVec4 color; +}; + +struct ParametersStruct +{ + + colorLifeStruct_DynamicArray1D_Type controlPoints; + +}; + +static const uint32_t checksum[] = { 0x2ee279f3, 0x6440bf5b, 0x26d89b02, 0xc90fa659, }; + +} // namespace ColorVsLifeCompositeModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ColorVsLifeCompositeModifierParams_0p0 : public NvParameterized::NvParameters, public ColorVsLifeCompositeModifierParams_0p0NS::ParametersStruct +{ +public: + ColorVsLifeCompositeModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ColorVsLifeCompositeModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ColorVsLifeCompositeModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(ColorVsLifeCompositeModifierParams_0p0NS::checksum); + return ColorVsLifeCompositeModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ColorVsLifeCompositeModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + ColorVsLifeCompositeModifierParams_0p0* tmpThis = const_cast<ColorVsLifeCompositeModifierParams_0p0*>(this); + return *(static_cast<ColorVsLifeCompositeModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + ColorVsLifeCompositeModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ColorVsLifeCompositeModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class ColorVsLifeCompositeModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ColorVsLifeCompositeModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ColorVsLifeCompositeModifierParams_0p0), ColorVsLifeCompositeModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ColorVsLifeCompositeModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ColorVsLifeCompositeModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ColorVsLifeCompositeModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ColorVsLifeCompositeModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ColorVsLifeCompositeModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ColorVsLifeCompositeModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ColorVsLifeCompositeModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ColorVsLifeCompositeModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (ColorVsLifeCompositeModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ColorVsLifeCompositeModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ColorVsLifeCompositeModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ColorVsLifeCompositeModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ColorVsLifeCompositeModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/ColorVsLifeModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/ColorVsLifeModifierParams_0p0.h new file mode 100644 index 00000000..582a8ac2 --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/ColorVsLifeModifierParams_0p0.h @@ -0,0 +1,245 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_ColorVsLifeModifierParams_0p0_h +#define HEADER_ColorVsLifeModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace ColorVsLifeModifierParams_0p0NS +{ + +struct vec2_Type; + +struct vec2_DynamicArray1D_Type +{ + vec2_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct vec2_Type +{ + float x; + float y; +}; + +struct ParametersStruct +{ + + const char* colorChannel; + vec2_DynamicArray1D_Type controlPoints; + +}; + +static const uint32_t checksum[] = { 0x6273c5a3, 0xe1a0df26, 0x77f5af16, 0x6a54d1e7, }; + +} // namespace ColorVsLifeModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ColorVsLifeModifierParams_0p0 : public NvParameterized::NvParameters, public ColorVsLifeModifierParams_0p0NS::ParametersStruct +{ +public: + ColorVsLifeModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ColorVsLifeModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ColorVsLifeModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(ColorVsLifeModifierParams_0p0NS::checksum); + return ColorVsLifeModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ColorVsLifeModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + ColorVsLifeModifierParams_0p0* tmpThis = const_cast<ColorVsLifeModifierParams_0p0*>(this); + return *(static_cast<ColorVsLifeModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + ColorVsLifeModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ColorVsLifeModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class ColorVsLifeModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ColorVsLifeModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ColorVsLifeModifierParams_0p0), ColorVsLifeModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ColorVsLifeModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ColorVsLifeModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ColorVsLifeModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ColorVsLifeModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ColorVsLifeModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ColorVsLifeModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ColorVsLifeModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ColorVsLifeModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (ColorVsLifeModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ColorVsLifeModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ColorVsLifeModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ColorVsLifeModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ColorVsLifeModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/ColorVsTemperatureCompositeModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/ColorVsTemperatureCompositeModifierParams_0p0.h new file mode 100644 index 00000000..7e6b563e --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/ColorVsTemperatureCompositeModifierParams_0p0.h @@ -0,0 +1,244 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_ColorVsTemperatureCompositeModifierParams_0p0_h +#define HEADER_ColorVsTemperatureCompositeModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace ColorVsTemperatureCompositeModifierParams_0p0NS +{ + +struct colorTemperatureStruct_Type; + +struct colorTemperatureStruct_DynamicArray1D_Type +{ + colorTemperatureStruct_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct colorTemperatureStruct_Type +{ + float temperature; + physx::PxVec4 color; +}; + +struct ParametersStruct +{ + + colorTemperatureStruct_DynamicArray1D_Type controlPoints; + +}; + +static const uint32_t checksum[] = { 0xb5bad295, 0x1bbde1e7, 0xb10b2dc3, 0xde67581e, }; + +} // namespace ColorVsTemperatureCompositeModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ColorVsTemperatureCompositeModifierParams_0p0 : public NvParameterized::NvParameters, public ColorVsTemperatureCompositeModifierParams_0p0NS::ParametersStruct +{ +public: + ColorVsTemperatureCompositeModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ColorVsTemperatureCompositeModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ColorVsTemperatureCompositeModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(ColorVsTemperatureCompositeModifierParams_0p0NS::checksum); + return ColorVsTemperatureCompositeModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ColorVsTemperatureCompositeModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + ColorVsTemperatureCompositeModifierParams_0p0* tmpThis = const_cast<ColorVsTemperatureCompositeModifierParams_0p0*>(this); + return *(static_cast<ColorVsTemperatureCompositeModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + ColorVsTemperatureCompositeModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ColorVsTemperatureCompositeModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class ColorVsTemperatureCompositeModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ColorVsTemperatureCompositeModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ColorVsTemperatureCompositeModifierParams_0p0), ColorVsTemperatureCompositeModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ColorVsTemperatureCompositeModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ColorVsTemperatureCompositeModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ColorVsTemperatureCompositeModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ColorVsTemperatureCompositeModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ColorVsTemperatureCompositeModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ColorVsTemperatureCompositeModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ColorVsTemperatureCompositeModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ColorVsTemperatureCompositeModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (ColorVsTemperatureCompositeModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ColorVsTemperatureCompositeModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ColorVsTemperatureCompositeModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ColorVsTemperatureCompositeModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ColorVsTemperatureCompositeModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/ColorVsTemperatureModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/ColorVsTemperatureModifierParams_0p0.h new file mode 100644 index 00000000..ad95f92a --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/ColorVsTemperatureModifierParams_0p0.h @@ -0,0 +1,245 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_ColorVsTemperatureModifierParams_0p0_h +#define HEADER_ColorVsTemperatureModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace ColorVsTemperatureModifierParams_0p0NS +{ + +struct vec2_Type; + +struct vec2_DynamicArray1D_Type +{ + vec2_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct vec2_Type +{ + float x; + float y; +}; + +struct ParametersStruct +{ + + const char* colorChannel; + vec2_DynamicArray1D_Type controlPoints; + +}; + +static const uint32_t checksum[] = { 0xe539a2ca, 0x44cf1564, 0xa6a2c047, 0xec15660d, }; + +} // namespace ColorVsTemperatureModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ColorVsTemperatureModifierParams_0p0 : public NvParameterized::NvParameters, public ColorVsTemperatureModifierParams_0p0NS::ParametersStruct +{ +public: + ColorVsTemperatureModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ColorVsTemperatureModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ColorVsTemperatureModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(ColorVsTemperatureModifierParams_0p0NS::checksum); + return ColorVsTemperatureModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ColorVsTemperatureModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + ColorVsTemperatureModifierParams_0p0* tmpThis = const_cast<ColorVsTemperatureModifierParams_0p0*>(this); + return *(static_cast<ColorVsTemperatureModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + ColorVsTemperatureModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ColorVsTemperatureModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class ColorVsTemperatureModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ColorVsTemperatureModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ColorVsTemperatureModifierParams_0p0), ColorVsTemperatureModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ColorVsTemperatureModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ColorVsTemperatureModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ColorVsTemperatureModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ColorVsTemperatureModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ColorVsTemperatureModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ColorVsTemperatureModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ColorVsTemperatureModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ColorVsTemperatureModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (ColorVsTemperatureModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ColorVsTemperatureModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ColorVsTemperatureModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ColorVsTemperatureModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ColorVsTemperatureModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/ColorVsVelocityCompositeModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/ColorVsVelocityCompositeModifierParams_0p0.h new file mode 100644 index 00000000..ce0b397f --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/ColorVsVelocityCompositeModifierParams_0p0.h @@ -0,0 +1,246 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_ColorVsVelocityCompositeModifierParams_0p0_h +#define HEADER_ColorVsVelocityCompositeModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace ColorVsVelocityCompositeModifierParams_0p0NS +{ + +struct colorVelocityStruct_Type; + +struct colorVelocityStruct_DynamicArray1D_Type +{ + colorVelocityStruct_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct colorVelocityStruct_Type +{ + float velocity; + physx::PxVec4 color; +}; + +struct ParametersStruct +{ + + float velocity0; + float velocity1; + colorVelocityStruct_DynamicArray1D_Type controlPoints; + +}; + +static const uint32_t checksum[] = { 0x85918a9e, 0x651f465d, 0x179721b9, 0x3bbd630d, }; + +} // namespace ColorVsVelocityCompositeModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ColorVsVelocityCompositeModifierParams_0p0 : public NvParameterized::NvParameters, public ColorVsVelocityCompositeModifierParams_0p0NS::ParametersStruct +{ +public: + ColorVsVelocityCompositeModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ColorVsVelocityCompositeModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ColorVsVelocityCompositeModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(ColorVsVelocityCompositeModifierParams_0p0NS::checksum); + return ColorVsVelocityCompositeModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ColorVsVelocityCompositeModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + ColorVsVelocityCompositeModifierParams_0p0* tmpThis = const_cast<ColorVsVelocityCompositeModifierParams_0p0*>(this); + return *(static_cast<ColorVsVelocityCompositeModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + ColorVsVelocityCompositeModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ColorVsVelocityCompositeModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class ColorVsVelocityCompositeModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ColorVsVelocityCompositeModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ColorVsVelocityCompositeModifierParams_0p0), ColorVsVelocityCompositeModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ColorVsVelocityCompositeModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ColorVsVelocityCompositeModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ColorVsVelocityCompositeModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ColorVsVelocityCompositeModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ColorVsVelocityCompositeModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ColorVsVelocityCompositeModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ColorVsVelocityCompositeModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ColorVsVelocityCompositeModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (ColorVsVelocityCompositeModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ColorVsVelocityCompositeModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ColorVsVelocityCompositeModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ColorVsVelocityCompositeModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ColorVsVelocityCompositeModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/ColorVsVelocityModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/ColorVsVelocityModifierParams_0p0.h new file mode 100644 index 00000000..227713c2 --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/ColorVsVelocityModifierParams_0p0.h @@ -0,0 +1,247 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_ColorVsVelocityModifierParams_0p0_h +#define HEADER_ColorVsVelocityModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace ColorVsVelocityModifierParams_0p0NS +{ + +struct vec2_Type; + +struct vec2_DynamicArray1D_Type +{ + vec2_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct vec2_Type +{ + float x; + float y; +}; + +struct ParametersStruct +{ + + const char* colorChannel; + float velocity0; + float velocity1; + vec2_DynamicArray1D_Type controlPoints; + +}; + +static const uint32_t checksum[] = { 0x4c79c470, 0xac91d48e, 0xa4578ba1, 0x9c1ae2f2, }; + +} // namespace ColorVsVelocityModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ColorVsVelocityModifierParams_0p0 : public NvParameterized::NvParameters, public ColorVsVelocityModifierParams_0p0NS::ParametersStruct +{ +public: + ColorVsVelocityModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ColorVsVelocityModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ColorVsVelocityModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(ColorVsVelocityModifierParams_0p0NS::checksum); + return ColorVsVelocityModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ColorVsVelocityModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + ColorVsVelocityModifierParams_0p0* tmpThis = const_cast<ColorVsVelocityModifierParams_0p0*>(this); + return *(static_cast<ColorVsVelocityModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + ColorVsVelocityModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ColorVsVelocityModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class ColorVsVelocityModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ColorVsVelocityModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ColorVsVelocityModifierParams_0p0), ColorVsVelocityModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ColorVsVelocityModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ColorVsVelocityModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ColorVsVelocityModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ColorVsVelocityModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ColorVsVelocityModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ColorVsVelocityModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ColorVsVelocityModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ColorVsVelocityModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (ColorVsVelocityModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ColorVsVelocityModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ColorVsVelocityModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ColorVsVelocityModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ColorVsVelocityModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/InitialColorModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/InitialColorModifierParams_0p0.h new file mode 100644 index 00000000..ad7e9799 --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/InitialColorModifierParams_0p0.h @@ -0,0 +1,230 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_InitialColorModifierParams_0p0_h +#define HEADER_InitialColorModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace InitialColorModifierParams_0p0NS +{ + + + +struct ParametersStruct +{ + + physx::PxVec4 color; + +}; + +static const uint32_t checksum[] = { 0xeede1183, 0x3f1f709f, 0x0957a3e8, 0x4a27910f, }; + +} // namespace InitialColorModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class InitialColorModifierParams_0p0 : public NvParameterized::NvParameters, public InitialColorModifierParams_0p0NS::ParametersStruct +{ +public: + InitialColorModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~InitialColorModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("InitialColorModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(InitialColorModifierParams_0p0NS::checksum); + return InitialColorModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const InitialColorModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + InitialColorModifierParams_0p0* tmpThis = const_cast<InitialColorModifierParams_0p0*>(this); + return *(static_cast<InitialColorModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + InitialColorModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<InitialColorModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class InitialColorModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + InitialColorModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(InitialColorModifierParams_0p0), InitialColorModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, InitialColorModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class InitialColorModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(InitialColorModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, InitialColorModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, InitialColorModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, InitialColorModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class InitialColorModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of InitialColorModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (InitialColorModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (InitialColorModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (InitialColorModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (InitialColorModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (InitialColorModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/IofxAssetParameters_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/IofxAssetParameters_0p0.h new file mode 100644 index 00000000..5a635b2f --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/IofxAssetParameters_0p0.h @@ -0,0 +1,255 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_IofxAssetParameters_0p0_h +#define HEADER_IofxAssetParameters_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace IofxAssetParameters_0p0NS +{ + +struct meshProperties_Type; + +struct meshProperties_DynamicArray1D_Type +{ + meshProperties_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct REF_DynamicArray1D_Type +{ + NvParameterized::Interface** buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct meshProperties_Type +{ + NvParameterized::Interface* meshAssetName; + uint32_t weight; +}; + +struct ParametersStruct +{ + + meshProperties_DynamicArray1D_Type renderMeshList; + NvParameterized::Interface* spriteMaterialName; + REF_DynamicArray1D_Type spawnModifierList; + REF_DynamicArray1D_Type continuousModifierList; + +}; + +static const uint32_t checksum[] = { 0xd0fecc63, 0x54e1d41d, 0x01415624, 0x6c76ef09, }; + +} // namespace IofxAssetParameters_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class IofxAssetParameters_0p0 : public NvParameterized::NvParameters, public IofxAssetParameters_0p0NS::ParametersStruct +{ +public: + IofxAssetParameters_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~IofxAssetParameters_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("IofxAssetParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(IofxAssetParameters_0p0NS::checksum); + return IofxAssetParameters_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const IofxAssetParameters_0p0NS::ParametersStruct& parameters(void) const + { + IofxAssetParameters_0p0* tmpThis = const_cast<IofxAssetParameters_0p0*>(this); + return *(static_cast<IofxAssetParameters_0p0NS::ParametersStruct*>(tmpThis)); + } + + IofxAssetParameters_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<IofxAssetParameters_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class IofxAssetParameters_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + IofxAssetParameters_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(IofxAssetParameters_0p0), IofxAssetParameters_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, IofxAssetParameters_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class IofxAssetParameters_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(IofxAssetParameters_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, IofxAssetParameters_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, IofxAssetParameters_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, IofxAssetParameters_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class IofxAssetParameters_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of IofxAssetParameters_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (IofxAssetParameters_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (IofxAssetParameters_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (IofxAssetParameters_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (IofxAssetParameters_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (IofxAssetParameters_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/IofxAssetParameters_0p1.h b/APEX_1.4/module/iofx_legacy/include/autogen/IofxAssetParameters_0p1.h new file mode 100644 index 00000000..39fca56b --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/IofxAssetParameters_0p1.h @@ -0,0 +1,230 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_IofxAssetParameters_0p1_h +#define HEADER_IofxAssetParameters_0p1_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace IofxAssetParameters_0p1NS +{ + + + +struct ParametersStruct +{ + + NvParameterized::Interface* iofxType; + +}; + +static const uint32_t checksum[] = { 0x4f59ea8d, 0xffdb948a, 0x87165d25, 0xda1345f1, }; + +} // namespace IofxAssetParameters_0p1NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class IofxAssetParameters_0p1 : public NvParameterized::NvParameters, public IofxAssetParameters_0p1NS::ParametersStruct +{ +public: + IofxAssetParameters_0p1(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~IofxAssetParameters_0p1(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("IofxAssetParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)1; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(IofxAssetParameters_0p1NS::checksum); + return IofxAssetParameters_0p1NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const IofxAssetParameters_0p1NS::ParametersStruct& parameters(void) const + { + IofxAssetParameters_0p1* tmpThis = const_cast<IofxAssetParameters_0p1*>(this); + return *(static_cast<IofxAssetParameters_0p1NS::ParametersStruct*>(tmpThis)); + } + + IofxAssetParameters_0p1NS::ParametersStruct& parameters(void) + { + return *(static_cast<IofxAssetParameters_0p1NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class IofxAssetParameters_0p1Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + IofxAssetParameters_0p1::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(IofxAssetParameters_0p1), IofxAssetParameters_0p1::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, IofxAssetParameters_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class IofxAssetParameters_0p1"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(IofxAssetParameters_0p1)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, IofxAssetParameters_0p1)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, IofxAssetParameters_0p1::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, IofxAssetParameters_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class IofxAssetParameters_0p1"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of IofxAssetParameters_0p1 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (IofxAssetParameters_0p1*)bufObj; + } + + virtual const char* getClassName() + { + return (IofxAssetParameters_0p1::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (IofxAssetParameters_0p1::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (IofxAssetParameters_0p1::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (IofxAssetParameters_0p1::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/IofxAssetParameters_0p2.h b/APEX_1.4/module/iofx_legacy/include/autogen/IofxAssetParameters_0p2.h new file mode 100644 index 00000000..c51fc5db --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/IofxAssetParameters_0p2.h @@ -0,0 +1,237 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_IofxAssetParameters_0p2_h +#define HEADER_IofxAssetParameters_0p2_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace IofxAssetParameters_0p2NS +{ + +struct outputProperties_Type; + +struct outputProperties_Type +{ + bool useUserSemantic; + bool useFloat4Color; +}; + +struct ParametersStruct +{ + + NvParameterized::Interface* iofxType; + outputProperties_Type renderOutput; + +}; + +static const uint32_t checksum[] = { 0xbb5add57, 0xf771d298, 0xcd7c3bc3, 0x921baa57, }; + +} // namespace IofxAssetParameters_0p2NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class IofxAssetParameters_0p2 : public NvParameterized::NvParameters, public IofxAssetParameters_0p2NS::ParametersStruct +{ +public: + IofxAssetParameters_0p2(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~IofxAssetParameters_0p2(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("IofxAssetParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)2; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(IofxAssetParameters_0p2NS::checksum); + return IofxAssetParameters_0p2NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const IofxAssetParameters_0p2NS::ParametersStruct& parameters(void) const + { + IofxAssetParameters_0p2* tmpThis = const_cast<IofxAssetParameters_0p2*>(this); + return *(static_cast<IofxAssetParameters_0p2NS::ParametersStruct*>(tmpThis)); + } + + IofxAssetParameters_0p2NS::ParametersStruct& parameters(void) + { + return *(static_cast<IofxAssetParameters_0p2NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class IofxAssetParameters_0p2Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + IofxAssetParameters_0p2::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(IofxAssetParameters_0p2), IofxAssetParameters_0p2::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, IofxAssetParameters_0p2::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class IofxAssetParameters_0p2"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(IofxAssetParameters_0p2)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, IofxAssetParameters_0p2)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, IofxAssetParameters_0p2::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, IofxAssetParameters_0p2::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class IofxAssetParameters_0p2"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of IofxAssetParameters_0p2 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (IofxAssetParameters_0p2*)bufObj; + } + + virtual const char* getClassName() + { + return (IofxAssetParameters_0p2::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (IofxAssetParameters_0p2::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (IofxAssetParameters_0p2::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (IofxAssetParameters_0p2::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/IofxDebugRenderParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/IofxDebugRenderParams_0p0.h new file mode 100644 index 00000000..bd8fbe98 --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/IofxDebugRenderParams_0p0.h @@ -0,0 +1,232 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_IofxDebugRenderParams_0p0_h +#define HEADER_IofxDebugRenderParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace IofxDebugRenderParams_0p0NS +{ + + + +struct ParametersStruct +{ + + bool VISUALIZE_IOFX_ACTOR; + bool VISUALIZE_IOFX_BOUNDING_BOX; + bool VISUALIZE_IOFX_ACTOR_NAME; + +}; + +static const uint32_t checksum[] = { 0xa907935c, 0x197f0683, 0x47c3ea05, 0x61985bda, }; + +} // namespace IofxDebugRenderParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class IofxDebugRenderParams_0p0 : public NvParameterized::NvParameters, public IofxDebugRenderParams_0p0NS::ParametersStruct +{ +public: + IofxDebugRenderParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~IofxDebugRenderParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("IofxDebugRenderParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(IofxDebugRenderParams_0p0NS::checksum); + return IofxDebugRenderParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const IofxDebugRenderParams_0p0NS::ParametersStruct& parameters(void) const + { + IofxDebugRenderParams_0p0* tmpThis = const_cast<IofxDebugRenderParams_0p0*>(this); + return *(static_cast<IofxDebugRenderParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + IofxDebugRenderParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<IofxDebugRenderParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class IofxDebugRenderParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + IofxDebugRenderParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(IofxDebugRenderParams_0p0), IofxDebugRenderParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, IofxDebugRenderParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class IofxDebugRenderParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(IofxDebugRenderParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, IofxDebugRenderParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, IofxDebugRenderParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, IofxDebugRenderParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class IofxDebugRenderParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of IofxDebugRenderParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (IofxDebugRenderParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (IofxDebugRenderParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (IofxDebugRenderParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (IofxDebugRenderParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (IofxDebugRenderParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/IofxModuleParameters_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/IofxModuleParameters_0p0.h new file mode 100644 index 00000000..dbb98b2a --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/IofxModuleParameters_0p0.h @@ -0,0 +1,230 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_IofxModuleParameters_0p0_h +#define HEADER_IofxModuleParameters_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace IofxModuleParameters_0p0NS +{ + + + +struct ParametersStruct +{ + + uint32_t unused; + +}; + +static const uint32_t checksum[] = { 0x70f85d6f, 0xc44790e5, 0x2f3cd6fd, 0x9d4a542b, }; + +} // namespace IofxModuleParameters_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class IofxModuleParameters_0p0 : public NvParameterized::NvParameters, public IofxModuleParameters_0p0NS::ParametersStruct +{ +public: + IofxModuleParameters_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~IofxModuleParameters_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("IofxModuleParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(IofxModuleParameters_0p0NS::checksum); + return IofxModuleParameters_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const IofxModuleParameters_0p0NS::ParametersStruct& parameters(void) const + { + IofxModuleParameters_0p0* tmpThis = const_cast<IofxModuleParameters_0p0*>(this); + return *(static_cast<IofxModuleParameters_0p0NS::ParametersStruct*>(tmpThis)); + } + + IofxModuleParameters_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<IofxModuleParameters_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class IofxModuleParameters_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + IofxModuleParameters_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(IofxModuleParameters_0p0), IofxModuleParameters_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, IofxModuleParameters_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class IofxModuleParameters_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(IofxModuleParameters_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, IofxModuleParameters_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, IofxModuleParameters_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, IofxModuleParameters_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class IofxModuleParameters_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of IofxModuleParameters_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (IofxModuleParameters_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (IofxModuleParameters_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (IofxModuleParameters_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (IofxModuleParameters_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (IofxModuleParameters_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/MeshIofxParameters_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/MeshIofxParameters_0p0.h new file mode 100644 index 00000000..322a8727 --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/MeshIofxParameters_0p0.h @@ -0,0 +1,254 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_MeshIofxParameters_0p0_h +#define HEADER_MeshIofxParameters_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace MeshIofxParameters_0p0NS +{ + +struct meshProperties_Type; + +struct meshProperties_DynamicArray1D_Type +{ + meshProperties_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct REF_DynamicArray1D_Type +{ + NvParameterized::Interface** buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct meshProperties_Type +{ + NvParameterized::Interface* meshAssetName; + uint32_t weight; +}; + +struct ParametersStruct +{ + + meshProperties_DynamicArray1D_Type renderMeshList; + REF_DynamicArray1D_Type spawnModifierList; + REF_DynamicArray1D_Type continuousModifierList; + +}; + +static const uint32_t checksum[] = { 0xa0c3f29f, 0x5dfadb24, 0xca44ca2c, 0x76243c01, }; + +} // namespace MeshIofxParameters_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class MeshIofxParameters_0p0 : public NvParameterized::NvParameters, public MeshIofxParameters_0p0NS::ParametersStruct +{ +public: + MeshIofxParameters_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~MeshIofxParameters_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("MeshIofxParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(MeshIofxParameters_0p0NS::checksum); + return MeshIofxParameters_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const MeshIofxParameters_0p0NS::ParametersStruct& parameters(void) const + { + MeshIofxParameters_0p0* tmpThis = const_cast<MeshIofxParameters_0p0*>(this); + return *(static_cast<MeshIofxParameters_0p0NS::ParametersStruct*>(tmpThis)); + } + + MeshIofxParameters_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<MeshIofxParameters_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class MeshIofxParameters_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + MeshIofxParameters_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(MeshIofxParameters_0p0), MeshIofxParameters_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, MeshIofxParameters_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class MeshIofxParameters_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(MeshIofxParameters_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, MeshIofxParameters_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, MeshIofxParameters_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, MeshIofxParameters_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class MeshIofxParameters_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of MeshIofxParameters_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (MeshIofxParameters_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (MeshIofxParameters_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (MeshIofxParameters_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (MeshIofxParameters_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (MeshIofxParameters_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/MeshIofxParameters_0p1.h b/APEX_1.4/module/iofx_legacy/include/autogen/MeshIofxParameters_0p1.h new file mode 100644 index 00000000..2eb450bd --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/MeshIofxParameters_0p1.h @@ -0,0 +1,254 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_MeshIofxParameters_0p1_h +#define HEADER_MeshIofxParameters_0p1_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace MeshIofxParameters_0p1NS +{ + +struct meshProperties_Type; + +struct meshProperties_DynamicArray1D_Type +{ + meshProperties_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct REF_DynamicArray1D_Type +{ + NvParameterized::Interface** buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct meshProperties_Type +{ + NvParameterized::Interface* meshAssetName; + uint32_t weight; +}; + +struct ParametersStruct +{ + + meshProperties_DynamicArray1D_Type renderMeshList; + REF_DynamicArray1D_Type spawnModifierList; + REF_DynamicArray1D_Type continuousModifierList; + +}; + +static const uint32_t checksum[] = { 0x68878fe3, 0xe53d77a0, 0x5178ce8f, 0x88a54038, }; + +} // namespace MeshIofxParameters_0p1NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class MeshIofxParameters_0p1 : public NvParameterized::NvParameters, public MeshIofxParameters_0p1NS::ParametersStruct +{ +public: + MeshIofxParameters_0p1(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~MeshIofxParameters_0p1(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("MeshIofxParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)1; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(MeshIofxParameters_0p1NS::checksum); + return MeshIofxParameters_0p1NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const MeshIofxParameters_0p1NS::ParametersStruct& parameters(void) const + { + MeshIofxParameters_0p1* tmpThis = const_cast<MeshIofxParameters_0p1*>(this); + return *(static_cast<MeshIofxParameters_0p1NS::ParametersStruct*>(tmpThis)); + } + + MeshIofxParameters_0p1NS::ParametersStruct& parameters(void) + { + return *(static_cast<MeshIofxParameters_0p1NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class MeshIofxParameters_0p1Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + MeshIofxParameters_0p1::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(MeshIofxParameters_0p1), MeshIofxParameters_0p1::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, MeshIofxParameters_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class MeshIofxParameters_0p1"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(MeshIofxParameters_0p1)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, MeshIofxParameters_0p1)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, MeshIofxParameters_0p1::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, MeshIofxParameters_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class MeshIofxParameters_0p1"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of MeshIofxParameters_0p1 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (MeshIofxParameters_0p1*)bufObj; + } + + virtual const char* getClassName() + { + return (MeshIofxParameters_0p1::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (MeshIofxParameters_0p1::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (MeshIofxParameters_0p1::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (MeshIofxParameters_0p1::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/MeshIofxParameters_0p2.h b/APEX_1.4/module/iofx_legacy/include/autogen/MeshIofxParameters_0p2.h new file mode 100644 index 00000000..32bba331 --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/MeshIofxParameters_0p2.h @@ -0,0 +1,254 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_MeshIofxParameters_0p2_h +#define HEADER_MeshIofxParameters_0p2_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace MeshIofxParameters_0p2NS +{ + +struct meshProperties_Type; + +struct meshProperties_DynamicArray1D_Type +{ + meshProperties_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct REF_DynamicArray1D_Type +{ + NvParameterized::Interface** buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct meshProperties_Type +{ + NvParameterized::Interface* meshAssetName; + uint32_t weight; +}; + +struct ParametersStruct +{ + + meshProperties_DynamicArray1D_Type renderMeshList; + REF_DynamicArray1D_Type spawnModifierList; + REF_DynamicArray1D_Type continuousModifierList; + +}; + +static const uint32_t checksum[] = { 0x01219894, 0xa1dc10d6, 0x3868a537, 0x2d1c47d1, }; + +} // namespace MeshIofxParameters_0p2NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class MeshIofxParameters_0p2 : public NvParameterized::NvParameters, public MeshIofxParameters_0p2NS::ParametersStruct +{ +public: + MeshIofxParameters_0p2(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~MeshIofxParameters_0p2(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("MeshIofxParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)2; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(MeshIofxParameters_0p2NS::checksum); + return MeshIofxParameters_0p2NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const MeshIofxParameters_0p2NS::ParametersStruct& parameters(void) const + { + MeshIofxParameters_0p2* tmpThis = const_cast<MeshIofxParameters_0p2*>(this); + return *(static_cast<MeshIofxParameters_0p2NS::ParametersStruct*>(tmpThis)); + } + + MeshIofxParameters_0p2NS::ParametersStruct& parameters(void) + { + return *(static_cast<MeshIofxParameters_0p2NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class MeshIofxParameters_0p2Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + MeshIofxParameters_0p2::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(MeshIofxParameters_0p2), MeshIofxParameters_0p2::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, MeshIofxParameters_0p2::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class MeshIofxParameters_0p2"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(MeshIofxParameters_0p2)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, MeshIofxParameters_0p2)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, MeshIofxParameters_0p2::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, MeshIofxParameters_0p2::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class MeshIofxParameters_0p2"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of MeshIofxParameters_0p2 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (MeshIofxParameters_0p2*)bufObj; + } + + virtual const char* getClassName() + { + return (MeshIofxParameters_0p2::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (MeshIofxParameters_0p2::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (MeshIofxParameters_0p2::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (MeshIofxParameters_0p2::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/MeshIofxParameters_0p3.h b/APEX_1.4/module/iofx_legacy/include/autogen/MeshIofxParameters_0p3.h new file mode 100644 index 00000000..784d5226 --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/MeshIofxParameters_0p3.h @@ -0,0 +1,254 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_MeshIofxParameters_0p3_h +#define HEADER_MeshIofxParameters_0p3_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace MeshIofxParameters_0p3NS +{ + +struct meshProperties_Type; + +struct meshProperties_DynamicArray1D_Type +{ + meshProperties_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct REF_DynamicArray1D_Type +{ + NvParameterized::Interface** buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct meshProperties_Type +{ + NvParameterized::Interface* meshAssetName; + uint32_t weight; +}; + +struct ParametersStruct +{ + + meshProperties_DynamicArray1D_Type renderMeshList; + REF_DynamicArray1D_Type spawnModifierList; + REF_DynamicArray1D_Type continuousModifierList; + +}; + +static const uint32_t checksum[] = { 0x3c0c42df, 0x4d3621ee, 0x5b48542e, 0xa83ea448, }; + +} // namespace MeshIofxParameters_0p3NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class MeshIofxParameters_0p3 : public NvParameterized::NvParameters, public MeshIofxParameters_0p3NS::ParametersStruct +{ +public: + MeshIofxParameters_0p3(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~MeshIofxParameters_0p3(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("MeshIofxParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)3; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(MeshIofxParameters_0p3NS::checksum); + return MeshIofxParameters_0p3NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const MeshIofxParameters_0p3NS::ParametersStruct& parameters(void) const + { + MeshIofxParameters_0p3* tmpThis = const_cast<MeshIofxParameters_0p3*>(this); + return *(static_cast<MeshIofxParameters_0p3NS::ParametersStruct*>(tmpThis)); + } + + MeshIofxParameters_0p3NS::ParametersStruct& parameters(void) + { + return *(static_cast<MeshIofxParameters_0p3NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class MeshIofxParameters_0p3Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + MeshIofxParameters_0p3::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(MeshIofxParameters_0p3), MeshIofxParameters_0p3::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, MeshIofxParameters_0p3::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class MeshIofxParameters_0p3"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(MeshIofxParameters_0p3)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, MeshIofxParameters_0p3)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, MeshIofxParameters_0p3::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, MeshIofxParameters_0p3::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class MeshIofxParameters_0p3"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of MeshIofxParameters_0p3 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (MeshIofxParameters_0p3*)bufObj; + } + + virtual const char* getClassName() + { + return (MeshIofxParameters_0p3::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (MeshIofxParameters_0p3::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (MeshIofxParameters_0p3::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (MeshIofxParameters_0p3::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/MeshIofxParameters_0p4.h b/APEX_1.4/module/iofx_legacy/include/autogen/MeshIofxParameters_0p4.h new file mode 100644 index 00000000..3876f6e5 --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/MeshIofxParameters_0p4.h @@ -0,0 +1,254 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_MeshIofxParameters_0p4_h +#define HEADER_MeshIofxParameters_0p4_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace MeshIofxParameters_0p4NS +{ + +struct meshProperties_Type; + +struct meshProperties_DynamicArray1D_Type +{ + meshProperties_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct REF_DynamicArray1D_Type +{ + NvParameterized::Interface** buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct meshProperties_Type +{ + NvParameterized::Interface* meshAssetName; + uint32_t weight; +}; + +struct ParametersStruct +{ + + meshProperties_DynamicArray1D_Type renderMeshList; + REF_DynamicArray1D_Type spawnModifierList; + REF_DynamicArray1D_Type continuousModifierList; + +}; + +static const uint32_t checksum[] = { 0x823a573c, 0xd18e2215, 0x6fc4db63, 0x3df0022a, }; + +} // namespace MeshIofxParameters_0p4NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class MeshIofxParameters_0p4 : public NvParameterized::NvParameters, public MeshIofxParameters_0p4NS::ParametersStruct +{ +public: + MeshIofxParameters_0p4(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~MeshIofxParameters_0p4(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("MeshIofxParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)4; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(MeshIofxParameters_0p4NS::checksum); + return MeshIofxParameters_0p4NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const MeshIofxParameters_0p4NS::ParametersStruct& parameters(void) const + { + MeshIofxParameters_0p4* tmpThis = const_cast<MeshIofxParameters_0p4*>(this); + return *(static_cast<MeshIofxParameters_0p4NS::ParametersStruct*>(tmpThis)); + } + + MeshIofxParameters_0p4NS::ParametersStruct& parameters(void) + { + return *(static_cast<MeshIofxParameters_0p4NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class MeshIofxParameters_0p4Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + MeshIofxParameters_0p4::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(MeshIofxParameters_0p4), MeshIofxParameters_0p4::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, MeshIofxParameters_0p4::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class MeshIofxParameters_0p4"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(MeshIofxParameters_0p4)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, MeshIofxParameters_0p4)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, MeshIofxParameters_0p4::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, MeshIofxParameters_0p4::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class MeshIofxParameters_0p4"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of MeshIofxParameters_0p4 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (MeshIofxParameters_0p4*)bufObj; + } + + virtual const char* getClassName() + { + return (MeshIofxParameters_0p4::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (MeshIofxParameters_0p4::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (MeshIofxParameters_0p4::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (MeshIofxParameters_0p4::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/ModuleIOFXLegacyRegistration.h b/APEX_1.4/module/iofx_legacy/include/autogen/ModuleIOFXLegacyRegistration.h new file mode 100644 index 00000000..ed0c211b --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/ModuleIOFXLegacyRegistration.h @@ -0,0 +1,430 @@ +/* + * 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. + */ + +#ifndef MODULE_MODULEIOFXLEGACYREGISTRATIONH_H +#define MODULE_MODULEIOFXLEGACYREGISTRATIONH_H + +#include "PsAllocator.h" +#include "NvRegistrationsForTraitsBase.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "PxAssert.h" +#include <stdint.h> + +// INCLUDE GENERATED FACTORIES +#include "IofxAssetParameters_0p0.h" +#include "IofxAssetParameters_0p1.h" +#include "MeshIofxParameters_0p0.h" +#include "MeshIofxParameters_0p1.h" +#include "MeshIofxParameters_0p2.h" +#include "MeshIofxParameters_0p3.h" +#include "OrientScaleAlongScreenVelocityModifierParams_0p0.h" +#include "RotationModifierParams_0p0.h" +#include "RotationModifierParams_0p1.h" +#include "SpriteIofxParameters_0p0.h" +#include "SpriteIofxParameters_0p1.h" +#include "SpriteIofxParameters_0p2.h" +#include "SpriteIofxParameters_0p3.h" +#include "IofxDebugRenderParams_0p0.h" +#include "IofxAssetParameters_0p2.h" +#include "MeshIofxParameters_0p4.h" +#include "SpriteIofxParameters_0p4.h" +#include "RotationModifierParams_0p2.h" +#include "SimpleScaleModifierParams_0p0.h" +#include "ScaleByMassModifierParams_0p0.h" +#include "RandomScaleModifierParams_0p0.h" +#include "ColorVsLifeModifierParams_0p0.h" +#include "ColorVsLifeCompositeModifierParams_0p0.h" +#include "InitialColorModifierParams_0p0.h" +#include "ScaleVsLifeModifierParams_0p0.h" +#include "ScaleVsLife3DModifierParams_0p0.h" +#include "ScaleVsLife2DModifierParams_0p0.h" +#include "ScaleVsDensityModifierParams_0p0.h" +#include "ScaleVsDensity3DModifierParams_0p0.h" +#include "ScaleVsDensity2DModifierParams_0p0.h" +#include "ScaleVsCameraDistanceModifierParams_0p0.h" +#include "ScaleVsCameraDistance3DModifierParams_0p0.h" +#include "ScaleVsCameraDistance2DModifierParams_0p0.h" +#include "ColorVsDensityModifierParams_0p0.h" +#include "ColorVsDensityCompositeModifierParams_0p0.h" +#include "SubtextureVsLifeModifierParams_0p0.h" +#include "OrientAlongVelocityModifierParams_0p0.h" +#include "ScaleAlongVelocityModifierParams_0p0.h" +#include "RandomSubtextureModifierParams_0p0.h" +#include "RandomRotationModifierParams_0p0.h" +#include "ViewDirectionSortingModifierParams_0p0.h" +#include "RotationRateModifierParams_0p0.h" +#include "RotationRateVsLifeModifierParams_0p0.h" +#include "OrientScaleAlongScreenVelocityModifierParams_0p1.h" +#include "ColorVsVelocityModifierParams_0p0.h" +#include "ColorVsVelocityCompositeModifierParams_0p0.h" +#include "ColorVsTemperatureModifierParams_0p0.h" +#include "ColorVsTemperatureCompositeModifierParams_0p0.h" +#include "ScaleVsTemperatureModifierParams_0p0.h" +#include "ScaleVsTemperature3DModifierParams_0p0.h" +#include "ScaleVsTemperature2DModifierParams_0p0.h" +#include "IofxModuleParameters_0p0.h" + + +// INCLUDE GENERATED CONVERSION +#include "ConversionIofxAssetParameters_0p0_0p1.h" +#include "ConversionIofxAssetParameters_0p1_0p2.h" +#include "ConversionMeshIofxParameters_0p0_0p1.h" +#include "ConversionMeshIofxParameters_0p1_0p2.h" +#include "ConversionMeshIofxParameters_0p2_0p3.h" +#include "ConversionMeshIofxParameters_0p3_0p4.h" +#include "ConversionOrientScaleAlongScreenVelocityModifierParams_0p0_0p1.h" +#include "ConversionRotationModifierParams_0p0_0p1.h" +#include "ConversionRotationModifierParams_0p1_0p2.h" +#include "ConversionSpriteIofxParameters_0p0_0p1.h" +#include "ConversionSpriteIofxParameters_0p1_0p2.h" +#include "ConversionSpriteIofxParameters_0p2_0p3.h" +#include "ConversionSpriteIofxParameters_0p3_0p4.h" + + +// global namespace + +class ModuleIOFXLegacyRegistration : public NvParameterized::RegistrationsForTraitsBase +{ +public: + static void invokeRegistration(NvParameterized::Traits* parameterizedTraits) + { + if (parameterizedTraits) + { + ModuleIOFXLegacyRegistration().registerAll(*parameterizedTraits); + } + } + + static void invokeUnregistration(NvParameterized::Traits* parameterizedTraits) + { + if (parameterizedTraits) + { + ModuleIOFXLegacyRegistration().unregisterAll(*parameterizedTraits); + } + } + + void registerAvailableFactories(NvParameterized::Traits& parameterizedTraits) + { + ::NvParameterized::Factory* factoriesToRegister[] = { +// REGISTER GENERATED FACTORIES + new nvidia::parameterized::IofxAssetParameters_0p0Factory(), + new nvidia::parameterized::IofxAssetParameters_0p1Factory(), + new nvidia::parameterized::MeshIofxParameters_0p0Factory(), + new nvidia::parameterized::MeshIofxParameters_0p1Factory(), + new nvidia::parameterized::MeshIofxParameters_0p2Factory(), + new nvidia::parameterized::MeshIofxParameters_0p3Factory(), + new nvidia::parameterized::OrientScaleAlongScreenVelocityModifierParams_0p0Factory(), + new nvidia::parameterized::RotationModifierParams_0p0Factory(), + new nvidia::parameterized::RotationModifierParams_0p1Factory(), + new nvidia::parameterized::SpriteIofxParameters_0p0Factory(), + new nvidia::parameterized::SpriteIofxParameters_0p1Factory(), + new nvidia::parameterized::SpriteIofxParameters_0p2Factory(), + new nvidia::parameterized::SpriteIofxParameters_0p3Factory(), + + }; + + for (size_t i = 0; i < sizeof(factoriesToRegister)/sizeof(factoriesToRegister[0]); ++i) + { + parameterizedTraits.registerFactory(*factoriesToRegister[i]); + } + } + + virtual void registerAvailableConverters(NvParameterized::Traits& parameterizedTraits) + { +// REGISTER GENERATED CONVERSION + { + typedef nvidia::apex::legacy::ConversionIofxAssetParameters_0p0_0p1 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionIofxAssetParameters_0p1_0p2 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionMeshIofxParameters_0p0_0p1 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionMeshIofxParameters_0p1_0p2 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionMeshIofxParameters_0p2_0p3 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionMeshIofxParameters_0p3_0p4 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionOrientScaleAlongScreenVelocityModifierParams_0p0_0p1 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionRotationModifierParams_0p0_0p1 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionRotationModifierParams_0p1_0p2 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionSpriteIofxParameters_0p0_0p1 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionSpriteIofxParameters_0p1_0p2 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionSpriteIofxParameters_0p2_0p3 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + { + typedef nvidia::apex::legacy::ConversionSpriteIofxParameters_0p3_0p4 ConverterToRegister; + parameterizedTraits.registerConversion(ConverterToRegister::TOldClass::staticClassName(), + ConverterToRegister::TOldClass::ClassVersion, + ConverterToRegister::TNewClass::ClassVersion, + *(ConverterToRegister::Create(¶meterizedTraits))); + } + + } + + void unregisterAvailableFactories(NvParameterized::Traits& parameterizedTraits) + { + struct FactoryDesc + { + const char* name; + uint32_t version; + }; + + ::NvParameterized::Factory* factoriesToUnregister[] = { +// UNREGISTER GENERATED FACTORIES + new nvidia::parameterized::IofxAssetParameters_0p0Factory(), + new nvidia::parameterized::IofxAssetParameters_0p1Factory(), + new nvidia::parameterized::MeshIofxParameters_0p0Factory(), + new nvidia::parameterized::MeshIofxParameters_0p1Factory(), + new nvidia::parameterized::MeshIofxParameters_0p2Factory(), + new nvidia::parameterized::MeshIofxParameters_0p3Factory(), + new nvidia::parameterized::OrientScaleAlongScreenVelocityModifierParams_0p0Factory(), + new nvidia::parameterized::RotationModifierParams_0p0Factory(), + new nvidia::parameterized::RotationModifierParams_0p1Factory(), + new nvidia::parameterized::SpriteIofxParameters_0p0Factory(), + new nvidia::parameterized::SpriteIofxParameters_0p1Factory(), + new nvidia::parameterized::SpriteIofxParameters_0p2Factory(), + new nvidia::parameterized::SpriteIofxParameters_0p3Factory(), + + }; + + for (size_t i = 0; i < sizeof(factoriesToUnregister)/sizeof(factoriesToUnregister[0]); ++i) + { + ::NvParameterized::Factory* removedFactory = parameterizedTraits.removeFactory(factoriesToUnregister[i]->getClassName(), factoriesToUnregister[i]->getVersion()); + if (!removedFactory) + { + PX_ASSERT_WITH_MESSAGE(0, "Factory can not be removed!"); + } + else + { + removedFactory->freeParameterDefinitionTable(¶meterizedTraits); + delete removedFactory; + delete factoriesToUnregister[i]; + } + } + } + + virtual void unregisterAvailableConverters(NvParameterized::Traits& parameterizedTraits) + { +// UNREGISTER GENERATED CONVERSION + { + typedef nvidia::apex::legacy::ConversionIofxAssetParameters_0p0_0p1 ConverterToUnregister; + ::NvParameterized::Conversion* removedConv = parameterizedTraits.removeConversion(ConverterToUnregister::TOldClass::staticClassName(), + ConverterToUnregister::TOldClass::ClassVersion, + ConverterToUnregister::TNewClass::ClassVersion); + if (removedConv) { + removedConv->~Conversion(); parameterizedTraits.free(removedConv); // PLACEMENT DELETE + } else { + // assert("Conversion was not found"); + } + } + { + typedef nvidia::apex::legacy::ConversionIofxAssetParameters_0p1_0p2 ConverterToUnregister; + ::NvParameterized::Conversion* removedConv = parameterizedTraits.removeConversion(ConverterToUnregister::TOldClass::staticClassName(), + ConverterToUnregister::TOldClass::ClassVersion, + ConverterToUnregister::TNewClass::ClassVersion); + if (removedConv) { + removedConv->~Conversion(); parameterizedTraits.free(removedConv); // PLACEMENT DELETE + } else { + // assert("Conversion was not found"); + } + } + { + typedef nvidia::apex::legacy::ConversionMeshIofxParameters_0p0_0p1 ConverterToUnregister; + ::NvParameterized::Conversion* removedConv = parameterizedTraits.removeConversion(ConverterToUnregister::TOldClass::staticClassName(), + ConverterToUnregister::TOldClass::ClassVersion, + ConverterToUnregister::TNewClass::ClassVersion); + if (removedConv) { + removedConv->~Conversion(); parameterizedTraits.free(removedConv); // PLACEMENT DELETE + } else { + // assert("Conversion was not found"); + } + } + { + typedef nvidia::apex::legacy::ConversionMeshIofxParameters_0p1_0p2 ConverterToUnregister; + ::NvParameterized::Conversion* removedConv = parameterizedTraits.removeConversion(ConverterToUnregister::TOldClass::staticClassName(), + ConverterToUnregister::TOldClass::ClassVersion, + ConverterToUnregister::TNewClass::ClassVersion); + if (removedConv) { + removedConv->~Conversion(); parameterizedTraits.free(removedConv); // PLACEMENT DELETE + } else { + // assert("Conversion was not found"); + } + } + { + typedef nvidia::apex::legacy::ConversionMeshIofxParameters_0p2_0p3 ConverterToUnregister; + ::NvParameterized::Conversion* removedConv = parameterizedTraits.removeConversion(ConverterToUnregister::TOldClass::staticClassName(), + ConverterToUnregister::TOldClass::ClassVersion, + ConverterToUnregister::TNewClass::ClassVersion); + if (removedConv) { + removedConv->~Conversion(); parameterizedTraits.free(removedConv); // PLACEMENT DELETE + } else { + // assert("Conversion was not found"); + } + } + { + typedef nvidia::apex::legacy::ConversionMeshIofxParameters_0p3_0p4 ConverterToUnregister; + ::NvParameterized::Conversion* removedConv = parameterizedTraits.removeConversion(ConverterToUnregister::TOldClass::staticClassName(), + ConverterToUnregister::TOldClass::ClassVersion, + ConverterToUnregister::TNewClass::ClassVersion); + if (removedConv) { + removedConv->~Conversion(); parameterizedTraits.free(removedConv); // PLACEMENT DELETE + } else { + // assert("Conversion was not found"); + } + } + { + typedef nvidia::apex::legacy::ConversionOrientScaleAlongScreenVelocityModifierParams_0p0_0p1 ConverterToUnregister; + ::NvParameterized::Conversion* removedConv = parameterizedTraits.removeConversion(ConverterToUnregister::TOldClass::staticClassName(), + ConverterToUnregister::TOldClass::ClassVersion, + ConverterToUnregister::TNewClass::ClassVersion); + if (removedConv) { + removedConv->~Conversion(); parameterizedTraits.free(removedConv); // PLACEMENT DELETE + } else { + // assert("Conversion was not found"); + } + } + { + typedef nvidia::apex::legacy::ConversionRotationModifierParams_0p0_0p1 ConverterToUnregister; + ::NvParameterized::Conversion* removedConv = parameterizedTraits.removeConversion(ConverterToUnregister::TOldClass::staticClassName(), + ConverterToUnregister::TOldClass::ClassVersion, + ConverterToUnregister::TNewClass::ClassVersion); + if (removedConv) { + removedConv->~Conversion(); parameterizedTraits.free(removedConv); // PLACEMENT DELETE + } else { + // assert("Conversion was not found"); + } + } + { + typedef nvidia::apex::legacy::ConversionRotationModifierParams_0p1_0p2 ConverterToUnregister; + ::NvParameterized::Conversion* removedConv = parameterizedTraits.removeConversion(ConverterToUnregister::TOldClass::staticClassName(), + ConverterToUnregister::TOldClass::ClassVersion, + ConverterToUnregister::TNewClass::ClassVersion); + if (removedConv) { + removedConv->~Conversion(); parameterizedTraits.free(removedConv); // PLACEMENT DELETE + } else { + // assert("Conversion was not found"); + } + } + { + typedef nvidia::apex::legacy::ConversionSpriteIofxParameters_0p0_0p1 ConverterToUnregister; + ::NvParameterized::Conversion* removedConv = parameterizedTraits.removeConversion(ConverterToUnregister::TOldClass::staticClassName(), + ConverterToUnregister::TOldClass::ClassVersion, + ConverterToUnregister::TNewClass::ClassVersion); + if (removedConv) { + removedConv->~Conversion(); parameterizedTraits.free(removedConv); // PLACEMENT DELETE + } else { + // assert("Conversion was not found"); + } + } + { + typedef nvidia::apex::legacy::ConversionSpriteIofxParameters_0p1_0p2 ConverterToUnregister; + ::NvParameterized::Conversion* removedConv = parameterizedTraits.removeConversion(ConverterToUnregister::TOldClass::staticClassName(), + ConverterToUnregister::TOldClass::ClassVersion, + ConverterToUnregister::TNewClass::ClassVersion); + if (removedConv) { + removedConv->~Conversion(); parameterizedTraits.free(removedConv); // PLACEMENT DELETE + } else { + // assert("Conversion was not found"); + } + } + { + typedef nvidia::apex::legacy::ConversionSpriteIofxParameters_0p2_0p3 ConverterToUnregister; + ::NvParameterized::Conversion* removedConv = parameterizedTraits.removeConversion(ConverterToUnregister::TOldClass::staticClassName(), + ConverterToUnregister::TOldClass::ClassVersion, + ConverterToUnregister::TNewClass::ClassVersion); + if (removedConv) { + removedConv->~Conversion(); parameterizedTraits.free(removedConv); // PLACEMENT DELETE + } else { + // assert("Conversion was not found"); + } + } + { + typedef nvidia::apex::legacy::ConversionSpriteIofxParameters_0p3_0p4 ConverterToUnregister; + ::NvParameterized::Conversion* removedConv = parameterizedTraits.removeConversion(ConverterToUnregister::TOldClass::staticClassName(), + ConverterToUnregister::TOldClass::ClassVersion, + ConverterToUnregister::TNewClass::ClassVersion); + if (removedConv) { + removedConv->~Conversion(); parameterizedTraits.free(removedConv); // PLACEMENT DELETE + } else { + // assert("Conversion was not found"); + } + } + + } + +}; + +// global namespace + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/OrientAlongVelocityModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/OrientAlongVelocityModifierParams_0p0.h new file mode 100644 index 00000000..eee5d40a --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/OrientAlongVelocityModifierParams_0p0.h @@ -0,0 +1,230 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_OrientAlongVelocityModifierParams_0p0_h +#define HEADER_OrientAlongVelocityModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace OrientAlongVelocityModifierParams_0p0NS +{ + + + +struct ParametersStruct +{ + + physx::PxVec3 modelForward; + +}; + +static const uint32_t checksum[] = { 0xbec07bae, 0xf99a7cd3, 0xa819cd23, 0xe75ba471, }; + +} // namespace OrientAlongVelocityModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class OrientAlongVelocityModifierParams_0p0 : public NvParameterized::NvParameters, public OrientAlongVelocityModifierParams_0p0NS::ParametersStruct +{ +public: + OrientAlongVelocityModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~OrientAlongVelocityModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("OrientAlongVelocityModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(OrientAlongVelocityModifierParams_0p0NS::checksum); + return OrientAlongVelocityModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const OrientAlongVelocityModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + OrientAlongVelocityModifierParams_0p0* tmpThis = const_cast<OrientAlongVelocityModifierParams_0p0*>(this); + return *(static_cast<OrientAlongVelocityModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + OrientAlongVelocityModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<OrientAlongVelocityModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class OrientAlongVelocityModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + OrientAlongVelocityModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(OrientAlongVelocityModifierParams_0p0), OrientAlongVelocityModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, OrientAlongVelocityModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class OrientAlongVelocityModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(OrientAlongVelocityModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, OrientAlongVelocityModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, OrientAlongVelocityModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, OrientAlongVelocityModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class OrientAlongVelocityModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of OrientAlongVelocityModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (OrientAlongVelocityModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (OrientAlongVelocityModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (OrientAlongVelocityModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (OrientAlongVelocityModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (OrientAlongVelocityModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/OrientScaleAlongScreenVelocityModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/OrientScaleAlongScreenVelocityModifierParams_0p0.h new file mode 100644 index 00000000..523d869f --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/OrientScaleAlongScreenVelocityModifierParams_0p0.h @@ -0,0 +1,230 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_OrientScaleAlongScreenVelocityModifierParams_0p0_h +#define HEADER_OrientScaleAlongScreenVelocityModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace OrientScaleAlongScreenVelocityModifierParams_0p0NS +{ + + + +struct ParametersStruct +{ + + float scalePerVelocity; + +}; + +static const uint32_t checksum[] = { 0xf08408dd, 0x7267c270, 0x443cb618, 0x54d60d9e, }; + +} // namespace OrientScaleAlongScreenVelocityModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class OrientScaleAlongScreenVelocityModifierParams_0p0 : public NvParameterized::NvParameters, public OrientScaleAlongScreenVelocityModifierParams_0p0NS::ParametersStruct +{ +public: + OrientScaleAlongScreenVelocityModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~OrientScaleAlongScreenVelocityModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("OrientScaleAlongScreenVelocityModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(OrientScaleAlongScreenVelocityModifierParams_0p0NS::checksum); + return OrientScaleAlongScreenVelocityModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const OrientScaleAlongScreenVelocityModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + OrientScaleAlongScreenVelocityModifierParams_0p0* tmpThis = const_cast<OrientScaleAlongScreenVelocityModifierParams_0p0*>(this); + return *(static_cast<OrientScaleAlongScreenVelocityModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + OrientScaleAlongScreenVelocityModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<OrientScaleAlongScreenVelocityModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class OrientScaleAlongScreenVelocityModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + OrientScaleAlongScreenVelocityModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(OrientScaleAlongScreenVelocityModifierParams_0p0), OrientScaleAlongScreenVelocityModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, OrientScaleAlongScreenVelocityModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class OrientScaleAlongScreenVelocityModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(OrientScaleAlongScreenVelocityModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, OrientScaleAlongScreenVelocityModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, OrientScaleAlongScreenVelocityModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, OrientScaleAlongScreenVelocityModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class OrientScaleAlongScreenVelocityModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of OrientScaleAlongScreenVelocityModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (OrientScaleAlongScreenVelocityModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (OrientScaleAlongScreenVelocityModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (OrientScaleAlongScreenVelocityModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (OrientScaleAlongScreenVelocityModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (OrientScaleAlongScreenVelocityModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/OrientScaleAlongScreenVelocityModifierParams_0p1.h b/APEX_1.4/module/iofx_legacy/include/autogen/OrientScaleAlongScreenVelocityModifierParams_0p1.h new file mode 100644 index 00000000..77babfbf --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/OrientScaleAlongScreenVelocityModifierParams_0p1.h @@ -0,0 +1,232 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_OrientScaleAlongScreenVelocityModifierParams_0p1_h +#define HEADER_OrientScaleAlongScreenVelocityModifierParams_0p1_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace OrientScaleAlongScreenVelocityModifierParams_0p1NS +{ + + + +struct ParametersStruct +{ + + float scalePerVelocity; + float scaleChangeLimit; + float scaleChangeDelay; + +}; + +static const uint32_t checksum[] = { 0x2a151b3c, 0x4a3faff3, 0xb9e6ebc2, 0x6ec77c7c, }; + +} // namespace OrientScaleAlongScreenVelocityModifierParams_0p1NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class OrientScaleAlongScreenVelocityModifierParams_0p1 : public NvParameterized::NvParameters, public OrientScaleAlongScreenVelocityModifierParams_0p1NS::ParametersStruct +{ +public: + OrientScaleAlongScreenVelocityModifierParams_0p1(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~OrientScaleAlongScreenVelocityModifierParams_0p1(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("OrientScaleAlongScreenVelocityModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)1; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(OrientScaleAlongScreenVelocityModifierParams_0p1NS::checksum); + return OrientScaleAlongScreenVelocityModifierParams_0p1NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const OrientScaleAlongScreenVelocityModifierParams_0p1NS::ParametersStruct& parameters(void) const + { + OrientScaleAlongScreenVelocityModifierParams_0p1* tmpThis = const_cast<OrientScaleAlongScreenVelocityModifierParams_0p1*>(this); + return *(static_cast<OrientScaleAlongScreenVelocityModifierParams_0p1NS::ParametersStruct*>(tmpThis)); + } + + OrientScaleAlongScreenVelocityModifierParams_0p1NS::ParametersStruct& parameters(void) + { + return *(static_cast<OrientScaleAlongScreenVelocityModifierParams_0p1NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class OrientScaleAlongScreenVelocityModifierParams_0p1Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + OrientScaleAlongScreenVelocityModifierParams_0p1::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(OrientScaleAlongScreenVelocityModifierParams_0p1), OrientScaleAlongScreenVelocityModifierParams_0p1::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, OrientScaleAlongScreenVelocityModifierParams_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class OrientScaleAlongScreenVelocityModifierParams_0p1"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(OrientScaleAlongScreenVelocityModifierParams_0p1)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, OrientScaleAlongScreenVelocityModifierParams_0p1)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, OrientScaleAlongScreenVelocityModifierParams_0p1::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, OrientScaleAlongScreenVelocityModifierParams_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class OrientScaleAlongScreenVelocityModifierParams_0p1"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of OrientScaleAlongScreenVelocityModifierParams_0p1 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (OrientScaleAlongScreenVelocityModifierParams_0p1*)bufObj; + } + + virtual const char* getClassName() + { + return (OrientScaleAlongScreenVelocityModifierParams_0p1::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (OrientScaleAlongScreenVelocityModifierParams_0p1::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (OrientScaleAlongScreenVelocityModifierParams_0p1::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (OrientScaleAlongScreenVelocityModifierParams_0p1::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/RandomRotationModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/RandomRotationModifierParams_0p0.h new file mode 100644 index 00000000..7da34e73 --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/RandomRotationModifierParams_0p0.h @@ -0,0 +1,231 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_RandomRotationModifierParams_0p0_h +#define HEADER_RandomRotationModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace RandomRotationModifierParams_0p0NS +{ + + + +struct ParametersStruct +{ + + float minRotation; + float maxRotation; + +}; + +static const uint32_t checksum[] = { 0xa4b51fa4, 0x02427ca9, 0xff6c9fc0, 0xe34b89b6, }; + +} // namespace RandomRotationModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class RandomRotationModifierParams_0p0 : public NvParameterized::NvParameters, public RandomRotationModifierParams_0p0NS::ParametersStruct +{ +public: + RandomRotationModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~RandomRotationModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("RandomRotationModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(RandomRotationModifierParams_0p0NS::checksum); + return RandomRotationModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const RandomRotationModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + RandomRotationModifierParams_0p0* tmpThis = const_cast<RandomRotationModifierParams_0p0*>(this); + return *(static_cast<RandomRotationModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + RandomRotationModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<RandomRotationModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class RandomRotationModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + RandomRotationModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(RandomRotationModifierParams_0p0), RandomRotationModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, RandomRotationModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class RandomRotationModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(RandomRotationModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, RandomRotationModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, RandomRotationModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, RandomRotationModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class RandomRotationModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of RandomRotationModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (RandomRotationModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (RandomRotationModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (RandomRotationModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (RandomRotationModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (RandomRotationModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/RandomScaleModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/RandomScaleModifierParams_0p0.h new file mode 100644 index 00000000..e88a18e7 --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/RandomScaleModifierParams_0p0.h @@ -0,0 +1,231 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_RandomScaleModifierParams_0p0_h +#define HEADER_RandomScaleModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace RandomScaleModifierParams_0p0NS +{ + + + +struct ParametersStruct +{ + + float minScaleFactor; + float maxScaleFactor; + +}; + +static const uint32_t checksum[] = { 0x393214a5, 0x3920927a, 0x6b466949, 0x38714cd7, }; + +} // namespace RandomScaleModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class RandomScaleModifierParams_0p0 : public NvParameterized::NvParameters, public RandomScaleModifierParams_0p0NS::ParametersStruct +{ +public: + RandomScaleModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~RandomScaleModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("RandomScaleModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(RandomScaleModifierParams_0p0NS::checksum); + return RandomScaleModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const RandomScaleModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + RandomScaleModifierParams_0p0* tmpThis = const_cast<RandomScaleModifierParams_0p0*>(this); + return *(static_cast<RandomScaleModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + RandomScaleModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<RandomScaleModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class RandomScaleModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + RandomScaleModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(RandomScaleModifierParams_0p0), RandomScaleModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, RandomScaleModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class RandomScaleModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(RandomScaleModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, RandomScaleModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, RandomScaleModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, RandomScaleModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class RandomScaleModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of RandomScaleModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (RandomScaleModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (RandomScaleModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (RandomScaleModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (RandomScaleModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (RandomScaleModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/RandomSubtextureModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/RandomSubtextureModifierParams_0p0.h new file mode 100644 index 00000000..03f72c7c --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/RandomSubtextureModifierParams_0p0.h @@ -0,0 +1,231 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_RandomSubtextureModifierParams_0p0_h +#define HEADER_RandomSubtextureModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace RandomSubtextureModifierParams_0p0NS +{ + + + +struct ParametersStruct +{ + + float minSubtexture; + float maxSubtexture; + +}; + +static const uint32_t checksum[] = { 0x08f8796a, 0xa2e2f9c5, 0x8997cd3a, 0xc27f7e3a, }; + +} // namespace RandomSubtextureModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class RandomSubtextureModifierParams_0p0 : public NvParameterized::NvParameters, public RandomSubtextureModifierParams_0p0NS::ParametersStruct +{ +public: + RandomSubtextureModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~RandomSubtextureModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("RandomSubtextureModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(RandomSubtextureModifierParams_0p0NS::checksum); + return RandomSubtextureModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const RandomSubtextureModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + RandomSubtextureModifierParams_0p0* tmpThis = const_cast<RandomSubtextureModifierParams_0p0*>(this); + return *(static_cast<RandomSubtextureModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + RandomSubtextureModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<RandomSubtextureModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class RandomSubtextureModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + RandomSubtextureModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(RandomSubtextureModifierParams_0p0), RandomSubtextureModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, RandomSubtextureModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class RandomSubtextureModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(RandomSubtextureModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, RandomSubtextureModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, RandomSubtextureModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, RandomSubtextureModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class RandomSubtextureModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of RandomSubtextureModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (RandomSubtextureModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (RandomSubtextureModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (RandomSubtextureModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (RandomSubtextureModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (RandomSubtextureModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/RotationModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/RotationModifierParams_0p0.h new file mode 100644 index 00000000..36377fd5 --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/RotationModifierParams_0p0.h @@ -0,0 +1,234 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_RotationModifierParams_0p0_h +#define HEADER_RotationModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace RotationModifierParams_0p0NS +{ + + + +struct ParametersStruct +{ + + const char* rollType; + float maxRotationRatePerSec; + float maxSettleRatePerSec; + float inAirRotationMultiplier; + float collisionRotationMultiplier; + +}; + +static const uint32_t checksum[] = { 0x962242b0, 0x08c5a118, 0x531f8120, 0xb59848e7, }; + +} // namespace RotationModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class RotationModifierParams_0p0 : public NvParameterized::NvParameters, public RotationModifierParams_0p0NS::ParametersStruct +{ +public: + RotationModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~RotationModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("RotationModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(RotationModifierParams_0p0NS::checksum); + return RotationModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const RotationModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + RotationModifierParams_0p0* tmpThis = const_cast<RotationModifierParams_0p0*>(this); + return *(static_cast<RotationModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + RotationModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<RotationModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class RotationModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + RotationModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(RotationModifierParams_0p0), RotationModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, RotationModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class RotationModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(RotationModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, RotationModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, RotationModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, RotationModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class RotationModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of RotationModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (RotationModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (RotationModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (RotationModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (RotationModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (RotationModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/RotationModifierParams_0p1.h b/APEX_1.4/module/iofx_legacy/include/autogen/RotationModifierParams_0p1.h new file mode 100644 index 00000000..936446aa --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/RotationModifierParams_0p1.h @@ -0,0 +1,234 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_RotationModifierParams_0p1_h +#define HEADER_RotationModifierParams_0p1_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace RotationModifierParams_0p1NS +{ + + + +struct ParametersStruct +{ + + const char* rollType; + float maxRotationRatePerSec; + float maxSettleRatePerSec; + float inAirRotationMultiplier; + float collisionRotationMultiplier; + +}; + +static const uint32_t checksum[] = { 0xcf3b33a5, 0x090197ba, 0xe9b4a8b5, 0xc5d33f94, }; + +} // namespace RotationModifierParams_0p1NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class RotationModifierParams_0p1 : public NvParameterized::NvParameters, public RotationModifierParams_0p1NS::ParametersStruct +{ +public: + RotationModifierParams_0p1(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~RotationModifierParams_0p1(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("RotationModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)1; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(RotationModifierParams_0p1NS::checksum); + return RotationModifierParams_0p1NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const RotationModifierParams_0p1NS::ParametersStruct& parameters(void) const + { + RotationModifierParams_0p1* tmpThis = const_cast<RotationModifierParams_0p1*>(this); + return *(static_cast<RotationModifierParams_0p1NS::ParametersStruct*>(tmpThis)); + } + + RotationModifierParams_0p1NS::ParametersStruct& parameters(void) + { + return *(static_cast<RotationModifierParams_0p1NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class RotationModifierParams_0p1Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + RotationModifierParams_0p1::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(RotationModifierParams_0p1), RotationModifierParams_0p1::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, RotationModifierParams_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class RotationModifierParams_0p1"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(RotationModifierParams_0p1)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, RotationModifierParams_0p1)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, RotationModifierParams_0p1::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, RotationModifierParams_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class RotationModifierParams_0p1"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of RotationModifierParams_0p1 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (RotationModifierParams_0p1*)bufObj; + } + + virtual const char* getClassName() + { + return (RotationModifierParams_0p1::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (RotationModifierParams_0p1::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (RotationModifierParams_0p1::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (RotationModifierParams_0p1::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/RotationModifierParams_0p2.h b/APEX_1.4/module/iofx_legacy/include/autogen/RotationModifierParams_0p2.h new file mode 100644 index 00000000..87512f87 --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/RotationModifierParams_0p2.h @@ -0,0 +1,235 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_RotationModifierParams_0p2_h +#define HEADER_RotationModifierParams_0p2_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace RotationModifierParams_0p2NS +{ + + + +struct ParametersStruct +{ + + const char* rollType; + float maxRotationRatePerSec; + float maxSettleRatePerSec; + float inAirRotationMultiplier; + float collisionRotationMultiplier; + bool includeVerticalDirection; + +}; + +static const uint32_t checksum[] = { 0xd2cf5d27, 0xa1732803, 0xcaa84b84, 0x18ed9e7c, }; + +} // namespace RotationModifierParams_0p2NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class RotationModifierParams_0p2 : public NvParameterized::NvParameters, public RotationModifierParams_0p2NS::ParametersStruct +{ +public: + RotationModifierParams_0p2(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~RotationModifierParams_0p2(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("RotationModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)2; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(RotationModifierParams_0p2NS::checksum); + return RotationModifierParams_0p2NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const RotationModifierParams_0p2NS::ParametersStruct& parameters(void) const + { + RotationModifierParams_0p2* tmpThis = const_cast<RotationModifierParams_0p2*>(this); + return *(static_cast<RotationModifierParams_0p2NS::ParametersStruct*>(tmpThis)); + } + + RotationModifierParams_0p2NS::ParametersStruct& parameters(void) + { + return *(static_cast<RotationModifierParams_0p2NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class RotationModifierParams_0p2Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + RotationModifierParams_0p2::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(RotationModifierParams_0p2), RotationModifierParams_0p2::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, RotationModifierParams_0p2::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class RotationModifierParams_0p2"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(RotationModifierParams_0p2)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, RotationModifierParams_0p2)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, RotationModifierParams_0p2::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, RotationModifierParams_0p2::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class RotationModifierParams_0p2"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of RotationModifierParams_0p2 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (RotationModifierParams_0p2*)bufObj; + } + + virtual const char* getClassName() + { + return (RotationModifierParams_0p2::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (RotationModifierParams_0p2::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (RotationModifierParams_0p2::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (RotationModifierParams_0p2::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/RotationRateModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/RotationRateModifierParams_0p0.h new file mode 100644 index 00000000..742f374a --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/RotationRateModifierParams_0p0.h @@ -0,0 +1,230 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_RotationRateModifierParams_0p0_h +#define HEADER_RotationRateModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace RotationRateModifierParams_0p0NS +{ + + + +struct ParametersStruct +{ + + float rotationRate; + +}; + +static const uint32_t checksum[] = { 0x250808c0, 0x4e8042ab, 0x9e0339e9, 0x3130e44d, }; + +} // namespace RotationRateModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class RotationRateModifierParams_0p0 : public NvParameterized::NvParameters, public RotationRateModifierParams_0p0NS::ParametersStruct +{ +public: + RotationRateModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~RotationRateModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("RotationRateModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(RotationRateModifierParams_0p0NS::checksum); + return RotationRateModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const RotationRateModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + RotationRateModifierParams_0p0* tmpThis = const_cast<RotationRateModifierParams_0p0*>(this); + return *(static_cast<RotationRateModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + RotationRateModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<RotationRateModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class RotationRateModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + RotationRateModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(RotationRateModifierParams_0p0), RotationRateModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, RotationRateModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class RotationRateModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(RotationRateModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, RotationRateModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, RotationRateModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, RotationRateModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class RotationRateModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of RotationRateModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (RotationRateModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (RotationRateModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (RotationRateModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (RotationRateModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (RotationRateModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/RotationRateVsLifeModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/RotationRateVsLifeModifierParams_0p0.h new file mode 100644 index 00000000..15b0e896 --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/RotationRateVsLifeModifierParams_0p0.h @@ -0,0 +1,244 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_RotationRateVsLifeModifierParams_0p0_h +#define HEADER_RotationRateVsLifeModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace RotationRateVsLifeModifierParams_0p0NS +{ + +struct vec2_Type; + +struct vec2_DynamicArray1D_Type +{ + vec2_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct vec2_Type +{ + float x; + float y; +}; + +struct ParametersStruct +{ + + vec2_DynamicArray1D_Type controlPoints; + +}; + +static const uint32_t checksum[] = { 0x704cda91, 0xcc96c538, 0x11f054f6, 0xa3fc1c9e, }; + +} // namespace RotationRateVsLifeModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class RotationRateVsLifeModifierParams_0p0 : public NvParameterized::NvParameters, public RotationRateVsLifeModifierParams_0p0NS::ParametersStruct +{ +public: + RotationRateVsLifeModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~RotationRateVsLifeModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("RotationRateVsLifeModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(RotationRateVsLifeModifierParams_0p0NS::checksum); + return RotationRateVsLifeModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const RotationRateVsLifeModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + RotationRateVsLifeModifierParams_0p0* tmpThis = const_cast<RotationRateVsLifeModifierParams_0p0*>(this); + return *(static_cast<RotationRateVsLifeModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + RotationRateVsLifeModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<RotationRateVsLifeModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class RotationRateVsLifeModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + RotationRateVsLifeModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(RotationRateVsLifeModifierParams_0p0), RotationRateVsLifeModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, RotationRateVsLifeModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class RotationRateVsLifeModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(RotationRateVsLifeModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, RotationRateVsLifeModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, RotationRateVsLifeModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, RotationRateVsLifeModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class RotationRateVsLifeModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of RotationRateVsLifeModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (RotationRateVsLifeModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (RotationRateVsLifeModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (RotationRateVsLifeModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (RotationRateVsLifeModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (RotationRateVsLifeModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/ScaleAlongVelocityModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/ScaleAlongVelocityModifierParams_0p0.h new file mode 100644 index 00000000..01cd4432 --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/ScaleAlongVelocityModifierParams_0p0.h @@ -0,0 +1,230 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_ScaleAlongVelocityModifierParams_0p0_h +#define HEADER_ScaleAlongVelocityModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace ScaleAlongVelocityModifierParams_0p0NS +{ + + + +struct ParametersStruct +{ + + float scaleFactor; + +}; + +static const uint32_t checksum[] = { 0x3c361211, 0x221d234b, 0x639bf597, 0xcca2608b, }; + +} // namespace ScaleAlongVelocityModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ScaleAlongVelocityModifierParams_0p0 : public NvParameterized::NvParameters, public ScaleAlongVelocityModifierParams_0p0NS::ParametersStruct +{ +public: + ScaleAlongVelocityModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ScaleAlongVelocityModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ScaleAlongVelocityModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(ScaleAlongVelocityModifierParams_0p0NS::checksum); + return ScaleAlongVelocityModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ScaleAlongVelocityModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + ScaleAlongVelocityModifierParams_0p0* tmpThis = const_cast<ScaleAlongVelocityModifierParams_0p0*>(this); + return *(static_cast<ScaleAlongVelocityModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + ScaleAlongVelocityModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ScaleAlongVelocityModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class ScaleAlongVelocityModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ScaleAlongVelocityModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ScaleAlongVelocityModifierParams_0p0), ScaleAlongVelocityModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ScaleAlongVelocityModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ScaleAlongVelocityModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ScaleAlongVelocityModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ScaleAlongVelocityModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ScaleAlongVelocityModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ScaleAlongVelocityModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ScaleAlongVelocityModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ScaleAlongVelocityModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (ScaleAlongVelocityModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ScaleAlongVelocityModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ScaleAlongVelocityModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ScaleAlongVelocityModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ScaleAlongVelocityModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/ScaleByMassModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/ScaleByMassModifierParams_0p0.h new file mode 100644 index 00000000..ef98a5b5 --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/ScaleByMassModifierParams_0p0.h @@ -0,0 +1,229 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_ScaleByMassModifierParams_0p0_h +#define HEADER_ScaleByMassModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace ScaleByMassModifierParams_0p0NS +{ + + + +struct ParametersStruct +{ + + +}; + +static const uint32_t checksum[] = { 0x0164ba51, 0x109896dc, 0x1c51ccab, 0xc0cebd7a, }; + +} // namespace ScaleByMassModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ScaleByMassModifierParams_0p0 : public NvParameterized::NvParameters, public ScaleByMassModifierParams_0p0NS::ParametersStruct +{ +public: + ScaleByMassModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ScaleByMassModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ScaleByMassModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(ScaleByMassModifierParams_0p0NS::checksum); + return ScaleByMassModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ScaleByMassModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + ScaleByMassModifierParams_0p0* tmpThis = const_cast<ScaleByMassModifierParams_0p0*>(this); + return *(static_cast<ScaleByMassModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + ScaleByMassModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ScaleByMassModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class ScaleByMassModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ScaleByMassModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ScaleByMassModifierParams_0p0), ScaleByMassModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ScaleByMassModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ScaleByMassModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ScaleByMassModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ScaleByMassModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ScaleByMassModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ScaleByMassModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ScaleByMassModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ScaleByMassModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (ScaleByMassModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ScaleByMassModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ScaleByMassModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ScaleByMassModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ScaleByMassModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsCameraDistance2DModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsCameraDistance2DModifierParams_0p0.h new file mode 100644 index 00000000..cdec49f6 --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsCameraDistance2DModifierParams_0p0.h @@ -0,0 +1,244 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_ScaleVsCameraDistance2DModifierParams_0p0_h +#define HEADER_ScaleVsCameraDistance2DModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace ScaleVsCameraDistance2DModifierParams_0p0NS +{ + +struct scaleCameraDistanceStruct_Type; + +struct scaleCameraDistanceStruct_DynamicArray1D_Type +{ + scaleCameraDistanceStruct_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct scaleCameraDistanceStruct_Type +{ + float cameraDistance; + physx::PxVec2 scale; +}; + +struct ParametersStruct +{ + + scaleCameraDistanceStruct_DynamicArray1D_Type controlPoints; + +}; + +static const uint32_t checksum[] = { 0xa1847ef6, 0x35e96cc6, 0xd3de86e9, 0x977d685a, }; + +} // namespace ScaleVsCameraDistance2DModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ScaleVsCameraDistance2DModifierParams_0p0 : public NvParameterized::NvParameters, public ScaleVsCameraDistance2DModifierParams_0p0NS::ParametersStruct +{ +public: + ScaleVsCameraDistance2DModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ScaleVsCameraDistance2DModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ScaleVsCameraDistance2DModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(ScaleVsCameraDistance2DModifierParams_0p0NS::checksum); + return ScaleVsCameraDistance2DModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ScaleVsCameraDistance2DModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + ScaleVsCameraDistance2DModifierParams_0p0* tmpThis = const_cast<ScaleVsCameraDistance2DModifierParams_0p0*>(this); + return *(static_cast<ScaleVsCameraDistance2DModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + ScaleVsCameraDistance2DModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ScaleVsCameraDistance2DModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class ScaleVsCameraDistance2DModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ScaleVsCameraDistance2DModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ScaleVsCameraDistance2DModifierParams_0p0), ScaleVsCameraDistance2DModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ScaleVsCameraDistance2DModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ScaleVsCameraDistance2DModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ScaleVsCameraDistance2DModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ScaleVsCameraDistance2DModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ScaleVsCameraDistance2DModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ScaleVsCameraDistance2DModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ScaleVsCameraDistance2DModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ScaleVsCameraDistance2DModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (ScaleVsCameraDistance2DModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ScaleVsCameraDistance2DModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ScaleVsCameraDistance2DModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ScaleVsCameraDistance2DModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ScaleVsCameraDistance2DModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsCameraDistance3DModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsCameraDistance3DModifierParams_0p0.h new file mode 100644 index 00000000..6317bb7c --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsCameraDistance3DModifierParams_0p0.h @@ -0,0 +1,244 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_ScaleVsCameraDistance3DModifierParams_0p0_h +#define HEADER_ScaleVsCameraDistance3DModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace ScaleVsCameraDistance3DModifierParams_0p0NS +{ + +struct scaleCameraDistanceStruct_Type; + +struct scaleCameraDistanceStruct_DynamicArray1D_Type +{ + scaleCameraDistanceStruct_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct scaleCameraDistanceStruct_Type +{ + float cameraDistance; + physx::PxVec3 scale; +}; + +struct ParametersStruct +{ + + scaleCameraDistanceStruct_DynamicArray1D_Type controlPoints; + +}; + +static const uint32_t checksum[] = { 0x661390b6, 0x5566a427, 0x6507630a, 0x6aff3b6e, }; + +} // namespace ScaleVsCameraDistance3DModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ScaleVsCameraDistance3DModifierParams_0p0 : public NvParameterized::NvParameters, public ScaleVsCameraDistance3DModifierParams_0p0NS::ParametersStruct +{ +public: + ScaleVsCameraDistance3DModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ScaleVsCameraDistance3DModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ScaleVsCameraDistance3DModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(ScaleVsCameraDistance3DModifierParams_0p0NS::checksum); + return ScaleVsCameraDistance3DModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ScaleVsCameraDistance3DModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + ScaleVsCameraDistance3DModifierParams_0p0* tmpThis = const_cast<ScaleVsCameraDistance3DModifierParams_0p0*>(this); + return *(static_cast<ScaleVsCameraDistance3DModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + ScaleVsCameraDistance3DModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ScaleVsCameraDistance3DModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class ScaleVsCameraDistance3DModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ScaleVsCameraDistance3DModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ScaleVsCameraDistance3DModifierParams_0p0), ScaleVsCameraDistance3DModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ScaleVsCameraDistance3DModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ScaleVsCameraDistance3DModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ScaleVsCameraDistance3DModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ScaleVsCameraDistance3DModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ScaleVsCameraDistance3DModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ScaleVsCameraDistance3DModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ScaleVsCameraDistance3DModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ScaleVsCameraDistance3DModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (ScaleVsCameraDistance3DModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ScaleVsCameraDistance3DModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ScaleVsCameraDistance3DModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ScaleVsCameraDistance3DModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ScaleVsCameraDistance3DModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsCameraDistanceModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsCameraDistanceModifierParams_0p0.h new file mode 100644 index 00000000..3f4a073f --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsCameraDistanceModifierParams_0p0.h @@ -0,0 +1,245 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_ScaleVsCameraDistanceModifierParams_0p0_h +#define HEADER_ScaleVsCameraDistanceModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace ScaleVsCameraDistanceModifierParams_0p0NS +{ + +struct vec2_Type; + +struct vec2_DynamicArray1D_Type +{ + vec2_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct vec2_Type +{ + float x; + float y; +}; + +struct ParametersStruct +{ + + const char* scaleAxis; + vec2_DynamicArray1D_Type controlPoints; + +}; + +static const uint32_t checksum[] = { 0x2c4aba3d, 0xa1d08f53, 0xfb08d5f3, 0xe12927dd, }; + +} // namespace ScaleVsCameraDistanceModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ScaleVsCameraDistanceModifierParams_0p0 : public NvParameterized::NvParameters, public ScaleVsCameraDistanceModifierParams_0p0NS::ParametersStruct +{ +public: + ScaleVsCameraDistanceModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ScaleVsCameraDistanceModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ScaleVsCameraDistanceModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(ScaleVsCameraDistanceModifierParams_0p0NS::checksum); + return ScaleVsCameraDistanceModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ScaleVsCameraDistanceModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + ScaleVsCameraDistanceModifierParams_0p0* tmpThis = const_cast<ScaleVsCameraDistanceModifierParams_0p0*>(this); + return *(static_cast<ScaleVsCameraDistanceModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + ScaleVsCameraDistanceModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ScaleVsCameraDistanceModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class ScaleVsCameraDistanceModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ScaleVsCameraDistanceModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ScaleVsCameraDistanceModifierParams_0p0), ScaleVsCameraDistanceModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ScaleVsCameraDistanceModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ScaleVsCameraDistanceModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ScaleVsCameraDistanceModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ScaleVsCameraDistanceModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ScaleVsCameraDistanceModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ScaleVsCameraDistanceModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ScaleVsCameraDistanceModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ScaleVsCameraDistanceModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (ScaleVsCameraDistanceModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ScaleVsCameraDistanceModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ScaleVsCameraDistanceModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ScaleVsCameraDistanceModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ScaleVsCameraDistanceModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsDensity2DModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsDensity2DModifierParams_0p0.h new file mode 100644 index 00000000..e0749ab2 --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsDensity2DModifierParams_0p0.h @@ -0,0 +1,244 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_ScaleVsDensity2DModifierParams_0p0_h +#define HEADER_ScaleVsDensity2DModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace ScaleVsDensity2DModifierParams_0p0NS +{ + +struct scaleDensityStruct_Type; + +struct scaleDensityStruct_DynamicArray1D_Type +{ + scaleDensityStruct_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct scaleDensityStruct_Type +{ + float density; + physx::PxVec2 scale; +}; + +struct ParametersStruct +{ + + scaleDensityStruct_DynamicArray1D_Type controlPoints; + +}; + +static const uint32_t checksum[] = { 0x67c772d8, 0x2f573535, 0xdd3f3715, 0xea4c896d, }; + +} // namespace ScaleVsDensity2DModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ScaleVsDensity2DModifierParams_0p0 : public NvParameterized::NvParameters, public ScaleVsDensity2DModifierParams_0p0NS::ParametersStruct +{ +public: + ScaleVsDensity2DModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ScaleVsDensity2DModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ScaleVsDensity2DModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(ScaleVsDensity2DModifierParams_0p0NS::checksum); + return ScaleVsDensity2DModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ScaleVsDensity2DModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + ScaleVsDensity2DModifierParams_0p0* tmpThis = const_cast<ScaleVsDensity2DModifierParams_0p0*>(this); + return *(static_cast<ScaleVsDensity2DModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + ScaleVsDensity2DModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ScaleVsDensity2DModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class ScaleVsDensity2DModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ScaleVsDensity2DModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ScaleVsDensity2DModifierParams_0p0), ScaleVsDensity2DModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ScaleVsDensity2DModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ScaleVsDensity2DModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ScaleVsDensity2DModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ScaleVsDensity2DModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ScaleVsDensity2DModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ScaleVsDensity2DModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ScaleVsDensity2DModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ScaleVsDensity2DModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (ScaleVsDensity2DModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ScaleVsDensity2DModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ScaleVsDensity2DModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ScaleVsDensity2DModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ScaleVsDensity2DModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsDensity3DModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsDensity3DModifierParams_0p0.h new file mode 100644 index 00000000..408036b1 --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsDensity3DModifierParams_0p0.h @@ -0,0 +1,244 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_ScaleVsDensity3DModifierParams_0p0_h +#define HEADER_ScaleVsDensity3DModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace ScaleVsDensity3DModifierParams_0p0NS +{ + +struct scaleDensityStruct_Type; + +struct scaleDensityStruct_DynamicArray1D_Type +{ + scaleDensityStruct_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct scaleDensityStruct_Type +{ + float density; + physx::PxVec3 scale; +}; + +struct ParametersStruct +{ + + scaleDensityStruct_DynamicArray1D_Type controlPoints; + +}; + +static const uint32_t checksum[] = { 0x0dddf0d6, 0x459996e0, 0x32b4d7ce, 0x8e0d1b52, }; + +} // namespace ScaleVsDensity3DModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ScaleVsDensity3DModifierParams_0p0 : public NvParameterized::NvParameters, public ScaleVsDensity3DModifierParams_0p0NS::ParametersStruct +{ +public: + ScaleVsDensity3DModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ScaleVsDensity3DModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ScaleVsDensity3DModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(ScaleVsDensity3DModifierParams_0p0NS::checksum); + return ScaleVsDensity3DModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ScaleVsDensity3DModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + ScaleVsDensity3DModifierParams_0p0* tmpThis = const_cast<ScaleVsDensity3DModifierParams_0p0*>(this); + return *(static_cast<ScaleVsDensity3DModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + ScaleVsDensity3DModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ScaleVsDensity3DModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class ScaleVsDensity3DModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ScaleVsDensity3DModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ScaleVsDensity3DModifierParams_0p0), ScaleVsDensity3DModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ScaleVsDensity3DModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ScaleVsDensity3DModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ScaleVsDensity3DModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ScaleVsDensity3DModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ScaleVsDensity3DModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ScaleVsDensity3DModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ScaleVsDensity3DModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ScaleVsDensity3DModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (ScaleVsDensity3DModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ScaleVsDensity3DModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ScaleVsDensity3DModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ScaleVsDensity3DModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ScaleVsDensity3DModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsDensityModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsDensityModifierParams_0p0.h new file mode 100644 index 00000000..51793573 --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsDensityModifierParams_0p0.h @@ -0,0 +1,245 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_ScaleVsDensityModifierParams_0p0_h +#define HEADER_ScaleVsDensityModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace ScaleVsDensityModifierParams_0p0NS +{ + +struct vec2_Type; + +struct vec2_DynamicArray1D_Type +{ + vec2_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct vec2_Type +{ + float x; + float y; +}; + +struct ParametersStruct +{ + + const char* scaleAxis; + vec2_DynamicArray1D_Type controlPoints; + +}; + +static const uint32_t checksum[] = { 0x6f22ca8e, 0x609b223e, 0x81d9cacc, 0x9ca002f4, }; + +} // namespace ScaleVsDensityModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ScaleVsDensityModifierParams_0p0 : public NvParameterized::NvParameters, public ScaleVsDensityModifierParams_0p0NS::ParametersStruct +{ +public: + ScaleVsDensityModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ScaleVsDensityModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ScaleVsDensityModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(ScaleVsDensityModifierParams_0p0NS::checksum); + return ScaleVsDensityModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ScaleVsDensityModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + ScaleVsDensityModifierParams_0p0* tmpThis = const_cast<ScaleVsDensityModifierParams_0p0*>(this); + return *(static_cast<ScaleVsDensityModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + ScaleVsDensityModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ScaleVsDensityModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class ScaleVsDensityModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ScaleVsDensityModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ScaleVsDensityModifierParams_0p0), ScaleVsDensityModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ScaleVsDensityModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ScaleVsDensityModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ScaleVsDensityModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ScaleVsDensityModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ScaleVsDensityModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ScaleVsDensityModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ScaleVsDensityModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ScaleVsDensityModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (ScaleVsDensityModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ScaleVsDensityModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ScaleVsDensityModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ScaleVsDensityModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ScaleVsDensityModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsLife2DModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsLife2DModifierParams_0p0.h new file mode 100644 index 00000000..aa412f04 --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsLife2DModifierParams_0p0.h @@ -0,0 +1,244 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_ScaleVsLife2DModifierParams_0p0_h +#define HEADER_ScaleVsLife2DModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace ScaleVsLife2DModifierParams_0p0NS +{ + +struct scaleLifeStruct_Type; + +struct scaleLifeStruct_DynamicArray1D_Type +{ + scaleLifeStruct_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct scaleLifeStruct_Type +{ + float lifeRemaining; + physx::PxVec2 scale; +}; + +struct ParametersStruct +{ + + scaleLifeStruct_DynamicArray1D_Type controlPoints; + +}; + +static const uint32_t checksum[] = { 0x6db3956a, 0xa58c530d, 0xff315c26, 0xddb49833, }; + +} // namespace ScaleVsLife2DModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ScaleVsLife2DModifierParams_0p0 : public NvParameterized::NvParameters, public ScaleVsLife2DModifierParams_0p0NS::ParametersStruct +{ +public: + ScaleVsLife2DModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ScaleVsLife2DModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ScaleVsLife2DModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(ScaleVsLife2DModifierParams_0p0NS::checksum); + return ScaleVsLife2DModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ScaleVsLife2DModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + ScaleVsLife2DModifierParams_0p0* tmpThis = const_cast<ScaleVsLife2DModifierParams_0p0*>(this); + return *(static_cast<ScaleVsLife2DModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + ScaleVsLife2DModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ScaleVsLife2DModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class ScaleVsLife2DModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ScaleVsLife2DModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ScaleVsLife2DModifierParams_0p0), ScaleVsLife2DModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ScaleVsLife2DModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ScaleVsLife2DModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ScaleVsLife2DModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ScaleVsLife2DModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ScaleVsLife2DModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ScaleVsLife2DModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ScaleVsLife2DModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ScaleVsLife2DModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (ScaleVsLife2DModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ScaleVsLife2DModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ScaleVsLife2DModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ScaleVsLife2DModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ScaleVsLife2DModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsLife3DModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsLife3DModifierParams_0p0.h new file mode 100644 index 00000000..02fc6b6b --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsLife3DModifierParams_0p0.h @@ -0,0 +1,244 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_ScaleVsLife3DModifierParams_0p0_h +#define HEADER_ScaleVsLife3DModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace ScaleVsLife3DModifierParams_0p0NS +{ + +struct scaleLifeStruct_Type; + +struct scaleLifeStruct_DynamicArray1D_Type +{ + scaleLifeStruct_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct scaleLifeStruct_Type +{ + float lifeRemaining; + physx::PxVec3 scale; +}; + +struct ParametersStruct +{ + + scaleLifeStruct_DynamicArray1D_Type controlPoints; + +}; + +static const uint32_t checksum[] = { 0xbaddcfda, 0x2f4deda9, 0x2c23286e, 0xf19659fd, }; + +} // namespace ScaleVsLife3DModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ScaleVsLife3DModifierParams_0p0 : public NvParameterized::NvParameters, public ScaleVsLife3DModifierParams_0p0NS::ParametersStruct +{ +public: + ScaleVsLife3DModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ScaleVsLife3DModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ScaleVsLife3DModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(ScaleVsLife3DModifierParams_0p0NS::checksum); + return ScaleVsLife3DModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ScaleVsLife3DModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + ScaleVsLife3DModifierParams_0p0* tmpThis = const_cast<ScaleVsLife3DModifierParams_0p0*>(this); + return *(static_cast<ScaleVsLife3DModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + ScaleVsLife3DModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ScaleVsLife3DModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class ScaleVsLife3DModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ScaleVsLife3DModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ScaleVsLife3DModifierParams_0p0), ScaleVsLife3DModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ScaleVsLife3DModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ScaleVsLife3DModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ScaleVsLife3DModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ScaleVsLife3DModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ScaleVsLife3DModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ScaleVsLife3DModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ScaleVsLife3DModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ScaleVsLife3DModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (ScaleVsLife3DModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ScaleVsLife3DModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ScaleVsLife3DModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ScaleVsLife3DModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ScaleVsLife3DModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsLifeModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsLifeModifierParams_0p0.h new file mode 100644 index 00000000..f3f93baa --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsLifeModifierParams_0p0.h @@ -0,0 +1,245 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_ScaleVsLifeModifierParams_0p0_h +#define HEADER_ScaleVsLifeModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace ScaleVsLifeModifierParams_0p0NS +{ + +struct vec2_Type; + +struct vec2_DynamicArray1D_Type +{ + vec2_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct vec2_Type +{ + float x; + float y; +}; + +struct ParametersStruct +{ + + const char* scaleAxis; + vec2_DynamicArray1D_Type controlPoints; + +}; + +static const uint32_t checksum[] = { 0xfed4c822, 0x131f7e2d, 0x1bedc356, 0xcbf77236, }; + +} // namespace ScaleVsLifeModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ScaleVsLifeModifierParams_0p0 : public NvParameterized::NvParameters, public ScaleVsLifeModifierParams_0p0NS::ParametersStruct +{ +public: + ScaleVsLifeModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ScaleVsLifeModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ScaleVsLifeModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(ScaleVsLifeModifierParams_0p0NS::checksum); + return ScaleVsLifeModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ScaleVsLifeModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + ScaleVsLifeModifierParams_0p0* tmpThis = const_cast<ScaleVsLifeModifierParams_0p0*>(this); + return *(static_cast<ScaleVsLifeModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + ScaleVsLifeModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ScaleVsLifeModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class ScaleVsLifeModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ScaleVsLifeModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ScaleVsLifeModifierParams_0p0), ScaleVsLifeModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ScaleVsLifeModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ScaleVsLifeModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ScaleVsLifeModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ScaleVsLifeModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ScaleVsLifeModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ScaleVsLifeModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ScaleVsLifeModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ScaleVsLifeModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (ScaleVsLifeModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ScaleVsLifeModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ScaleVsLifeModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ScaleVsLifeModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ScaleVsLifeModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsTemperature2DModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsTemperature2DModifierParams_0p0.h new file mode 100644 index 00000000..28b62ce7 --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsTemperature2DModifierParams_0p0.h @@ -0,0 +1,244 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_ScaleVsTemperature2DModifierParams_0p0_h +#define HEADER_ScaleVsTemperature2DModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace ScaleVsTemperature2DModifierParams_0p0NS +{ + +struct scaleTemperatureStruct_Type; + +struct scaleTemperatureStruct_DynamicArray1D_Type +{ + scaleTemperatureStruct_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct scaleTemperatureStruct_Type +{ + float temperature; + physx::PxVec2 scale; +}; + +struct ParametersStruct +{ + + scaleTemperatureStruct_DynamicArray1D_Type controlPoints; + +}; + +static const uint32_t checksum[] = { 0xd5330296, 0xc6fa1947, 0x152d1b30, 0x07453e5c, }; + +} // namespace ScaleVsTemperature2DModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ScaleVsTemperature2DModifierParams_0p0 : public NvParameterized::NvParameters, public ScaleVsTemperature2DModifierParams_0p0NS::ParametersStruct +{ +public: + ScaleVsTemperature2DModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ScaleVsTemperature2DModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ScaleVsTemperature2DModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(ScaleVsTemperature2DModifierParams_0p0NS::checksum); + return ScaleVsTemperature2DModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ScaleVsTemperature2DModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + ScaleVsTemperature2DModifierParams_0p0* tmpThis = const_cast<ScaleVsTemperature2DModifierParams_0p0*>(this); + return *(static_cast<ScaleVsTemperature2DModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + ScaleVsTemperature2DModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ScaleVsTemperature2DModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class ScaleVsTemperature2DModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ScaleVsTemperature2DModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ScaleVsTemperature2DModifierParams_0p0), ScaleVsTemperature2DModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ScaleVsTemperature2DModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ScaleVsTemperature2DModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ScaleVsTemperature2DModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ScaleVsTemperature2DModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ScaleVsTemperature2DModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ScaleVsTemperature2DModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ScaleVsTemperature2DModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ScaleVsTemperature2DModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (ScaleVsTemperature2DModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ScaleVsTemperature2DModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ScaleVsTemperature2DModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ScaleVsTemperature2DModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ScaleVsTemperature2DModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsTemperature3DModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsTemperature3DModifierParams_0p0.h new file mode 100644 index 00000000..ff575570 --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsTemperature3DModifierParams_0p0.h @@ -0,0 +1,244 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_ScaleVsTemperature3DModifierParams_0p0_h +#define HEADER_ScaleVsTemperature3DModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace ScaleVsTemperature3DModifierParams_0p0NS +{ + +struct scaleTemperatureStruct_Type; + +struct scaleTemperatureStruct_DynamicArray1D_Type +{ + scaleTemperatureStruct_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct scaleTemperatureStruct_Type +{ + float temperature; + physx::PxVec3 scale; +}; + +struct ParametersStruct +{ + + scaleTemperatureStruct_DynamicArray1D_Type controlPoints; + +}; + +static const uint32_t checksum[] = { 0x25b25469, 0xa653dacc, 0x1c3167df, 0xd3a6b16f, }; + +} // namespace ScaleVsTemperature3DModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ScaleVsTemperature3DModifierParams_0p0 : public NvParameterized::NvParameters, public ScaleVsTemperature3DModifierParams_0p0NS::ParametersStruct +{ +public: + ScaleVsTemperature3DModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ScaleVsTemperature3DModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ScaleVsTemperature3DModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(ScaleVsTemperature3DModifierParams_0p0NS::checksum); + return ScaleVsTemperature3DModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ScaleVsTemperature3DModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + ScaleVsTemperature3DModifierParams_0p0* tmpThis = const_cast<ScaleVsTemperature3DModifierParams_0p0*>(this); + return *(static_cast<ScaleVsTemperature3DModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + ScaleVsTemperature3DModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ScaleVsTemperature3DModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class ScaleVsTemperature3DModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ScaleVsTemperature3DModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ScaleVsTemperature3DModifierParams_0p0), ScaleVsTemperature3DModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ScaleVsTemperature3DModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ScaleVsTemperature3DModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ScaleVsTemperature3DModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ScaleVsTemperature3DModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ScaleVsTemperature3DModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ScaleVsTemperature3DModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ScaleVsTemperature3DModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ScaleVsTemperature3DModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (ScaleVsTemperature3DModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ScaleVsTemperature3DModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ScaleVsTemperature3DModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ScaleVsTemperature3DModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ScaleVsTemperature3DModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsTemperatureModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsTemperatureModifierParams_0p0.h new file mode 100644 index 00000000..5aee61eb --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/ScaleVsTemperatureModifierParams_0p0.h @@ -0,0 +1,245 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_ScaleVsTemperatureModifierParams_0p0_h +#define HEADER_ScaleVsTemperatureModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace ScaleVsTemperatureModifierParams_0p0NS +{ + +struct vec2_Type; + +struct vec2_DynamicArray1D_Type +{ + vec2_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct vec2_Type +{ + float x; + float y; +}; + +struct ParametersStruct +{ + + const char* scaleAxis; + vec2_DynamicArray1D_Type controlPoints; + +}; + +static const uint32_t checksum[] = { 0xd0fc7da0, 0x19500653, 0x8b0cfc22, 0xa80392bd, }; + +} // namespace ScaleVsTemperatureModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ScaleVsTemperatureModifierParams_0p0 : public NvParameterized::NvParameters, public ScaleVsTemperatureModifierParams_0p0NS::ParametersStruct +{ +public: + ScaleVsTemperatureModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ScaleVsTemperatureModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ScaleVsTemperatureModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(ScaleVsTemperatureModifierParams_0p0NS::checksum); + return ScaleVsTemperatureModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ScaleVsTemperatureModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + ScaleVsTemperatureModifierParams_0p0* tmpThis = const_cast<ScaleVsTemperatureModifierParams_0p0*>(this); + return *(static_cast<ScaleVsTemperatureModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + ScaleVsTemperatureModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ScaleVsTemperatureModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class ScaleVsTemperatureModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ScaleVsTemperatureModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ScaleVsTemperatureModifierParams_0p0), ScaleVsTemperatureModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ScaleVsTemperatureModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ScaleVsTemperatureModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ScaleVsTemperatureModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ScaleVsTemperatureModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ScaleVsTemperatureModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ScaleVsTemperatureModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ScaleVsTemperatureModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ScaleVsTemperatureModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (ScaleVsTemperatureModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ScaleVsTemperatureModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ScaleVsTemperatureModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ScaleVsTemperatureModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ScaleVsTemperatureModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/SimpleScaleModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/SimpleScaleModifierParams_0p0.h new file mode 100644 index 00000000..1ba26cf6 --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/SimpleScaleModifierParams_0p0.h @@ -0,0 +1,230 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_SimpleScaleModifierParams_0p0_h +#define HEADER_SimpleScaleModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace SimpleScaleModifierParams_0p0NS +{ + + + +struct ParametersStruct +{ + + physx::PxVec3 scaleFactor; + +}; + +static const uint32_t checksum[] = { 0x7a1ac6ca, 0x76ef1cd2, 0x991bfe05, 0x30c11a09, }; + +} // namespace SimpleScaleModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class SimpleScaleModifierParams_0p0 : public NvParameterized::NvParameters, public SimpleScaleModifierParams_0p0NS::ParametersStruct +{ +public: + SimpleScaleModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~SimpleScaleModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("SimpleScaleModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(SimpleScaleModifierParams_0p0NS::checksum); + return SimpleScaleModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const SimpleScaleModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + SimpleScaleModifierParams_0p0* tmpThis = const_cast<SimpleScaleModifierParams_0p0*>(this); + return *(static_cast<SimpleScaleModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + SimpleScaleModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<SimpleScaleModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class SimpleScaleModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + SimpleScaleModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(SimpleScaleModifierParams_0p0), SimpleScaleModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, SimpleScaleModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class SimpleScaleModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(SimpleScaleModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, SimpleScaleModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, SimpleScaleModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, SimpleScaleModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class SimpleScaleModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of SimpleScaleModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (SimpleScaleModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (SimpleScaleModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (SimpleScaleModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (SimpleScaleModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (SimpleScaleModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/SpriteIofxParameters_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/SpriteIofxParameters_0p0.h new file mode 100644 index 00000000..b065027b --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/SpriteIofxParameters_0p0.h @@ -0,0 +1,240 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_SpriteIofxParameters_0p0_h +#define HEADER_SpriteIofxParameters_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace SpriteIofxParameters_0p0NS +{ + + +struct REF_DynamicArray1D_Type +{ + NvParameterized::Interface** buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + + +struct ParametersStruct +{ + + NvParameterized::Interface* spriteMaterialName; + REF_DynamicArray1D_Type spawnModifierList; + REF_DynamicArray1D_Type continuousModifierList; + +}; + +static const uint32_t checksum[] = { 0xed7d359d, 0xba5eb1e1, 0x9ac6c5dd, 0xb1f7ef05, }; + +} // namespace SpriteIofxParameters_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class SpriteIofxParameters_0p0 : public NvParameterized::NvParameters, public SpriteIofxParameters_0p0NS::ParametersStruct +{ +public: + SpriteIofxParameters_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~SpriteIofxParameters_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("SpriteIofxParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(SpriteIofxParameters_0p0NS::checksum); + return SpriteIofxParameters_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const SpriteIofxParameters_0p0NS::ParametersStruct& parameters(void) const + { + SpriteIofxParameters_0p0* tmpThis = const_cast<SpriteIofxParameters_0p0*>(this); + return *(static_cast<SpriteIofxParameters_0p0NS::ParametersStruct*>(tmpThis)); + } + + SpriteIofxParameters_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<SpriteIofxParameters_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class SpriteIofxParameters_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + SpriteIofxParameters_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(SpriteIofxParameters_0p0), SpriteIofxParameters_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, SpriteIofxParameters_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class SpriteIofxParameters_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(SpriteIofxParameters_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, SpriteIofxParameters_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, SpriteIofxParameters_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, SpriteIofxParameters_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class SpriteIofxParameters_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of SpriteIofxParameters_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (SpriteIofxParameters_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (SpriteIofxParameters_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (SpriteIofxParameters_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (SpriteIofxParameters_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (SpriteIofxParameters_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/SpriteIofxParameters_0p1.h b/APEX_1.4/module/iofx_legacy/include/autogen/SpriteIofxParameters_0p1.h new file mode 100644 index 00000000..315696ff --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/SpriteIofxParameters_0p1.h @@ -0,0 +1,240 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_SpriteIofxParameters_0p1_h +#define HEADER_SpriteIofxParameters_0p1_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace SpriteIofxParameters_0p1NS +{ + + +struct REF_DynamicArray1D_Type +{ + NvParameterized::Interface** buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + + +struct ParametersStruct +{ + + NvParameterized::Interface* spriteMaterialName; + REF_DynamicArray1D_Type spawnModifierList; + REF_DynamicArray1D_Type continuousModifierList; + +}; + +static const uint32_t checksum[] = { 0xafdd3ba3, 0x21232d96, 0xc0d0f73b, 0x0b558710, }; + +} // namespace SpriteIofxParameters_0p1NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class SpriteIofxParameters_0p1 : public NvParameterized::NvParameters, public SpriteIofxParameters_0p1NS::ParametersStruct +{ +public: + SpriteIofxParameters_0p1(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~SpriteIofxParameters_0p1(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("SpriteIofxParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)1; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(SpriteIofxParameters_0p1NS::checksum); + return SpriteIofxParameters_0p1NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const SpriteIofxParameters_0p1NS::ParametersStruct& parameters(void) const + { + SpriteIofxParameters_0p1* tmpThis = const_cast<SpriteIofxParameters_0p1*>(this); + return *(static_cast<SpriteIofxParameters_0p1NS::ParametersStruct*>(tmpThis)); + } + + SpriteIofxParameters_0p1NS::ParametersStruct& parameters(void) + { + return *(static_cast<SpriteIofxParameters_0p1NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class SpriteIofxParameters_0p1Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + SpriteIofxParameters_0p1::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(SpriteIofxParameters_0p1), SpriteIofxParameters_0p1::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, SpriteIofxParameters_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class SpriteIofxParameters_0p1"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(SpriteIofxParameters_0p1)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, SpriteIofxParameters_0p1)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, SpriteIofxParameters_0p1::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, SpriteIofxParameters_0p1::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class SpriteIofxParameters_0p1"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of SpriteIofxParameters_0p1 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (SpriteIofxParameters_0p1*)bufObj; + } + + virtual const char* getClassName() + { + return (SpriteIofxParameters_0p1::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (SpriteIofxParameters_0p1::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (SpriteIofxParameters_0p1::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (SpriteIofxParameters_0p1::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/SpriteIofxParameters_0p2.h b/APEX_1.4/module/iofx_legacy/include/autogen/SpriteIofxParameters_0p2.h new file mode 100644 index 00000000..e525483e --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/SpriteIofxParameters_0p2.h @@ -0,0 +1,240 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_SpriteIofxParameters_0p2_h +#define HEADER_SpriteIofxParameters_0p2_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace SpriteIofxParameters_0p2NS +{ + + +struct REF_DynamicArray1D_Type +{ + NvParameterized::Interface** buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + + +struct ParametersStruct +{ + + NvParameterized::Interface* spriteMaterialName; + REF_DynamicArray1D_Type spawnModifierList; + REF_DynamicArray1D_Type continuousModifierList; + +}; + +static const uint32_t checksum[] = { 0xb3736234, 0x649595fb, 0x00c6acc3, 0xd78904f6, }; + +} // namespace SpriteIofxParameters_0p2NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class SpriteIofxParameters_0p2 : public NvParameterized::NvParameters, public SpriteIofxParameters_0p2NS::ParametersStruct +{ +public: + SpriteIofxParameters_0p2(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~SpriteIofxParameters_0p2(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("SpriteIofxParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)2; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(SpriteIofxParameters_0p2NS::checksum); + return SpriteIofxParameters_0p2NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const SpriteIofxParameters_0p2NS::ParametersStruct& parameters(void) const + { + SpriteIofxParameters_0p2* tmpThis = const_cast<SpriteIofxParameters_0p2*>(this); + return *(static_cast<SpriteIofxParameters_0p2NS::ParametersStruct*>(tmpThis)); + } + + SpriteIofxParameters_0p2NS::ParametersStruct& parameters(void) + { + return *(static_cast<SpriteIofxParameters_0p2NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class SpriteIofxParameters_0p2Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + SpriteIofxParameters_0p2::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(SpriteIofxParameters_0p2), SpriteIofxParameters_0p2::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, SpriteIofxParameters_0p2::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class SpriteIofxParameters_0p2"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(SpriteIofxParameters_0p2)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, SpriteIofxParameters_0p2)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, SpriteIofxParameters_0p2::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, SpriteIofxParameters_0p2::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class SpriteIofxParameters_0p2"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of SpriteIofxParameters_0p2 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (SpriteIofxParameters_0p2*)bufObj; + } + + virtual const char* getClassName() + { + return (SpriteIofxParameters_0p2::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (SpriteIofxParameters_0p2::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (SpriteIofxParameters_0p2::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (SpriteIofxParameters_0p2::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/SpriteIofxParameters_0p3.h b/APEX_1.4/module/iofx_legacy/include/autogen/SpriteIofxParameters_0p3.h new file mode 100644 index 00000000..1f90773b --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/SpriteIofxParameters_0p3.h @@ -0,0 +1,240 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_SpriteIofxParameters_0p3_h +#define HEADER_SpriteIofxParameters_0p3_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace SpriteIofxParameters_0p3NS +{ + + +struct REF_DynamicArray1D_Type +{ + NvParameterized::Interface** buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + + +struct ParametersStruct +{ + + NvParameterized::Interface* spriteMaterialName; + REF_DynamicArray1D_Type spawnModifierList; + REF_DynamicArray1D_Type continuousModifierList; + +}; + +static const uint32_t checksum[] = { 0x39c3504e, 0xd2ee01e7, 0xc1ff81b5, 0x6ae67fb8, }; + +} // namespace SpriteIofxParameters_0p3NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class SpriteIofxParameters_0p3 : public NvParameterized::NvParameters, public SpriteIofxParameters_0p3NS::ParametersStruct +{ +public: + SpriteIofxParameters_0p3(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~SpriteIofxParameters_0p3(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("SpriteIofxParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)3; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(SpriteIofxParameters_0p3NS::checksum); + return SpriteIofxParameters_0p3NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const SpriteIofxParameters_0p3NS::ParametersStruct& parameters(void) const + { + SpriteIofxParameters_0p3* tmpThis = const_cast<SpriteIofxParameters_0p3*>(this); + return *(static_cast<SpriteIofxParameters_0p3NS::ParametersStruct*>(tmpThis)); + } + + SpriteIofxParameters_0p3NS::ParametersStruct& parameters(void) + { + return *(static_cast<SpriteIofxParameters_0p3NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class SpriteIofxParameters_0p3Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + SpriteIofxParameters_0p3::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(SpriteIofxParameters_0p3), SpriteIofxParameters_0p3::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, SpriteIofxParameters_0p3::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class SpriteIofxParameters_0p3"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(SpriteIofxParameters_0p3)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, SpriteIofxParameters_0p3)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, SpriteIofxParameters_0p3::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, SpriteIofxParameters_0p3::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class SpriteIofxParameters_0p3"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of SpriteIofxParameters_0p3 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (SpriteIofxParameters_0p3*)bufObj; + } + + virtual const char* getClassName() + { + return (SpriteIofxParameters_0p3::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (SpriteIofxParameters_0p3::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (SpriteIofxParameters_0p3::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (SpriteIofxParameters_0p3::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/SpriteIofxParameters_0p4.h b/APEX_1.4/module/iofx_legacy/include/autogen/SpriteIofxParameters_0p4.h new file mode 100644 index 00000000..1d391493 --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/SpriteIofxParameters_0p4.h @@ -0,0 +1,240 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_SpriteIofxParameters_0p4_h +#define HEADER_SpriteIofxParameters_0p4_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace SpriteIofxParameters_0p4NS +{ + + +struct REF_DynamicArray1D_Type +{ + NvParameterized::Interface** buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + + +struct ParametersStruct +{ + + NvParameterized::Interface* spriteMaterialName; + REF_DynamicArray1D_Type spawnModifierList; + REF_DynamicArray1D_Type continuousModifierList; + +}; + +static const uint32_t checksum[] = { 0x9763d523, 0x7dae1ae1, 0x3bb7aa9d, 0x67a8d368, }; + +} // namespace SpriteIofxParameters_0p4NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class SpriteIofxParameters_0p4 : public NvParameterized::NvParameters, public SpriteIofxParameters_0p4NS::ParametersStruct +{ +public: + SpriteIofxParameters_0p4(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~SpriteIofxParameters_0p4(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("SpriteIofxParameters"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)4; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(SpriteIofxParameters_0p4NS::checksum); + return SpriteIofxParameters_0p4NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const SpriteIofxParameters_0p4NS::ParametersStruct& parameters(void) const + { + SpriteIofxParameters_0p4* tmpThis = const_cast<SpriteIofxParameters_0p4*>(this); + return *(static_cast<SpriteIofxParameters_0p4NS::ParametersStruct*>(tmpThis)); + } + + SpriteIofxParameters_0p4NS::ParametersStruct& parameters(void) + { + return *(static_cast<SpriteIofxParameters_0p4NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class SpriteIofxParameters_0p4Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + SpriteIofxParameters_0p4::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(SpriteIofxParameters_0p4), SpriteIofxParameters_0p4::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, SpriteIofxParameters_0p4::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class SpriteIofxParameters_0p4"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(SpriteIofxParameters_0p4)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, SpriteIofxParameters_0p4)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, SpriteIofxParameters_0p4::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, SpriteIofxParameters_0p4::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class SpriteIofxParameters_0p4"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of SpriteIofxParameters_0p4 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (SpriteIofxParameters_0p4*)bufObj; + } + + virtual const char* getClassName() + { + return (SpriteIofxParameters_0p4::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (SpriteIofxParameters_0p4::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (SpriteIofxParameters_0p4::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (SpriteIofxParameters_0p4::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/SubtextureVsLifeModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/SubtextureVsLifeModifierParams_0p0.h new file mode 100644 index 00000000..d1395b4c --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/SubtextureVsLifeModifierParams_0p0.h @@ -0,0 +1,244 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_SubtextureVsLifeModifierParams_0p0_h +#define HEADER_SubtextureVsLifeModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace SubtextureVsLifeModifierParams_0p0NS +{ + +struct vec2_Type; + +struct vec2_DynamicArray1D_Type +{ + vec2_Type* buf; + bool isAllocated; + int32_t elementSize; + int32_t arraySizes[1]; +}; + +struct vec2_Type +{ + float x; + float y; +}; + +struct ParametersStruct +{ + + vec2_DynamicArray1D_Type controlPoints; + +}; + +static const uint32_t checksum[] = { 0x38be217d, 0xe6774f18, 0x591a0a04, 0x64e61b1e, }; + +} // namespace SubtextureVsLifeModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class SubtextureVsLifeModifierParams_0p0 : public NvParameterized::NvParameters, public SubtextureVsLifeModifierParams_0p0NS::ParametersStruct +{ +public: + SubtextureVsLifeModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~SubtextureVsLifeModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("SubtextureVsLifeModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(SubtextureVsLifeModifierParams_0p0NS::checksum); + return SubtextureVsLifeModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const SubtextureVsLifeModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + SubtextureVsLifeModifierParams_0p0* tmpThis = const_cast<SubtextureVsLifeModifierParams_0p0*>(this); + return *(static_cast<SubtextureVsLifeModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + SubtextureVsLifeModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<SubtextureVsLifeModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class SubtextureVsLifeModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + SubtextureVsLifeModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(SubtextureVsLifeModifierParams_0p0), SubtextureVsLifeModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, SubtextureVsLifeModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class SubtextureVsLifeModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(SubtextureVsLifeModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, SubtextureVsLifeModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, SubtextureVsLifeModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, SubtextureVsLifeModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class SubtextureVsLifeModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of SubtextureVsLifeModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (SubtextureVsLifeModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (SubtextureVsLifeModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (SubtextureVsLifeModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (SubtextureVsLifeModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (SubtextureVsLifeModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif diff --git a/APEX_1.4/module/iofx_legacy/include/autogen/ViewDirectionSortingModifierParams_0p0.h b/APEX_1.4/module/iofx_legacy/include/autogen/ViewDirectionSortingModifierParams_0p0.h new file mode 100644 index 00000000..a35d3ae5 --- /dev/null +++ b/APEX_1.4/module/iofx_legacy/include/autogen/ViewDirectionSortingModifierParams_0p0.h @@ -0,0 +1,230 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and 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. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2015 NVIDIA Corporation. All rights reserved. + +// This file was generated by NvParameterized/scripts/GenParameterized.pl + + +#ifndef HEADER_ViewDirectionSortingModifierParams_0p0_h +#define HEADER_ViewDirectionSortingModifierParams_0p0_h + +#include "NvParametersTypes.h" + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +#include "nvparameterized/NvParameterized.h" +#include "nvparameterized/NvParameterizedTraits.h" +#include "NvParameters.h" +#include "NvTraitsInternal.h" +#endif + +namespace nvidia +{ +namespace parameterized +{ + +#if PX_VC +#pragma warning(push) +#pragma warning(disable: 4324) // structure was padded due to __declspec(align()) +#endif + +namespace ViewDirectionSortingModifierParams_0p0NS +{ + + + +struct ParametersStruct +{ + + const char* sortType; + +}; + +static const uint32_t checksum[] = { 0x273be54c, 0xc9bfbfeb, 0x0523921d, 0x48c3bc2d, }; + +} // namespace ViewDirectionSortingModifierParams_0p0NS + +#ifndef NV_PARAMETERIZED_ONLY_LAYOUTS +class ViewDirectionSortingModifierParams_0p0 : public NvParameterized::NvParameters, public ViewDirectionSortingModifierParams_0p0NS::ParametersStruct +{ +public: + ViewDirectionSortingModifierParams_0p0(NvParameterized::Traits* traits, void* buf = 0, int32_t* refCount = 0); + + virtual ~ViewDirectionSortingModifierParams_0p0(); + + virtual void destroy(); + + static const char* staticClassName(void) + { + return("ViewDirectionSortingModifierParams"); + } + + const char* className(void) const + { + return(staticClassName()); + } + + static const uint32_t ClassVersion = ((uint32_t)0 << 16) + (uint32_t)0; + + static uint32_t staticVersion(void) + { + return ClassVersion; + } + + uint32_t version(void) const + { + return(staticVersion()); + } + + static const uint32_t ClassAlignment = 8; + + static const uint32_t* staticChecksum(uint32_t& bits) + { + bits = 8 * sizeof(ViewDirectionSortingModifierParams_0p0NS::checksum); + return ViewDirectionSortingModifierParams_0p0NS::checksum; + } + + static void freeParameterDefinitionTable(NvParameterized::Traits* traits); + + const uint32_t* checksum(uint32_t& bits) const + { + return staticChecksum(bits); + } + + const ViewDirectionSortingModifierParams_0p0NS::ParametersStruct& parameters(void) const + { + ViewDirectionSortingModifierParams_0p0* tmpThis = const_cast<ViewDirectionSortingModifierParams_0p0*>(this); + return *(static_cast<ViewDirectionSortingModifierParams_0p0NS::ParametersStruct*>(tmpThis)); + } + + ViewDirectionSortingModifierParams_0p0NS::ParametersStruct& parameters(void) + { + return *(static_cast<ViewDirectionSortingModifierParams_0p0NS::ParametersStruct*>(this)); + } + + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle) const; + virtual NvParameterized::ErrorType getParameterHandle(const char* long_name, NvParameterized::Handle& handle); + + void initDefaults(void); + +protected: + + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void); + virtual const NvParameterized::DefinitionImpl* getParameterDefinitionTree(void) const; + + + virtual void getVarPtr(const NvParameterized::Handle& handle, void*& ptr, size_t& offset) const; + +private: + + void buildTree(void); + void initDynamicArrays(void); + void initStrings(void); + void initReferences(void); + void freeDynamicArrays(void); + void freeStrings(void); + void freeReferences(void); + + static bool mBuiltFlag; + static NvParameterized::MutexType mBuiltFlagMutex; +}; + +class ViewDirectionSortingModifierParams_0p0Factory : public NvParameterized::Factory +{ + static const char* const vptr; + +public: + + virtual void freeParameterDefinitionTable(NvParameterized::Traits* traits) + { + ViewDirectionSortingModifierParams_0p0::freeParameterDefinitionTable(traits); + } + + virtual NvParameterized::Interface* create(NvParameterized::Traits* paramTraits) + { + // placement new on this class using mParameterizedTraits + + void* newPtr = paramTraits->alloc(sizeof(ViewDirectionSortingModifierParams_0p0), ViewDirectionSortingModifierParams_0p0::ClassAlignment); + if (!NvParameterized::IsAligned(newPtr, ViewDirectionSortingModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ViewDirectionSortingModifierParams_0p0"); + paramTraits->free(newPtr); + return 0; + } + + memset(newPtr, 0, sizeof(ViewDirectionSortingModifierParams_0p0)); // always initialize memory allocated to zero for default values + return NV_PARAM_PLACEMENT_NEW(newPtr, ViewDirectionSortingModifierParams_0p0)(paramTraits); + } + + virtual NvParameterized::Interface* finish(NvParameterized::Traits* paramTraits, void* bufObj, void* bufStart, int32_t* refCount) + { + if (!NvParameterized::IsAligned(bufObj, ViewDirectionSortingModifierParams_0p0::ClassAlignment) + || !NvParameterized::IsAligned(bufStart, ViewDirectionSortingModifierParams_0p0::ClassAlignment)) + { + NV_PARAM_TRAITS_WARNING(paramTraits, "Unaligned memory allocation for class ViewDirectionSortingModifierParams_0p0"); + return 0; + } + + // Init NvParameters-part + // We used to call empty constructor of ViewDirectionSortingModifierParams_0p0 here + // but it may call default constructors of members and spoil the data + NV_PARAM_PLACEMENT_NEW(bufObj, NvParameterized::NvParameters)(paramTraits, bufStart, refCount); + + // Init vtable (everything else is already initialized) + *(const char**)bufObj = vptr; + + return (ViewDirectionSortingModifierParams_0p0*)bufObj; + } + + virtual const char* getClassName() + { + return (ViewDirectionSortingModifierParams_0p0::staticClassName()); + } + + virtual uint32_t getVersion() + { + return (ViewDirectionSortingModifierParams_0p0::staticVersion()); + } + + virtual uint32_t getAlignment() + { + return (ViewDirectionSortingModifierParams_0p0::ClassAlignment); + } + + virtual const uint32_t* getChecksum(uint32_t& bits) + { + return (ViewDirectionSortingModifierParams_0p0::staticChecksum(bits)); + } +}; +#endif // NV_PARAMETERIZED_ONLY_LAYOUTS + +} // namespace parameterized +} // namespace nvidia + +#if PX_VC +#pragma warning(pop) +#endif + +#endif |