bool Sound::BeginLoad(Deserializer& source) { PROFILE(LoadSound); bool success = false; if (GetExtension(source.GetName()) == ".ogg") success = LoadOggVorbis(source); else if (GetExtension(source.GetName()) == ".wav") success = LoadWav(source); else success = LoadRaw(source); // Load optional parameters if (success) LoadParameters(); return success; }
HeightMap::HeightMap( int width, int depth, const std::string& filename, const float& heightScale, const float& heightOffset) { LoadRaw(width, depth, filename, heightScale, heightOffset); }