src/engine.cpp
/* ********************************* S E L E C T O R ********************************* */
S E L E C T O R
S E L E C T O R
int workshop::selector::init(engine* e, object_handle* object)
{
  assert(resource_ == nullptr);
  assert(e);
  assert(object);
  assert(object->resource_);
  workshop::engine::irr_runtime* r = e->runtime();
  assert(r->smgr);
  resource_ = r->smgr->createTriangleSelector(object->resource_);
  if (!resource_)
    return SELECTOR_INIT_FAIL;
  return SELECTOR_INIT_SUCCESS;
}
int workshop :: selector :: init ( engine * e , object_handle * object ) { assert ( resource_ == nullptr ) ; assert ( e ) ; assert ( object ) ; assert ( object -> resource_ ) ; workshop :: engine :: irr_runtime * r = e -> runtime ( ) ; assert ( r -> smgr ) ; resource_ = r -> smgr -> createTriangleSelector ( object -> resource_ ) ; if ( ! resource_ ) return SELECTOR_INIT_FAIL ; return SELECTOR_INIT_SUCCESS ; }
S E L E C T O R
S E L E C T O R