Added a way to update the texture atlas to the current state of the shapes ( updates offsets and dest size ).

A lot of minor fixes.
This commit is contained in:
spartanj
2011-06-18 05:05:52 -03:00
parent 63c058eb59
commit e26ca9f87a
34 changed files with 227 additions and 84 deletions

View File

@@ -60,13 +60,11 @@ bool cSoundBuffer::LoadFromFile(const std::string& Filename) {
bool cSoundBuffer::LoadFromPack( cPack* Pack, const std::string& FilePackPath ) {
bool Ret = false;
cPack::PointerData PData;
cPack::SafePointerData PData;
if ( Pack->IsOpen() && Pack->ExtractFileToMemory( FilePackPath, PData ) )
Ret = LoadFromMemory( reinterpret_cast<const char*> ( PData.Data ), PData.DataSize );
eeSAFE_DELETE( PData.Data );
return Ret;
}