示例#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);
     }
 }
示例#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));
    }
示例#3
0
 void Creature::insertObjectRendering (const MWWorld::Ptr& ptr, MWRender::RenderingInterface& renderingInterface) const
 {
     MWRender::Actors& actors = renderingInterface.getActors();
     actors.insertCreature(ptr);
 }
示例#4
0
文件: npc.cpp 项目: emoose/openmw
 void Npc::insertObjectRendering (const MWWorld::Ptr& ptr, MWRender::RenderingInterface& renderingInterface) const
 {
     renderingInterface.getActors().insertNPC(ptr, getInventoryStore(ptr));
 }