![]() |
Rise
The Vieneo Province
|
#include <WindshieldRain.h>
Classes | |
| struct | BladeSweep |
| struct | BeadSample |
| struct | WakeSample |
| struct | WaterDrop |
| struct | CappedImpactIndex |
Public Types | |
| using | Field = std::vector<float> |
Public Member Functions | |
| Surface (float width=1, float height=1, uint32_t seed=9) | |
| void | Clear () |
| void | Impact (Point position, float radius, bool coalesce=true) |
| void | Splash (Point position, float radius, Point velocity={}, bool coalesce=true) |
| void | Update (float elapsed, float rain, Point acceleration, Point wind, float airDensity, float airSpeed=-1.f, AirJet airJet={}) |
| void | WipeTriangle (Point a, Point b, Point c) |
| void | SweepBlades (const std::vector< BladeSweep > &sweeps, float elapsed) |
| void | Rebuild () |
| void | BeadMap (std::vector< BeadSample > &map, std::vector< WakeSample > *wakes=nullptr, std::vector< float > *scratchDistances=nullptr) const |
| uint64_t | Revision () const |
| int | LastStepCount () const |
| const Field & | Water () const |
| const Field & | Residue () const |
| const std::vector< Drop > & | Drops () const |
| size_t | DropLimit () const |
| float | Width () const |
| float | Height () const |
| bool | Wet () const |
| float | Wetness () const |
Static Public Attributes | |
| static constexpr int | Resolution = 256 |
| static constexpr size_t | MaxDrops = 8192 |
| static constexpr float | TrailHalfLifeSeconds = 12.f |
| static constexpr float | BeadRadiusScale = 1.25f |
Private Member Functions | |
| void | CappedImpact (Point position, float radius, CappedImpactIndex &index) |
| void | MaterializeWater () const |
| void | Coalesce () |
| float | Random () |
| float | TrailAt (Point p) const |
| void | Stamp (Field &field, Point p, float radius, float amount, bool residue=false) const |
| void | StampTrail (Point start, Point delta, float radius, float amount, int samples) |
Static Private Member Functions | |
| static float | Volume (const Drop &drop) |
| static bool | Touching (const Drop &a, const Drop &b) |
| static void | Merge (Drop &a, const Drop &b) |
| static float | Roughness (Point p) |
| static int | Pixel (float v, float extent) |
Private Attributes | |
| float | width |
| float | height |
| float | accumulator = 0 |
| float | spawnCredit = 0 |
| uint32_t | random |
| size_t | splashPopulation =0 |
| int | lastStepCount = 0 |
| uint64_t | revision = 0 |
| std::vector< Drop > | drops |
| Field | trail = Field(Resolution * Resolution) |
| Field | water = Field(Resolution * Resolution) |
| std::vector< WaterDrop > | waterDrops |
Definition at line 85 of file WindshieldRain.h.
| using WindshieldRain::Surface::Field = std::vector<float> |
Definition at line 91 of file WindshieldRain.h.
|
inline |
Definition at line 92 of file WindshieldRain.h.
|
inline |
Definition at line 516 of file WindshieldRain.h.
|
inlineprivate |
|
inline |
Definition at line 95 of file WindshieldRain.h.
|
inlineprivate |
|
inline |
|
inline |
Definition at line 604 of file WindshieldRain.h.
|
inline |
|
inline |
Definition at line 601 of file WindshieldRain.h.
|
inlineprivate |
Definition at line 678 of file WindshieldRain.h.
Definition at line 694 of file WindshieldRain.h.
|
inlinestaticprivate |
|
inlineprivate |
Definition at line 746 of file WindshieldRain.h.
|
inline |
|
inline |
|
inline |
|
inlinestaticprivate |
Definition at line 732 of file WindshieldRain.h.
|
inline |
Definition at line 116 of file WindshieldRain.h.
|
inlineprivate |
Definition at line 765 of file WindshieldRain.h.
|
inline |
|
inlineprivate |
Definition at line 755 of file WindshieldRain.h.
|
inline |
Definition at line 140 of file WindshieldRain.h.
|
inlinestaticprivate |
|
inline |
|
inline |
Definition at line 612 of file WindshieldRain.h.
|
inline |
Definition at line 613 of file WindshieldRain.h.
|
inline |
|
private |
Definition at line 620 of file WindshieldRain.h.
|
staticconstexpr |
Definition at line 512 of file WindshieldRain.h.
|
private |
Definition at line 625 of file WindshieldRain.h.
|
private |
Definition at line 620 of file WindshieldRain.h.
|
private |
Definition at line 623 of file WindshieldRain.h.
|
staticconstexpr |
Definition at line 89 of file WindshieldRain.h.
|
private |
Definition at line 621 of file WindshieldRain.h.
|
staticconstexpr |
Definition at line 88 of file WindshieldRain.h.
|
private |
Definition at line 624 of file WindshieldRain.h.
|
private |
Definition at line 620 of file WindshieldRain.h.
|
private |
Definition at line 622 of file WindshieldRain.h.
|
private |
Definition at line 626 of file WindshieldRain.h.
|
staticconstexpr |
Definition at line 90 of file WindshieldRain.h.
|
mutableprivate |
Definition at line 627 of file WindshieldRain.h.
|
mutableprivate |
Definition at line 629 of file WindshieldRain.h.
|
private |
Definition at line 620 of file WindshieldRain.h.