| 1069 | } |
| 1070 | |
| 1071 | bool GBitmap::writeBitmap( const String &bmType, Stream &ioStream, U32 compressionLevel ) |
| 1072 | { |
| 1073 | const GBitmap::Registration *regInfo = GBitmap::sFindRegInfo( bmType ); |
| 1074 | |
| 1075 | if ( regInfo == NULL ) |
| 1076 | { |
| 1077 | Con::errorf( "[GBitmap::writeBitmap] unable to find registration for extension [%s]", bmType.c_str() ); |
| 1078 | return NULL; |
| 1079 | } |
| 1080 | |
| 1081 | return regInfo->writeFunc( this, ioStream, (compressionLevel == U32_MAX) ? regInfo->defaultCompression : compressionLevel ); |
| 1082 | } |
| 1083 | |
| 1084 | template<> void *Resource<GBitmap>::create(const Torque::Path &path) |
| 1085 | { |
no test coverage detected