51 virtual float mass()
const;
64 virtual void update(
double time,
double elapsedTime,
66 bool& destroyFlag) = 0;
75 virtual float x()
const;
78 virtual float y()
const;
81 virtual float radius()
const;
84 virtual int type()
const;
double myT0
Definition: DtDropParticle.h:100
DtDropParticle()=delete
private default constructor. not allowed.
virtual void gridPosition(int &gx, int &gy) const
get the grid position
float myX
Definition: DtDropParticle.h:98
virtual int type() const
type (0)
static bool myDropletInitialized
Definition: DtDropParticle.h:112
static void precomputeDropletNormalsIfNeeded()
Precompute a normal map for a drop.
bool myMergeable
Definition: DtDropParticle.h:107
float myAcceleration
Definition: DtDropParticle.h:101
int myLastGridY
Definition: DtDropParticle.h:105
static DtVector4< unsigned int > thePrecomputedDropletNormals[PRECOMPUTED_DIM][PRECOMPUTED_DIM]
Definition: DtDropParticle.h:110
int myLastGridX
Definition: DtDropParticle.h:105
virtual float intensity(void) const
intensity (1)
virtual float x() const
get x
virtual void affectedCells(std::vector< DtVector2< short > > &cells) const
Gets all screen grid cells covered by this drop.
virtual ~DtDropParticle()
destructor
virtual void update(double time, double elapsedTime, DtGridCell grid[][GRID_DIMENSION], bool &destroyFlag)=0
Update the particle.
DtDropParticle & operator=(const DtDropParticle &)=delete
prevent assignment
float myY
Definition: DtDropParticle.h:98
virtual const Vector2_32 & velocity() const
get the velocity
Vector2_32 myVelocity
Definition: DtDropParticle.h:104
Vector2_32 myDirection
Definition: DtDropParticle.h:104
float myMass
Definition: DtDropParticle.h:98
virtual void computeRadius(double waterOnScreenSize)
compute radius
DtDropParticle * myParent
Definition: DtDropParticle.h:102
virtual float y() const
get y
Internal struct for one cell of our grid of glass properties.
Definition: DtGridCell.h:19
#define GRID_DIMENSION
Definition: DtWaterOnScreenDefines.h:56
Local class for a single drop particle on the screen.
Definition: DtDropParticle.h:25
Contains DLL export macros.
virtual void setMass(float m)
virtual float radius() const
get radius
virtual void setParent(DtDropParticle *drop)
If this drop was left behind from wetting from another drop, keep track of the parent drop...
Contains makVrv::DtGridCell struct.
float myV0
Definition: DtDropParticle.h:98
static const void * precomputedDropletNormalsDataPointer(void)
accesss the grid of precomputed normals as a void* pointer (so that they can be copied into a gpu buf...
float myRadius
Definition: DtDropParticle.h:98
#define PRECOMPUTED_DIM
Definition: DtWaterOnScreenDefines.h:42
virtual float mass() const
set/get the mass
virtual DtDropParticle * parent() const
virtual bool mergeable() const
can this be merged with another particle?