本文整理汇总了C++中nxparameterized::DefinitionImpl类的典型用法代码示例。如果您正苦于以下问题:C++ DefinitionImpl类的具体用法?C++ DefinitionImpl怎么用?C++ DefinitionImpl使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了DefinitionImpl类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: sizeof
void VertexBufferParameters_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="vertexCount"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[1];
ParamDef->init("vertexCount", TYPE_U32, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[2];
static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], };
HintTable[0].init("longDescription", "The number of vertices in the verrtex buffer. All vertex data channels (positions, normals, etc.) will contain this many items.", true);
HintTable[1].init("shortDescription", "Number of vertices", true);
ParamDefTable[1].setHints((const NxParameterized::Hint**)HintPtrTable, 2);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
// Initialize DefinitionImpl node: nodeIndex=2, longName="vertexFormat"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[2];
ParamDef->init("vertexFormat", 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 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 */
//.........这里部分代码省略.........
示例2: buildTree
void DestructibleActorChunks::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="data"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[1];
ParamDef->init("data", 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", "The actor's chunk data.", true);
HintTable[2].init("shortDescription", "The actor's chunk data", true);
ParamDefTable[1].setHints((const NxParameterized::Hint**)HintPtrTable, 3);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
ParamDef->setArraySize(-1);
}
// Initialize DefinitionImpl node: nodeIndex=2, longName="data[]"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[2];
ParamDef->init("data", TYPE_STRUCT, "Chunk", 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", "The actor's chunk data.", true);
HintTable[2].init("shortDescription", "The actor's chunk data", true);
ParamDefTable[2].setHints((const NxParameterized::Hint**)HintPtrTable, 3);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
// Initialize DefinitionImpl node: nodeIndex=3, longName="data[].state"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[3];
ParamDef->init("state", TYPE_U8, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[2];
static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], };
HintTable[0].init("longDescription", "Bit flags indicating the state of the chunk.", true);
HintTable[1].init("shortDescription", "Bit flags indicating the state of the chunk", true);
ParamDefTable[3].setHints((const NxParameterized::Hint**)HintPtrTable, 2);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
//.........这里部分代码省略.........
示例3: buildTree
void DestructibleAssetCollisionDataSet::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="assetName"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[1];
ParamDef->init("assetName", 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", "The name of the asset for which convex hulls are cooked.\n A convex hull may be cooked for each chunk in the asset, for each scale in the\n scales array.", true);
HintTable[1].init("shortDescription", "The name of the asset for which convex hulls are cooked", true);
ParamDefTable[1].setHints((const NxParameterized::Hint**)HintPtrTable, 2);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
// Initialize DefinitionImpl node: nodeIndex=2, longName="cookingPlatform"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[2];
ParamDef->init("cookingPlatform", TYPE_U32, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[2];
static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], };
HintTable[0].init("longDescription", "The cooking platform for convex cooking. Currently unused.", true);
HintTable[1].init("shortDescription", "Currently unused", true);
ParamDefTable[2].setHints((const NxParameterized::Hint**)HintPtrTable, 2);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
// Initialize DefinitionImpl node: nodeIndex=3, longName="cookingVersionNum"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[3];
ParamDef->init("cookingVersionNum", TYPE_U32, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[2];
static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], };
HintTable[0].init("longDescription", "A version number for convex cooking. Currently unused.", true);
HintTable[1].init("shortDescription", "Currently unused", true);
ParamDefTable[3].setHints((const NxParameterized::Hint**)HintPtrTable, 2);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
// Initialize DefinitionImpl node: nodeIndex=4, longName="scales"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[4];
ParamDef->init("scales", TYPE_ARRAY, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
//.........这里部分代码省略.........
示例4: sizeof
void EmitterGeomExplicitParams_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="positions"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[1];
ParamDef->init("positions", TYPE_ARRAY, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("shortDescription", "Initial Positions List", true);
ParamDefTable[1].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
ParamDef->setArraySize(-1);
}
// Initialize DefinitionImpl node: nodeIndex=2, longName="positions[]"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[2];
ParamDef->init("positions", TYPE_VEC3, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("shortDescription", "Initial Positions List", true);
ParamDefTable[2].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
// Initialize DefinitionImpl node: nodeIndex=3, longName="velocities"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[3];
ParamDef->init("velocities", TYPE_ARRAY, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("shortDescription", "Initial Velocities List", true);
ParamDefTable[3].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
ParamDef->setArraySize(-1);
}
// Initialize DefinitionImpl node: nodeIndex=4, longName="velocities[]"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[4];
ParamDef->init("velocities", TYPE_VEC3, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[1];
//.........这里部分代码省略.........
示例5: buildTree
void EmitterGeomSphereParams::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="emitterType"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[1];
ParamDef->init("emitterType", TYPE_ENUM, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("defaultValue", "rate", 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("defaultValue", "rate", true);
HintTable[1].init("longDescription", "rate - The emitter will emit at the rate specified by the asset's rateRange\\n\ndensityOnce - The emitter will fill the geometry according to the asset's densityRange\\n\ndensityBrush - As the emitter moves, the emitter will fill the volume that is not already covered by the previous position\\n\nfill - The emitter will fill the volume with particles based on the particle size\\n\n", true);
HintTable[2].init("shortDescription", "Emitter Type", true);
ParamDefTable[1].setHints((const NxParameterized::Hint**)HintPtrTable, 3);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
static const char* const EnumVals[] = { "rate", "densityOnce", "densityBrush", "fill" };
ParamDefTable[1].setEnumVals((const char**)EnumVals, 4);
}
// Initialize DefinitionImpl node: nodeIndex=2, longName="radius"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[2];
ParamDef->init("radius", TYPE_F32, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
static HintImpl HintTable[3];
static Hint* HintPtrTable[3] = { &HintTable[0], &HintTable[1], &HintTable[2], };
HintTable[0].init("defaultValue", physx::PxU64(1), true);
HintTable[1].init("gameScale", "true", true);
HintTable[2].init("min", physx::PxU64(0), true);
ParamDefTable[2].setHints((const NxParameterized::Hint**)HintPtrTable, 3);
#else
static HintImpl HintTable[4];
static Hint* HintPtrTable[4] = { &HintTable[0], &HintTable[1], &HintTable[2], &HintTable[3], };
HintTable[0].init("defaultValue", physx::PxU64(1), true);
HintTable[1].init("gameScale", "true", true);
HintTable[2].init("min", physx::PxU64(0), true);
HintTable[3].init("shortDescription", "Sphere Radius", true);
ParamDefTable[2].setHints((const NxParameterized::Hint**)HintPtrTable, 4);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
// Initialize DefinitionImpl node: nodeIndex=3, longName="hemisphere"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[3];
ParamDef->init("hemisphere", TYPE_F32, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
static HintImpl HintTable[4];
static Hint* HintPtrTable[4] = { &HintTable[0], &HintTable[1], &HintTable[2], &HintTable[3], };
HintTable[0].init("defaultValue", physx::PxU64(0), true);
HintTable[1].init("gameScale", "false", true);
HintTable[2].init("max", physx::PxU64(1), true);
HintTable[3].init("min", physx::PxU64(0), true);
//.........这里部分代码省略.........
示例6: 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], };
//.........这里部分代码省略.........
示例7: sizeof
void CachedOverlaps_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="isCached"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[1];
ParamDef->init("isCached", TYPE_BOOL, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[2];
static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], };
HintTable[0].init("longDescription", "Whether or not chunk overlaps are cached at a particular hierarchy depth. In this\n case, overlap really means adjacency.", true);
HintTable[1].init("shortDescription", "Whether or not chunk overlaps are cached at a particular hierarchy depth", true);
ParamDefTable[1].setHints((const NxParameterized::Hint**)HintPtrTable, 2);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
// Initialize DefinitionImpl node: nodeIndex=2, longName="overlaps"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[2];
ParamDef->init("overlaps", 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", "The overlaps at a particular hierarchy depth. This is the set of adjacencies,\n stored as pairs of chunk indices, for chunks at a the given hierarchy depth.", true);
HintTable[1].init("shortDescription", "The overlaps at a particular hierarchy depth", true);
ParamDefTable[2].setHints((const NxParameterized::Hint**)HintPtrTable, 2);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
ParamDef->setArraySize(-1);
}
// Initialize DefinitionImpl node: nodeIndex=3, longName="overlaps[]"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[3];
ParamDef->init("overlaps", TYPE_STRUCT, "IntPair", true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[2];
static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], };
HintTable[0].init("longDescription", "The overlaps at a particular hierarchy depth. This is the set of adjacencies,\n stored as pairs of chunk indices, for chunks at a the given hierarchy depth.", true);
HintTable[1].init("shortDescription", "The overlaps at a particular hierarchy depth", true);
ParamDefTable[3].setHints((const NxParameterized::Hint**)HintPtrTable, 2);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
// Initialize DefinitionImpl node: nodeIndex=4, longName="overlaps[].i0"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[4];
ParamDef->init("i0", TYPE_I32, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
//.........这里部分代码省略.........
示例8: sizeof
void BufferF32x1::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="data"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[1];
ParamDef->init("data", TYPE_ARRAY, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("shortDescription", "Container for FLOAT1 formats", true);
ParamDefTable[1].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
ParamDef->setArraySize(-1);
}
// Initialize DefinitionImpl node: nodeIndex=2, longName="data[]"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[2];
ParamDef->init("data", TYPE_F32, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("shortDescription", "Container for FLOAT1 formats", true);
ParamDefTable[2].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
// SetChildren for: nodeIndex=0, longName=""
{
static Definition* Children[1];
Children[0] = PDEF_PTR(1);
ParamDefTable[0].setChildren(Children, 1);
}
// SetChildren for: nodeIndex=1, longName="data"
{
static Definition* Children[1];
Children[0] = PDEF_PTR(2);
ParamDefTable[1].setChildren(Children, 1);
}
mBuiltFlag = true;
}
示例9: sizeof
void EmitterGeomExplicitParams_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="distance"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[1];
ParamDef->init("distance", TYPE_F32, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
static HintImpl HintTable[2];
static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], };
HintTable[0].init("gameScale", "true", true);
HintTable[1].init("min", physx::PxF64(0.0f), true);
ParamDefTable[1].setHints((const NxParameterized::Hint**)HintPtrTable, 2);
#else
static HintImpl HintTable[3];
static Hint* HintPtrTable[3] = { &HintTable[0], &HintTable[1], &HintTable[2], };
HintTable[0].init("gameScale", "true", true);
HintTable[1].init("min", physx::PxF64(0.0f), true);
HintTable[2].init("shortDescription", "Average distance between particles", true);
ParamDefTable[1].setHints((const NxParameterized::Hint**)HintPtrTable, 3);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
// Initialize DefinitionImpl node: nodeIndex=2, longName="points"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[2];
ParamDef->init("points", TYPE_STRUCT, "ExplicitPoints", true);
}
// Initialize DefinitionImpl node: nodeIndex=3, longName="points.positions"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[3];
ParamDef->init("positions", TYPE_ARRAY, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("gameScale", "true", true);
ParamDefTable[3].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#else
static HintImpl HintTable[2];
static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], };
HintTable[0].init("gameScale", "true", true);
HintTable[1].init("shortDescription", "List of point positions", true);
ParamDefTable[3].setHints((const NxParameterized::Hint**)HintPtrTable, 2);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
ParamDef->setArraySize(-1);
}
// Initialize DefinitionImpl node: nodeIndex=4, longName="points.positions[]"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[4];
ParamDef->init("positions", TYPE_STRUCT, "PointParams", true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
//.........这里部分代码省略.........
示例10: buildTree
void ApexEmitterActorParameters::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);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("shortDescription", "This class is used for creating NxApexEmitterActor instances", true);
ParamDefTable[0].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
// Initialize DefinitionImpl node: nodeIndex=1, longName="initialPose"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[1];
ParamDef->init("initialPose", TYPE_MAT34, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("shortDescription", "The initial pose where the emitter actor will be put into the scene", true);
ParamDefTable[1].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
// Initialize DefinitionImpl node: nodeIndex=2, longName="initialScale"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[2];
ParamDef->init("initialScale", TYPE_F32, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("shortDescription", "The space scale of the emitter", true);
ParamDefTable[2].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
// Initialize DefinitionImpl node: nodeIndex=3, longName="attachRelativePose"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[3];
ParamDef->init("attachRelativePose", TYPE_MAT34, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("shortDescription", "The emitter will offset this value from the attach actor pose.", true);
ParamDefTable[3].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
//.........这里部分代码省略.........
示例11: 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], };
//.........这里部分代码省略.........
示例12: sizeof
void ApexEmitterAssetParameters_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);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[2];
static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], };
HintTable[0].init("longDescription", "This class contains the parameters for the APEX Emitter asset. The APEX Emitter is sometimes described\nas a shaped APEX Emitter because it contains the box, sphere, and sphere shell shapes. It also\nincludes an explicit shape that allows for preauthored particles positions and velocities and runtime\nparticle injections.\n", true);
HintTable[1].init("shortDescription", "APEX Emitter Asset Parameters", true);
ParamDefTable[0].setHints((const NxParameterized::Hint**)HintPtrTable, 2);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
// Initialize DefinitionImpl node: nodeIndex=1, longName="densityRange"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[1];
ParamDef->init("densityRange", TYPE_STRUCT, "rangeStructF32", true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[2];
static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], };
HintTable[0].init("longDescription", "For an explicit emitter, the density is actually a spawn probability. For the shaped emitters, it represents the density of the particles per unit volume.\n", true);
HintTable[1].init("shortDescription", "Density Range", true);
ParamDefTable[1].setHints((const NxParameterized::Hint**)HintPtrTable, 2);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
// Initialize DefinitionImpl node: nodeIndex=2, longName="densityRange.min"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[2];
ParamDef->init("min", TYPE_F32, NULL, true);
}
// Initialize DefinitionImpl node: nodeIndex=3, longName="densityRange.max"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[3];
ParamDef->init("max", TYPE_F32, NULL, true);
}
// Initialize DefinitionImpl node: nodeIndex=4, longName="rateRange"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[4];
ParamDef->init("rateRange", TYPE_STRUCT, "rangeStructF32", true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[2];
static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], };
HintTable[0].init("longDescription", "The emitter actor will use the maximum rate in the range if it is a rate-based shape, but it will back off to the minimum density if the actor is LOD resource limited.\n", true);
HintTable[1].init("shortDescription", "Rate Range", true);
ParamDefTable[4].setHints((const NxParameterized::Hint**)HintPtrTable, 2);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
//.........这里部分代码省略.........
示例13: buildTree
void ClothingModuleParameters::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);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("shortDescription", "This class is used for initializing the NxModuleClothing.", true);
ParamDefTable[0].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
// Initialize DefinitionImpl node: nodeIndex=1, longName="maxNumCompartments"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[1];
ParamDef->init("maxNumCompartments", TYPE_U32, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
static HintImpl HintTable[2];
static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], };
HintTable[0].init("defaultValueConsoles", physx::PxU64(0), true);
HintTable[1].init("defaultValueWindows", physx::PxU64(4), true);
ParamDefTable[1].setHints((const NxParameterized::Hint**)HintPtrTable, 2);
#else
static HintImpl HintTable[4];
static Hint* HintPtrTable[4] = { &HintTable[0], &HintTable[1], &HintTable[2], &HintTable[3], };
HintTable[0].init("defaultValueConsoles", physx::PxU64(0), true);
HintTable[1].init("defaultValueWindows", physx::PxU64(4), true);
HintTable[2].init("longDescription", "To parallelize work hw cloth, sw cloth, hw softbodies and sw softbodies are distributed into different compartments. For each type maximally maxNumCompartments compartments are created in a scene.", true);
HintTable[3].init("shortDescription", "Maximum number of compartments to distribute the cloths and softbodies of the same type. Works only with PhysX 2.8.4", true);
ParamDefTable[1].setHints((const NxParameterized::Hint**)HintPtrTable, 4);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
// Initialize DefinitionImpl node: nodeIndex=2, longName="maxUnusedPhysXResources"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[2];
ParamDef->init("maxUnusedPhysXResources", TYPE_U32, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[2];
static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], };
HintTable[0].init("longDescription", "Not used instances are generated when NxClothingActors are released or their benefit is not high enough to allow simulation. Then they will return the NxCloth/NxSoftBody and the list of NxActors to their asset where it will be cached until another NxClothingActor needs them.", true);
HintTable[1].init("shortDescription", "Maximum number of NxCloth/NxSoftBody instances that are not used.", true);
ParamDefTable[2].setHints((const NxParameterized::Hint**)HintPtrTable, 2);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
// Initialize DefinitionImpl node: nodeIndex=3, longName="allowAsyncCooking"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[3];
ParamDef->init("allowAsyncCooking", TYPE_BOOL, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[2];
static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], };
HintTable[0].init("longDescription", "This can be turned off if unexpected bugs/crashes occur.", true);
//.........这里部分代码省略.........
示例14: buildTree
void DestructibleDebugRenderParams::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="VISUALIZE_DESTRUCTIBLE_ACTOR"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[1];
ParamDef->init("VISUALIZE_DESTRUCTIBLE_ACTOR", TYPE_BOOL, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("shortDescription", "Module switch - whether or not to visualize destruction.", true);
ParamDefTable[1].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
// Initialize DefinitionImpl node: nodeIndex=2, longName="VISUALIZE_DESTRUCTIBLE_BOUNDS"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[2];
ParamDef->init("VISUALIZE_DESTRUCTIBLE_BOUNDS", TYPE_F32, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("shortDescription", "Shows the axis-aligned bounding box which contains all chunks for each destructible actor.", true);
ParamDefTable[2].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
// Initialize DefinitionImpl node: nodeIndex=3, longName="VISUALIZE_DESTRUCTIBLE_SUPPORT"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[3];
ParamDef->init("VISUALIZE_DESTRUCTIBLE_SUPPORT", TYPE_F32, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("shortDescription", "Shows the support graph as lines and support chunks' bounding boxes.", true);
ParamDefTable[3].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
// Initialize DefinitionImpl node: nodeIndex=4, longName="VISUALIZE_DESTRUCTIBLE_ACTOR_POSE"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[4];
ParamDef->init("VISUALIZE_DESTRUCTIBLE_ACTOR_POSE", TYPE_BOOL, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[1];
//.........这里部分代码省略.........
示例15: buildTree
void DebugRenderParams::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="Enable"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[1];
ParamDef->init("Enable", TYPE_BOOL, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("shortDescription", "Enable/disable debug rendering", true);
ParamDefTable[1].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
// Initialize DefinitionImpl node: nodeIndex=2, longName="Scale"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[2];
ParamDef->init("Scale", TYPE_F32, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("shortDescription", "Debug rendering scale", true);
ParamDefTable[2].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
// Initialize DefinitionImpl node: nodeIndex=3, longName="LodBenefits"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[3];
ParamDef->init("LodBenefits", TYPE_F32, NULL, true);
#ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
#else
static HintImpl HintTable[1];
static Hint* HintPtrTable[1] = { &HintTable[0], };
HintTable[0].init("shortDescription", "LOD benefit debug visualization", true);
ParamDefTable[3].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
#endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
}
// Initialize DefinitionImpl node: nodeIndex=4, longName="RelativeLodBenefitsScreenPos"
{
NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[4];
ParamDef->init("RelativeLodBenefitsScreenPos", 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);
//.........这里部分代码省略.........