コード例 #1
0
    void SoundEditAction::_deleteSoundEntity(size_t index)
    {
        Ogre::Entity* entity = mSoundEntities[index];
        entity->destroy();

        mSoundEntities.erase(mSoundEntities.begin() + index);
    }
コード例 #2
0
    void SoundEditAction::_clearAllSoundEntities(void)
    {
        for (size_t i=0; i<mSoundEntities.size(); ++i)
        {
            Ogre::Entity* entity = mSoundEntities[i];
            entity->destroy();
        }
        mSoundEntities.clear();

        mNextNameIndex = 0;
    }