NvFlowGridEmit


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 NvFlowGridUpdateEmitSDFs (NvFlowGrid *grid, NvFlowShapeSDF **sdfs, NvFlowUint numSdfs)

Enumeration Type Documentation

Emitter modes.

Enumerator:
eNvFlowGridEmitModeDefault  Emitter will influence velocity and density channels, optionally allocate based on bounds.
eNvFlowGridEmitModeDisableVelocity  Flag to disable emitter interaction with velocity field.
eNvFlowGridEmitModeDisableDensity  Flag to disable emitter interaction with density field.
eNvFlowGridEmitModeDisableAlloc  Flag to disable emitter bound allocation.
eNvFlowGridEmitModeAllocShape  Emitter will allocate using shape to drive allocation instead of only bounds.
eNvFlowGridEmitModeAllocShapeOnly  Flags to configure for shape aware allocation only.


Function Documentation

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.

Parameters:
[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.

Parameters:
[out] params The parameters for Flow to fill out.

void NvFlowGridUpdateEmitSDFs ( NvFlowGrid *  grid,
NvFlowShapeSDF **  sdfs,
NvFlowUint  numSdfs 
)

Update internal array of SDFs that can be referenced by sdfOffset

Parameters:
[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.