Om
1.0.0
A universal framework for multimedia simulation
|
A class that simulates virtual acoustics for an engine context. More...
#include <omEngineAcousticSystem.h>
Public Member Functions | |
AcousticSystem () | |
Create a new acoustic system with the default state. More... | |
virtual void | update (EngineContext &engine, const Time &dt) |
Update the state of the entities in the specified engine context for the given timestep. More... | |
virtual void | addComponent (const ResourceType &type, void *component, EngineContext &engine) |
Update the internal state of the system for a component that was added to the engine. More... | |
virtual void | removeComponent (const ResourceType &type, void *component, EngineContext &engine) |
Update the internal state of the system for a component that was removed from the engine. More... | |
AcousticContext * | getContext () const |
Return a pointer to the acoustics simulation context that is being used by this acoustic system. More... | |
Bool | setContext (AcousticContext *newContext) |
Set a pointer to the acoustics simulation context that should be used by this acoustic system. More... | |
virtual Shared< SceneContext > | newSceneContext () |
Create a new sound scene context. More... | |
Public Member Functions inherited from om::engine::base::EngineSystem | |
virtual | ~EngineSystem () |
Destroy a system and release all internal resources. More... | |
virtual void | addComponent (const ResourceType &type, void *component, EngineContext &engine) |
Update the internal state of the system for a component that was added to the engine. More... | |
virtual void | removeComponent (const ResourceType &type, void *component, EngineContext &engine) |
Update the internal state of the system for a component that was removed from the engine. More... | |
const SystemType & | getType () const |
Return an enum value indicating the semantic type of this engine system. More... | |
Public Member Functions inherited from om::engine::base::SceneContextFactory | |
virtual | ~SceneContextFactory () |
Destroy a scene context and release internal resources. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from om::engine::base::EngineSystem | |
EngineSystem () | |
Create a new engine system with the UNDEFINED system type. More... | |
EngineSystem (const SystemType &newSystemType) | |
Create a new engine system with the specified system type. More... | |
A class that simulates virtual acoustics for an engine context.
om::engine::acoustics::AcousticSystem::AcousticSystem | ( | ) |
Create a new acoustic system with the default state.
|
virtual |
Update the state of the entities in the specified engine context for the given timestep.
Reimplemented from om::engine::base::EngineSystem.
|
virtual |
Update the internal state of the system for a component that was added to the engine.
|
virtual |
Update the internal state of the system for a component that was removed from the engine.
|
inline |
Return a pointer to the acoustics simulation context that is being used by this acoustic system.
Bool om::engine::acoustics::AcousticSystem::setContext | ( | AcousticContext * | newContext | ) |
Set a pointer to the acoustics simulation context that should be used by this acoustic system.
The method returns whether or not the acoustic context can be used to do the simulation.
|
virtual |
Create a new sound scene context.
Implements om::engine::base::SceneContextFactory.