add BakeAllBackgroundChanges

This commit is contained in:
Chris Danford
2005-07-18 01:52:01 +00:00
parent b50482c185
commit f93cb4e320
4 changed files with 30 additions and 5 deletions
+11
View File
@@ -6,6 +6,7 @@
#include "IniFile.h"
#include "RageLog.h"
#include <set>
#include "Background.h"
bool BackgroundDef::operator<( const BackgroundDef &other ) const
@@ -299,6 +300,16 @@ found_files:
StripCvs( vsPathsOut, vsNamesOut );
}
void BackgroundUtil::BakeAllBackgroundChanges( Song *pSong )
{
Background bg;
bg.LoadFromSong( pSong );
vector<BackgroundChange> *vBGChanges[NUM_BackgroundLayer];
FOREACH_BackgroundLayer( i )
vBGChanges[i] = &pSong->GetBackgroundChanges(i);
bg.GetLoadedBackgroundChanges( vBGChanges );
}
/*
* (c) 2001-2004 Chris Danford, Ben Nordstrom
* All rights reserved.