Data Structures | |
| struct | NvFlowGridMaterialHandle |
| Handle provided by grid to reference materials. More... | |
| struct | NvFlowGridMaterialParams |
| Grid material parameters. More... | |
| struct | NvFlowGridMaterialPerComponent |
| Grid material per component parameters. More... | |
Enumerations | |
| enum | NvFlowGridComponent { eNvFlowGridComponentVelocity = 0, eNvFlowGridComponentSmoke = 1, eNvFlowGridComponentTemperature = 2, eNvFlowGridComponentFuel = 3, eNvFlowGridNumComponents = 4 } |
| Grid component IDs. More... | |
Functions | |
| NvFlowGridMaterialHandle | NvFlowGridCreateMaterial (NvFlowGrid *grid, const NvFlowGridMaterialParams *params) |
| NvFlowGridMaterialHandle | NvFlowGridGetDefaultMaterial (NvFlowGrid *grid) |
| void | NvFlowGridMaterialParamsDefaults (NvFlowGridMaterialParams *params) |
| void | NvFlowGridReleaseMaterial (NvFlowGrid *grid, NvFlowGridMaterialHandle material) |
| void | NvFlowGridSetMaterialParams (NvFlowGrid *grid, NvFlowGridMaterialHandle material, const NvFlowGridMaterialParams *params) |
| enum NvFlowGridComponent |
| NvFlowGridMaterialHandle NvFlowGridCreateMaterial | ( | NvFlowGrid * | grid, | |
| const NvFlowGridMaterialParams * | params | |||
| ) |
Creates new grid material, initializes to params.
| [in] | grid | The Flow grid to set parameters on. |
| [in] | params | The new parameter values. |
| NvFlowGridMaterialHandle NvFlowGridGetDefaultMaterial | ( | NvFlowGrid * | grid | ) |
Gets a handle to the default grid material.
| [in] | grid | The grid to return its default grid material. |
| void NvFlowGridMaterialParamsDefaults | ( | NvFlowGridMaterialParams * | params | ) |
Allows the application to request default grid material parameters from Flow.
| [out] | params | The parameters for Flow to fill out. |
| void NvFlowGridReleaseMaterial | ( | NvFlowGrid * | grid, | |
| NvFlowGridMaterialHandle | material | |||
| ) |
Release grid material
| [in] | grid | The grid to set parameters on. |
| [in] | material | Handle to material to release. |
| void NvFlowGridSetMaterialParams | ( | NvFlowGrid * | grid, | |
| NvFlowGridMaterialHandle | material, | |||
| const NvFlowGridMaterialParams * | params | |||
| ) |
Sets material parameters, persistent over multiple grid updates.
| [in] | grid | The grid to set parameters on. |
| [in] | material | Handle to material to update. |
| [in] | params | The new parameter values. |