Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 25, 2006, 11:28:28 PM (18 years ago)
Author:
bensch
Message:

orxonox/new_class_id: now it should also be possible, to cache the resources, by suppling a LoadString.
This is vital to loading Resources, when you only know the TypeName and a LoadString, but not the c++-type and the LoadParameters as is the case when loading over the internet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/sound/resource_sound_buffer.cc

    r9811 r9823  
    99
    1010  ResourceSoundBuffer::ResourceSoundBuffer(const std::string& soundName)
    11   : SoundBuffer(), NewResource(&ResourceSoundBuffer::type)
     11      : SoundBuffer(), NewResource(&ResourceSoundBuffer::type)
    1212  {
    1313    this->registerObject(this, ResourceSoundBuffer::_objectList);
     
    3030
    3131
    32   Resources::Type ResourceSoundBuffer::type("SoundBuffer");
     32  Resources::tType<ResourceSoundBuffer> ResourceSoundBuffer::type("SoundBuffer");
    3333
    3434  ResourceSoundBuffer::SoundBufferResourcePointer::SoundBufferResourcePointer(const std::string& loadString, const Resources::KeepLevel& keepLevel, const SoundBufferData::Pointer& data)
    3535      : Resources::StorePointer(loadString, keepLevel) , pointer(data)
    36 {}
    37 }
     36{}}
Note: See TracChangeset for help on using the changeset viewer.