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

Classes

class  om::physics::resources::PhysicsShapeResourceTranscoder
 A class that encodes and decodes physics shapes 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::shapes::PhysicsShape, shape, const om::physics::shapes::ShapeType &type=shape.getType();if(type==om::physics::shapes::ShapeType::of< om::physics::shapes::SphereShape >()) return util::construct< om::physics::shapes::SphereShape >(*(om::physics::shapes::SphereShape *)&shape);else if(type==om::physics::shapes::ShapeType::of< om::physics::shapes::CapsuleShape >()) return util::construct< om::physics::shapes::CapsuleShape >(*(om::physics::shapes::CapsuleShape *)&shape);else if(type==om::physics::shapes::ShapeType::of< om::physics::shapes::CylinderShape >()) return util::construct< om::physics::shapes::CylinderShape >(*(om::physics::shapes::CylinderShape *)&shape);else if(type==om::physics::shapes::ShapeType::of< om::physics::shapes::BoxShape >()) return util::construct< om::physics::shapes::BoxShape >(*(om::physics::shapes::BoxShape *)&shape);else if(type==om::physics::shapes::ShapeType::of< om::physics::shapes::ConvexShape >()) return util::construct< om::physics::shapes::ConvexShape >(*(om::physics::shapes::ConvexShape *)&shape);return((void *) 0);)
 

Function Documentation