예제 #1
0
파일: Sound.cpp 프로젝트: BigManager/Urho3D
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;
}
예제 #2
0
HeightMap::HeightMap( int width, int depth, const std::string& filename, const float& heightScale, const float& heightOffset)
{
	LoadRaw(width, depth, filename, heightScale, heightOffset);
}