|
OpenMW
|
#include <ripplesimulation.hpp>
Public Member Functions | |
| RippleSimulation (osg::Group *parent, Resource::ResourceSystem *resourceSystem, const Fallback::Map *fallback) | |
| ~RippleSimulation () | |
| void | update (float dt) |
| void | addEmitter (const MWWorld::ConstPtr &ptr, float scale=1.f, float force=1.f) |
| adds an emitter, position will be tracked automatically More... | |
| void | removeEmitter (const MWWorld::ConstPtr &ptr) |
| void | updateEmitterPtr (const MWWorld::ConstPtr &old, const MWWorld::ConstPtr &ptr) |
| void | removeCell (const MWWorld::CellStore *store) |
| void | emitRipple (const osg::Vec3f &pos) |
| void | setWaterHeight (float height) |
| Change the height of the water surface, thus moving all ripples with it. More... | |
| void | clear () |
| Remove all active ripples. More... | |
Private Attributes | |
| osg::ref_ptr< osg::Group > | mParent |
| osg::ref_ptr < osgParticle::ParticleSystem > | mParticleSystem |
| osg::ref_ptr < osg::PositionAttitudeTransform > | mParticleNode |
| std::vector< Emitter > | mEmitters |
| MWRender::RippleSimulation::RippleSimulation | ( | osg::Group * | parent, |
| Resource::ResourceSystem * | resourceSystem, | ||
| const Fallback::Map * | fallback | ||
| ) |
| MWRender::RippleSimulation::~RippleSimulation | ( | ) |
| void MWRender::RippleSimulation::addEmitter | ( | const MWWorld::ConstPtr & | ptr, |
| float | scale = 1.f, |
||
| float | force = 1.f |
||
| ) |
adds an emitter, position will be tracked automatically
| void MWRender::RippleSimulation::clear | ( | ) |
Remove all active ripples.
| void MWRender::RippleSimulation::emitRipple | ( | const osg::Vec3f & | pos | ) |
| void MWRender::RippleSimulation::removeCell | ( | const MWWorld::CellStore * | store | ) |
| void MWRender::RippleSimulation::removeEmitter | ( | const MWWorld::ConstPtr & | ptr | ) |
| void MWRender::RippleSimulation::setWaterHeight | ( | float | height | ) |
Change the height of the water surface, thus moving all ripples with it.
| void MWRender::RippleSimulation::update | ( | float | dt | ) |
| dt | Time since the last frame |
| void MWRender::RippleSimulation::updateEmitterPtr | ( | const MWWorld::ConstPtr & | old, |
| const MWWorld::ConstPtr & | ptr | ||
| ) |
|
private |
|
private |
|
private |
|
private |
1.8.6