1 #ifndef OPENMW_MWRENDER_RIPPLESIMULATION_H
2 #define OPENMW_MWRENDER_RIPPLESIMULATION_H
6 #include "../mwworld/ptr.hpp"
11 class PositionAttitudeTransform;
Wrapper class that constructs and provides access to the most commonly used resource subsystems...
Definition: resourcesystem.hpp:24
Definition: ripplesimulation.hpp:40
contains settings imported from the Morrowind INI file.
Definition: fallback.hpp:12
float mScale
Definition: ripplesimulation.hpp:36
void clear()
Remove all active ripples.
Definition: ripplesimulation.cpp:210
Definition: ripplesimulation.hpp:32
~RippleSimulation()
Definition: ripplesimulation.cpp:113
void updateEmitterPtr(const MWWorld::ConstPtr &old, const MWWorld::ConstPtr &ptr)
Definition: ripplesimulation.cpp:170
void emitRipple(const osg::Vec3f &pos)
Definition: ripplesimulation.cpp:195
osg::ref_ptr< osg::PositionAttitudeTransform > mParticleNode
Definition: ripplesimulation.hpp:67
osg::Vec3f mLastEmitPosition
Definition: ripplesimulation.hpp:35
void update(float dt)
Definition: ripplesimulation.cpp:118
Mutable state of a cell.
Definition: cellstore.hpp:53
RippleSimulation(osg::Group *parent, Resource::ResourceSystem *resourceSystem, const Fallback::Map *fallback)
Definition: ripplesimulation.cpp:84
void addEmitter(const MWWorld::ConstPtr &ptr, float scale=1.f, float force=1.f)
adds an emitter, position will be tracked automatically
Definition: ripplesimulation.cpp:148
Pointer to a const LiveCellRef.
Definition: ptr.hpp:90
osg::ref_ptr< osgParticle::ParticleSystem > mParticleSystem
Definition: ripplesimulation.hpp:66
osg::ref_ptr< osg::Group > mParent
Definition: ripplesimulation.hpp:64
float mForce
Definition: ripplesimulation.hpp:37
MWWorld::ConstPtr mPtr
Definition: ripplesimulation.hpp:34
void removeCell(const MWWorld::CellStore *store)
Definition: ripplesimulation.cpp:182
void setWaterHeight(float height)
Change the height of the water surface, thus moving all ripples with it.
Definition: ripplesimulation.cpp:205
std::vector< Emitter > mEmitters
Definition: ripplesimulation.hpp:69
void removeEmitter(const MWWorld::ConstPtr &ptr)
Definition: ripplesimulation.cpp:158