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

Classes

class  om::graphics::resources::GraphicsShapeResourceTranscoder
 A class that encodes and decodes graphics shapes to/from the resource set format. More...
 

Namespaces

 om
 The enclosing namespace for the entire Om library.
 
 om::graphics
 A namespace containing classes for hardware-based graphics rendering.
 
 om::graphics::resources
 A namespace containing classes that read and write the resource file format.
 

Functions

 OM_RESOURCE_TYPE_COPY (om::graphics::shapes::GraphicsShape, shape, const om::graphics::shapes::ShapeType &type=shape.getShapeType();if(type==om::graphics::shapes::ShapeType::of< om::graphics::shapes::SphereShape >()) return util::construct< om::graphics::shapes::SphereShape >(*(om::graphics::shapes::SphereShape *)&shape);else if(type==om::graphics::shapes::ShapeType::of< om::graphics::shapes::CapsuleShape >()) return util::construct< om::graphics::shapes::CapsuleShape >(*(om::graphics::shapes::CapsuleShape *)&shape);else if(type==om::graphics::shapes::ShapeType::of< om::graphics::shapes::CylinderShape >()) return util::construct< om::graphics::shapes::CylinderShape >(*(om::graphics::shapes::CylinderShape *)&shape);else if(type==om::graphics::shapes::ShapeType::of< om::graphics::shapes::BoxShape >()) return util::construct< om::graphics::shapes::BoxShape >(*(om::graphics::shapes::BoxShape *)&shape);else if(type==om::graphics::shapes::ShapeType::of< om::graphics::shapes::MeshShape >()) return util::construct< om::graphics::shapes::MeshShape >(*(om::graphics::shapes::MeshShape *)&shape);else return((void *) 0);)
 

Function Documentation