Om  1.0.0
A universal framework for multimedia simulation
Classes | Namespaces | Functions
omPhysicsForceResourceTranscoder.h File Reference
#include "omPhysicsResourcesConfig.h"

Classes

class  om::physics::resources::ForceResourceTranscoder
 A class that encodes and decodes forces to/from the resource set format. More...
 

Namespaces

 om
 The enclosing namespace for the entire Om library.
 
 om::physics
 A namespace that handles simulation of physically-based dynamics.
 
 om::physics::resources
 A namespace that contains classes that load and save physics data to the resource file format.
 

Functions

 OM_RESOURCE_TYPE_COPY (om::physics::forces::Force, force, const om::physics::forces::ForceType &type=force.getType();if(type==om::physics::forces::ForceType::of< om::physics::forces::Spring >()) return util::construct< om::physics::forces::Spring >(*(om::physics::forces::Spring *)&force);else if(type==om::physics::forces::ForceType::of< om::physics::forces::Thruster >()) return util::construct< om::physics::forces::Thruster >(*(om::physics::forces::Thruster *)&force);return((void *) 0);)
 

Function Documentation

OM_RESOURCE_TYPE_COPY ( om::physics::forces::Force  ,
force  ,
const om::physics::forces::ForceType type = force.getType();if(type==om::physics::forces::ForceType::ofom::physics::forces::Spring >()) return util::construct< om::physics::forces::Spring >(*(om::physics::forces::Spring *)&force);else if(type==om::physics::forces::ForceType::ofom::physics::forces::Thruster >()) return util::construct< om::physics::forces::Thruster >(*(om::physics::forces::Thruster *)&force);return((void *) 0); 
)