mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
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:
parent
106346630d
commit
43c2c918c7
3 changed files with 68 additions and 23 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue