Exemplo n.º 1
0
 void Activator::insertObjectRendering (const MWWorld::Ptr& ptr, MWRender::RenderingInterface& renderingInterface) const
 {
     const std::string model = getModel(ptr);
     if (!model.empty()) {
         MWRender::Actors& actors = renderingInterface.getActors();
         actors.insertActivator(ptr);
     }
 }
Exemplo n.º 2
0
    void Light::insertObjectRendering (const MWWorld::Ptr& ptr, MWRender::RenderingInterface& renderingInterface) const
    {
        MWWorld::LiveCellRef<ESM::Light> *ref =
            ptr.get<ESM::Light>();

        // Insert even if model is empty, so that the light is added
        MWRender::Actors& actors = renderingInterface.getActors();
        actors.insertActivator(ptr, !(ref->mBase->mData.mFlags & ESM::Light::OffDefault));
    }
Exemplo n.º 3
0
 void Creature::insertObjectRendering (const MWWorld::Ptr& ptr, MWRender::RenderingInterface& renderingInterface) const
 {
     MWRender::Actors& actors = renderingInterface.getActors();
     actors.insertCreature(ptr);
 }
Exemplo n.º 4
0
 void Npc::insertObjectRendering (const MWWorld::Ptr& ptr, MWRender::RenderingInterface& renderingInterface) const
 {
     renderingInterface.getActors().insertNPC(ptr, getInventoryStore(ptr));
 }