本文整理汇总了C++中nxparameterized::DefinitionImpl::setDynamicHandleIndicesMap方法的典型用法代码示例。如果您正苦于以下问题:C++ DefinitionImpl::setDynamicHandleIndicesMap方法的具体用法?C++ DefinitionImpl::setDynamicHandleIndicesMap怎么用?C++ DefinitionImpl::setDynamicHandleIndicesMap使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类nxparameterized::DefinitionImpl
的用法示例。
在下文中一共展示了DefinitionImpl::setDynamicHandleIndicesMap方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: sizeof
void ClothingMaterialLibraryParameters_0p8::buildTree(void)
{
physx::PxU32 allocSize = sizeof(NxParameterized::DefinitionImpl) * NumParamDefs;
ParamDefTable = (NxParameterized::DefinitionImpl*)(mParameterizedTraits->alloc(allocSize));
memset(static_cast<void*>(ParamDefTable), 0, allocSize);
for (physx::PxU32 i = 0; i < NumParamDefs; ++i)
{
NX_PARAM_PLACEMENT_NEW(ParamDefTable + i, NxParameterized::DefinitionImpl)(*mParameterizedTraits);
}
// Initialize DefinitionImpl node: nodeIndex=0, longName=""
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[0];
ParamDef->init("", TYPE_STRUCT, "STRUCT", true);
}
// Initialize DefinitionImpl node: nodeIndex=1, longName="materials"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[1];
ParamDef->init("materials", TYPE_ARRAY, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("shortDescription", "Array of materials that are part of this library.", true);
ParamDefTable[1].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
ParamDef->setArraySize(-1);
static const physx::PxU8 dynHandleIndices[2] = { 1, 0, };
ParamDef->setDynamicHandleIndicesMap(dynHandleIndices, 2);
}
// Initialize DefinitionImpl node: nodeIndex=2, longName="materials[]"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[2];
ParamDef->init("materials", TYPE_STRUCT, "ClothingMaterial", true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("shortDescription", "Array of materials that are part of this library.", true);
ParamDefTable[2].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
// Initialize DefinitionImpl node: nodeIndex=3, longName="materials[].materialName"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[3];
ParamDef->init("materialName", TYPE_STRING, NULL, true);
}
// Initialize DefinitionImpl node: nodeIndex=4, longName="materials[].verticalStretchingStiffness"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[4];
ParamDef->init("verticalStretchingStiffness", TYPE_F32, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
static HintImpl HintTable[2];
static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], };
HintTable[0].init("max", physx::PxF64(1.0), true);
HintTable[1].init("min", physx::PxF64(0.0), true);
ParamDefTable[4].setHints((const NxParameterized::Hint**)HintPtrTable, 2);
#else
static HintImpl HintTable[3];
static Hint* HintPtrTable[3] = { &HintTable[0], &HintTable[1], &HintTable[2], };
//.........这里部分代码省略.........
示例2: sizeof
void SurfaceTraceSetParameters_0p1::buildTree(void)
{
physx::PxU32 allocSize = sizeof(NxParameterized::DefinitionImpl) * NumParamDefs;
ParamDefTable = (NxParameterized::DefinitionImpl*)(mParameterizedTraits->alloc(allocSize));
memset(static_cast<void*>(ParamDefTable), 0, allocSize);
for (physx::PxU32 i = 0; i < NumParamDefs; ++i)
{
NX_PARAM_PLACEMENT_NEW(ParamDefTable + i, NxParameterized::DefinitionImpl)(*mParameterizedTraits);
}
// Initialize DefinitionImpl node: nodeIndex=0, longName=""
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[0];
ParamDef->init("", TYPE_STRUCT, "STRUCT", true);
}
// Initialize DefinitionImpl node: nodeIndex=1, longName="traces"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[1];
ParamDef->init("traces", TYPE_ARRAY, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("INCLUDED", physx::PxU64(1), true);
ParamDefTable[1].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#else
static HintImpl HintTable[3];
static Hint* HintPtrTable[3] = { &HintTable[0], &HintTable[1], &HintTable[2], };
HintTable[0].init("INCLUDED", physx::PxU64(1), true);
HintTable[1].init("longDescription", "A set of surface traces belonging to a single chunk. Since chunks\n may have a complex shape, the triangles which are on the destructible's surface may not\n form a contiguous set. Therefore there may be more than one surface trace per chunk.", true);
HintTable[2].init("shortDescription", "A set of surface traces belonging to a single chunk", true);
ParamDefTable[1].setHints((const NxParameterized::Hint**)HintPtrTable, 3);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
static const char* const RefVariantVals[] = { "SurfaceTraceParameters" };
ParamDefTable[1].setRefVariantVals((const char**)RefVariantVals, 1);
ParamDef->setArraySize(-1);
static const physx::PxU8 dynHandleIndices[1] = { 0, };
ParamDef->setDynamicHandleIndicesMap(dynHandleIndices, 1);
}
// Initialize DefinitionImpl node: nodeIndex=2, longName="traces[]"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[2];
ParamDef->init("traces", TYPE_REF, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("INCLUDED", physx::PxU64(1), true);
ParamDefTable[2].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#else
static HintImpl HintTable[3];
static Hint* HintPtrTable[3] = { &HintTable[0], &HintTable[1], &HintTable[2], };
HintTable[0].init("INCLUDED", physx::PxU64(1), true);
HintTable[1].init("longDescription", "A set of surface traces belonging to a single chunk. Since chunks\n may have a complex shape, the triangles which are on the destructible's surface may not\n form a contiguous set. Therefore there may be more than one surface trace per chunk.", true);
HintTable[2].init("shortDescription", "A set of surface traces belonging to a single chunk", true);
ParamDefTable[2].setHints((const NxParameterized::Hint**)HintPtrTable, 3);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
static const char* const RefVariantVals[] = { "SurfaceTraceParameters" };
ParamDefTable[2].setRefVariantVals((const char**)RefVariantVals, 1);
}
// Initialize DefinitionImpl node: nodeIndex=3, longName="positionOffset"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[3];
ParamDef->init("positionOffset", TYPE_VEC3, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[2];
static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], };
//.........这里部分代码省略.........
示例3: buildTree
void RenderMeshAssetParameters::buildTree(void)
{
physx::PxU32 allocSize = sizeof(NxParameterized::DefinitionImpl) * NumParamDefs;
ParamDefTable = (NxParameterized::DefinitionImpl*)(mParameterizedTraits->alloc(allocSize));
memset(static_cast<void*>(ParamDefTable), 0, allocSize);
for (physx::PxU32 i = 0; i < NumParamDefs; ++i)
{
NX_PARAM_PLACEMENT_NEW(ParamDefTable + i, NxParameterized::DefinitionImpl)(*mParameterizedTraits);
}
// Initialize DefinitionImpl node: nodeIndex=0, longName=""
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[0];
ParamDef->init("", TYPE_STRUCT, "STRUCT", true);
}
// Initialize DefinitionImpl node: nodeIndex=1, longName="submeshes"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[1];
ParamDef->init("submeshes", TYPE_ARRAY, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("INCLUDED", physx::PxU64(1), true);
ParamDefTable[1].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#else
static HintImpl HintTable[3];
static Hint* HintPtrTable[3] = { &HintTable[0], &HintTable[1], &HintTable[2], };
HintTable[0].init("INCLUDED", physx::PxU64(1), true);
HintTable[1].init("longDescription", "This is the array of submeshes which comprise the mesh. Triangles are grouped\ninto submeshes, which correspond to a unique material name. The distinction\nneed not be just material; this grouping may distinguish any render state which\nrequires a separate draw call.\n", true);
HintTable[2].init("shortDescription", "Array of submeshes", true);
ParamDefTable[1].setHints((const NxParameterized::Hint**)HintPtrTable, 3);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
static const char* const RefVariantVals[] = { "SubmeshParameters" };
ParamDefTable[1].setRefVariantVals((const char**)RefVariantVals, 1);
ParamDef->setArraySize(-1);
static const physx::PxU8 dynHandleIndices[1] = { 0, };
ParamDef->setDynamicHandleIndicesMap(dynHandleIndices, 1);
}
// Initialize DefinitionImpl node: nodeIndex=2, longName="submeshes[]"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[2];
ParamDef->init("submeshes", TYPE_REF, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("INCLUDED", physx::PxU64(1), true);
ParamDefTable[2].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#else
static HintImpl HintTable[3];
static Hint* HintPtrTable[3] = { &HintTable[0], &HintTable[1], &HintTable[2], };
HintTable[0].init("INCLUDED", physx::PxU64(1), true);
HintTable[1].init("longDescription", "This is the array of submeshes which comprise the mesh. Triangles are grouped\ninto submeshes, which correspond to a unique material name. The distinction\nneed not be just material; this grouping may distinguish any render state which\nrequires a separate draw call.\n", true);
HintTable[2].init("shortDescription", "Array of submeshes", true);
ParamDefTable[2].setHints((const NxParameterized::Hint**)HintPtrTable, 3);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
static const char* const RefVariantVals[] = { "SubmeshParameters" };
ParamDefTable[2].setRefVariantVals((const char**)RefVariantVals, 1);
}
// Initialize DefinitionImpl node: nodeIndex=3, longName="materialNames"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[3];
ParamDef->init("materialNames", TYPE_ARRAY, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[2];
static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], };
//.........这里部分代码省略.........
示例4: buildTree
//.........这里部分代码省略.........
HintTable[1].init("shortDescription", "Whether or not to render unexploded chunks statically (without skinning)", true);
ParamDefTable[4].setHints((const NxParameterized::Hint**)HintPtrTable, 2);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
// Initialize DefinitionImpl node: nodeIndex=5, longName="overrideSkinnedMaterialNames"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[5];
ParamDef->init("overrideSkinnedMaterialNames", TYPE_ARRAY, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[2];
static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], };
HintTable[0].init("longDescription", "Per-actor material names, to override those in the asset, for skinned rendering.", true);
HintTable[1].init("shortDescription", "Per-actor material names, to override those in the asset, for skinned rendering", true);
ParamDefTable[5].setHints((const NxParameterized::Hint**)HintPtrTable, 2);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
ParamDef->setArraySize(-1);
static const physx::PxU8 dynHandleIndices[1] = { 0, };
ParamDef->setDynamicHandleIndicesMap(dynHandleIndices, 1);
}
// Initialize DefinitionImpl node: nodeIndex=6, longName="overrideSkinnedMaterialNames[]"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[6];
ParamDef->init("overrideSkinnedMaterialNames", TYPE_STRING, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[2];
static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], };
HintTable[0].init("longDescription", "Per-actor material names, to override those in the asset, for skinned rendering.", true);
HintTable[1].init("shortDescription", "Per-actor material names, to override those in the asset, for skinned rendering", true);
ParamDefTable[6].setHints((const NxParameterized::Hint**)HintPtrTable, 2);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
// Initialize DefinitionImpl node: nodeIndex=7, longName="overrideStaticMaterialNames"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[7];
ParamDef->init("overrideStaticMaterialNames", TYPE_ARRAY, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
示例5: sizeof
//.........这里部分代码省略.........
HintTable[1].init("longDescription", "This describes the data channels which exist per vertex, the vertex winding order, custom buffers, etc. See VertexFormatParameters.", true);
HintTable[2].init("shortDescription", "Attributes of the vertex buffer", true);
ParamDefTable[2].setHints((const NxParameterized::Hint**)HintPtrTable, 3);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
static const char* const RefVariantVals[] = { "VertexFormatParameters" };
ParamDefTable[2].setRefVariantVals((const char**)RefVariantVals, 1);
}
// Initialize DefinitionImpl node: nodeIndex=3, longName="buffers"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[3];
ParamDef->init("buffers", TYPE_ARRAY, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("INCLUDED", physx::PxU64(1), true);
ParamDefTable[3].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#else
static HintImpl HintTable[3];
static Hint* HintPtrTable[3] = { &HintTable[0], &HintTable[1], &HintTable[2], };
HintTable[0].init("INCLUDED", physx::PxU64(1), true);
HintTable[1].init("longDescription", "This is the buffer data according to the description in the VertexFormat", true);
HintTable[2].init("shortDescription", "The data buffers for standard and custom semantics", true);
ParamDefTable[3].setHints((const NxParameterized::Hint**)HintPtrTable, 3);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
static const char* const RefVariantVals[] = { "BufferU8x1", "BufferU8x2", "BufferU8x3", "BufferU8x4", "BufferU16x1", "BufferU16x2", "BufferU16x3", "BufferU16x4", "BufferU32x1", "BufferU32x2", "BufferU32x3", "BufferU32x4", "BufferF32x1", "BufferF32x2", "BufferF32x3", "BufferF32x4" };
ParamDefTable[3].setRefVariantVals((const char**)RefVariantVals, 16);
ParamDef->setArraySize(-1);
static const physx::PxU8 dynHandleIndices[1] = { 0, };
ParamDef->setDynamicHandleIndicesMap(dynHandleIndices, 1);
}
// Initialize DefinitionImpl node: nodeIndex=4, longName="buffers[]"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[4];
ParamDef->init("buffers", TYPE_REF, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("INCLUDED", physx::PxU64(1), true);
ParamDefTable[4].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#else
static HintImpl HintTable[3];
static Hint* HintPtrTable[3] = { &HintTable[0], &HintTable[1], &HintTable[2], };
HintTable[0].init("INCLUDED", physx::PxU64(1), true);
HintTable[1].init("longDescription", "This is the buffer data according to the description in the VertexFormat", true);
HintTable[2].init("shortDescription", "The data buffers for standard and custom semantics", true);
ParamDefTable[4].setHints((const NxParameterized::Hint**)HintPtrTable, 3);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
static const char* const RefVariantVals[] = { "BufferU8x1", "BufferU8x2", "BufferU8x3", "BufferU8x4", "BufferU16x1", "BufferU16x2", "BufferU16x3", "BufferU16x4", "BufferU32x1", "BufferU32x2", "BufferU32x3", "BufferU32x4", "BufferF32x1", "BufferF32x2", "BufferF32x3", "BufferF32x4" };
ParamDefTable[4].setRefVariantVals((const char**)RefVariantVals, 16);
}
// SetChildren for: nodeIndex=0, longName=""
{
static Definition* Children[3];
Children[0] = PDEF_PTR(1);
Children[1] = PDEF_PTR(2);
Children[2] = PDEF_PTR(3);
ParamDefTable[0].setChildren(Children, 3);
}
// SetChildren for: nodeIndex=3, longName="buffers"
{
static Definition* Children[1];
Children[0] = PDEF_PTR(4);
ParamDefTable[3].setChildren(Children, 1);
}
mBuiltFlag = true;
}
示例6: buildTree
//.........这里部分代码省略.........
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
// Initialize DefinitionImpl node: nodeIndex=11, longName="moduleName"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[11];
ParamDef->init("moduleName", TYPE_ARRAY, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("INCLUDED", physx::PxU64(1), true);
ParamDefTable[11].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#else
static HintImpl HintTable[2];
static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], };
HintTable[0].init("INCLUDED", physx::PxU64(1), true);
HintTable[1].init("shortDescription", "Module name", true);
ParamDefTable[11].setHints((const NxParameterized::Hint**)HintPtrTable, 2);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
static const char* const RefVariantVals[] = { "BasicFSDebugRenderParams", "BasicIosDebugRenderParams", "ParticleIosDebugRenderParams", "ClothingDebugRenderParams", "DestructibleDebugRenderParams", "EmitterDebugRenderParams", "ExplosionDebugRenderParams", "FieldBoundaryDebugRenderParams", "ForceFieldDebugRenderParams", "IofxDebugRenderParams", "FluidIosDebugRenderParams", "TurbulenceFSDebugRenderParams", "ParticlesDebugRenderParams", "DynamicSystemDebugRenderParams" };
ParamDefTable[11].setRefVariantVals((const char**)RefVariantVals, 14);
ParamDef->setArraySize(-1);
static const physx::PxU8 dynHandleIndices[1] = { 0, };
ParamDef->setDynamicHandleIndicesMap(dynHandleIndices, 1);
}
// Initialize DefinitionImpl node: nodeIndex=12, longName="moduleName[]"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[12];
ParamDef->init("moduleName", TYPE_REF, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("INCLUDED", physx::PxU64(1), true);
ParamDefTable[12].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#else
static HintImpl HintTable[2];
static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], };
HintTable[0].init("INCLUDED", physx::PxU64(1), true);
HintTable[1].init("shortDescription", "Module name", true);
ParamDefTable[12].setHints((const NxParameterized::Hint**)HintPtrTable, 2);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
static const char* const RefVariantVals[] = { "BasicFSDebugRenderParams", "BasicIosDebugRenderParams", "ParticleIosDebugRenderParams", "ClothingDebugRenderParams", "DestructibleDebugRenderParams", "EmitterDebugRenderParams", "ExplosionDebugRenderParams", "FieldBoundaryDebugRenderParams", "ForceFieldDebugRenderParams", "IofxDebugRenderParams", "FluidIosDebugRenderParams", "TurbulenceFSDebugRenderParams", "ParticlesDebugRenderParams", "DynamicSystemDebugRenderParams" };
ParamDefTable[12].setRefVariantVals((const char**)RefVariantVals, 14);
}
// SetChildren for: nodeIndex=0, longName=""
{
static Definition* Children[11];
Children[0] = PDEF_PTR(1);
Children[1] = PDEF_PTR(2);
Children[2] = PDEF_PTR(3);
Children[3] = PDEF_PTR(4);
Children[4] = PDEF_PTR(5);
Children[5] = PDEF_PTR(6);
Children[6] = PDEF_PTR(7);
Children[7] = PDEF_PTR(8);
Children[8] = PDEF_PTR(9);
Children[9] = PDEF_PTR(10);
Children[10] = PDEF_PTR(11);
ParamDefTable[0].setChildren(Children, 11);
}
// SetChildren for: nodeIndex=11, longName="moduleName"
{
static Definition* Children[1];
Children[0] = PDEF_PTR(12);
ParamDefTable[11].setChildren(Children, 1);
}
mBuiltFlag = true;
}
示例7: sizeof
void ClothingMaterialLibraryParameters_0p0::buildTree(void)
{
physx::PxU32 allocSize = sizeof(NxParameterized::DefinitionImpl) * NumParamDefs;
ParamDefTable = (NxParameterized::DefinitionImpl*)(mParameterizedTraits->alloc(allocSize));
memset(static_cast<void*>(ParamDefTable), 0, allocSize);
for (physx::PxU32 i = 0; i < NumParamDefs; ++i)
{
NX_PARAM_PLACEMENT_NEW(ParamDefTable + i, NxParameterized::DefinitionImpl)(*mParameterizedTraits);
}
// Initialize DefinitionImpl node: nodeIndex=0, longName=""
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[0];
ParamDef->init("", TYPE_STRUCT, "STRUCT", true);
}
// Initialize DefinitionImpl node: nodeIndex=1, longName="materials"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[1];
ParamDef->init("materials", TYPE_ARRAY, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("shortDescription", "Array of materials that are part of this library.", true);
ParamDefTable[1].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
ParamDef->setArraySize(-1);
static const physx::PxU8 dynHandleIndices[2] = { 1, 0, };
ParamDef->setDynamicHandleIndicesMap(dynHandleIndices, 2);
}
// Initialize DefinitionImpl node: nodeIndex=2, longName="materials[]"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[2];
ParamDef->init("materials", TYPE_STRUCT, "ClothingMaterial", true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("shortDescription", "Array of materials that are part of this library.", true);
ParamDefTable[2].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
// Initialize DefinitionImpl node: nodeIndex=3, longName="materials[].materialName"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[3];
ParamDef->init("materialName", TYPE_STRING, NULL, true);
}
// Initialize DefinitionImpl node: nodeIndex=4, longName="materials[].stretchingStiffness"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[4];
ParamDef->init("stretchingStiffness", TYPE_F32, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
static HintImpl HintTable[2];
static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], };
HintTable[0].init("max", physx::PxF64(1.0), true);
HintTable[1].init("min", physx::PxF64(0.0), true);
ParamDefTable[4].setHints((const NxParameterized::Hint**)HintPtrTable, 2);
#else
static HintImpl HintTable[3];
static Hint* HintPtrTable[3] = { &HintTable[0], &HintTable[1], &HintTable[2], };
//.........这里部分代码省略.........
示例8: buildTree
//.........这里部分代码省略.........
}
// Initialize DefinitionImpl node: nodeIndex=6, longName="meshCookedCollisionStreamsAtScale"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[6];
ParamDef->init("meshCookedCollisionStreamsAtScale", TYPE_ARRAY, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("INCLUDED", physx::PxU64(1), true);
ParamDefTable[6].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#else
static HintImpl HintTable[3];
static Hint* HintPtrTable[3] = { &HintTable[0], &HintTable[1], &HintTable[2], };
HintTable[0].init("INCLUDED", physx::PxU64(1), true);
HintTable[1].init("longDescription", "An array of arrays of collision hull byte streams.\n The outer array corresponds to different scales (given in the scales array).\n The inner array corresponds to different chunks within the asset.\n The size of the outer array of meshCookedCollisionStreamsAtScale\n and scales must be equal.", true);
HintTable[2].init("shortDescription", "An array of arrays of collision hull byte streams", true);
ParamDefTable[6].setHints((const NxParameterized::Hint**)HintPtrTable, 3);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
static const char* const RefVariantVals[] = { "MeshCookedCollisionStreamsAtScale" };
ParamDefTable[6].setRefVariantVals((const char**)RefVariantVals, 1);
ParamDef->setArraySize(-1);
static const physx::PxU8 dynHandleIndices[1] = { 0, };
ParamDef->setDynamicHandleIndicesMap(dynHandleIndices, 1);
}
// Initialize DefinitionImpl node: nodeIndex=7, longName="meshCookedCollisionStreamsAtScale[]"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[7];
ParamDef->init("meshCookedCollisionStreamsAtScale", TYPE_REF, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("INCLUDED", physx::PxU64(1), true);
ParamDefTable[7].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#else
static HintImpl HintTable[3];
static Hint* HintPtrTable[3] = { &HintTable[0], &HintTable[1], &HintTable[2], };
HintTable[0].init("INCLUDED", physx::PxU64(1), true);
HintTable[1].init("longDescription", "An array of arrays of collision hull byte streams.\n The outer array corresponds to different scales (given in the scales array).\n The inner array corresponds to different chunks within the asset.\n The size of the outer array of meshCookedCollisionStreamsAtScale\n and scales must be equal.", true);
HintTable[2].init("shortDescription", "An array of arrays of collision hull byte streams", true);
ParamDefTable[7].setHints((const NxParameterized::Hint**)HintPtrTable, 3);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
static const char* const RefVariantVals[] = { "MeshCookedCollisionStreamsAtScale" };
ParamDefTable[7].setRefVariantVals((const char**)RefVariantVals, 1);
}
// SetChildren for: nodeIndex=0, longName=""
{
static Definition* Children[5];
Children[0] = PDEF_PTR(1);
Children[1] = PDEF_PTR(2);
Children[2] = PDEF_PTR(3);
Children[3] = PDEF_PTR(4);
Children[4] = PDEF_PTR(6);
ParamDefTable[0].setChildren(Children, 5);
}
// SetChildren for: nodeIndex=4, longName="scales"
{
static Definition* Children[1];
Children[0] = PDEF_PTR(5);
ParamDefTable[4].setChildren(Children, 1);
}
// SetChildren for: nodeIndex=6, longName="meshCookedCollisionStreamsAtScale"
{
static Definition* Children[1];
Children[0] = PDEF_PTR(7);
ParamDefTable[6].setChildren(Children, 1);
}
mBuiltFlag = true;
}