#include "object3d.h" #include "image.h" namespace wp { object3d::object3d (object3d::Type type) { this->m_type = type; } template T* object3d::as() { return (T*) this; } template bool object3d::is() { return false; } template <> bool object3d::is() { return this->m_type == Type::Type_Image; } }