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

@ -75,7 +75,7 @@ public:
typedef bool(*ReadStreamFunc)(Stream& stream, GBitmap* bitmap, U32 len);
/// The write functions prototype. Compression levels are image-specific - see their registration declaration for details.
typedef bool(*WriteFunc)(const Torque::Path& path, GBitmap* bitmap, U32 compressionLevel);
typedef bool(*WriteStreamFunc)(Stream& stream, GBitmap* bitmap, U32 compressionLevel);
typedef bool(*WriteStreamFunc)(const String& bmType, Stream& stream, GBitmap* bitmap, U32 compressionLevel);
/// Used to sort the registrations so that
/// lookups occur in a fixed order.