Data Structures | |
| struct | NvFlowGridEmitParams |
| Parameters for both emission and collision. More... | |
Enumerations | |
| enum | NvFlowGridEmitMode { eNvFlowGridEmitModeDefault = 0, eNvFlowGridEmitModeDisableVelocity = 0x01, eNvFlowGridEmitModeDisableDensity = 0x02, eNvFlowGridEmitModeDisableAlloc = 0x04, eNvFlowGridEmitModeAllocShape = 0x08, eNvFlowGridEmitModeAllocShapeOnly = 0x0F } |
| Emitter modes. More... | |
Functions | |
| void | NvFlowGridEmit (NvFlowGrid *grid, const NvFlowShapeDesc *shapes, NvFlowUint numShapes, const NvFlowGridEmitParams *params, NvFlowUint numParams) |
| void | NvFlowGridEmitParamsDefaults (NvFlowGridEmitParams *params) |
| void | NvFlowGridUpdateEmitMaterials (NvFlowGrid *grid, NvFlowGridMaterialHandle *materials, NvFlowUint numMaterials) |
| void | NvFlowGridUpdateEmitSDFs (NvFlowGrid *grid, NvFlowShapeSDF **sdfs, NvFlowUint numSdfs) |
| enum NvFlowGridEmitMode |
Emitter modes.
| void NvFlowGridEmit | ( | NvFlowGrid * | grid, | |
| const NvFlowShapeDesc * | shapes, | |||
| NvFlowUint | numShapes, | |||
| const NvFlowGridEmitParams * | params, | |||
| NvFlowUint | numParams | |||
| ) |
Adds one or more emit events to be applied with the next grid update.
| [in] | grid | The Flow grid to apply the emit events. |
| [in] | shapes | Array of shape data referenced by emit params. |
| [in] | numShapes | Number of shapes in the array. |
| [in] | params | Array of emit event parameters. |
| [in] | numParams | Number of emit events in the array. |
| void NvFlowGridEmitParamsDefaults | ( | NvFlowGridEmitParams * | params | ) |
Allows the application to request default emit parameters from Flow.
| [out] | params | The parameters for Flow to fill out. |
| void NvFlowGridUpdateEmitMaterials | ( | NvFlowGrid * | grid, | |
| NvFlowGridMaterialHandle * | materials, | |||
| NvFlowUint | numMaterials | |||
| ) |
Update internal array of grid materials reference by emitMaterialIndex
| [in] | grid | The Flow grid to apply the emit events. |
| [in] | materials | Array of grid materials. |
| [in] | numMaterials | Number of grid materials in the array. |
| void NvFlowGridUpdateEmitSDFs | ( | NvFlowGrid * | grid, | |
| NvFlowShapeSDF ** | sdfs, | |||
| NvFlowUint | numSdfs | |||
| ) |
Update internal array of SDFs that can be referenced by sdfOffset
| [in] | grid | The Flow grid to apply the emit events. |
| [in] | sdfs | Array of shape data referenced by emit params. |
| [in] | numSdfs | Number of shapes in the array. |