Expanded Features

Added ability to set format dynamically on read from stream.
Added other formats to write to a stream.
This commit is contained in:
marauder2k7 2024-01-20 22:47:58 +00:00
parent 106346630d
commit 43c2c918c7
3 changed files with 68 additions and 23 deletions

View file

@ -1254,7 +1254,7 @@ bool GBitmap::writeBitmapStream(const String& bmType, Stream& ioStream, U32 comp
return false;
}
return regInfo->writeStreamFunc(ioStream, this, (compressionLevel == U32_MAX) ? regInfo->defaultCompression : compressionLevel);
return regInfo->writeStreamFunc(bmType, ioStream, this, (compressionLevel == U32_MAX) ? regInfo->defaultCompression : compressionLevel);
}
template<> void *Resource<GBitmap>::create(const Torque::Path &path)