| 1207 | } |
| 1208 | |
| 1209 | bool GBitmap::writeBitmap( const String &bmType, Stream &ioStream, U32 compressionLevel ) |
| 1210 | { |
| 1211 | const GBitmap::Registration *regInfo = GBitmap::sFindRegInfo( bmType ); |
| 1212 | |
| 1213 | if ( regInfo == NULL ) |
| 1214 | { |
| 1215 | Con::errorf( "[GBitmap::writeBitmap] unable to find registration for extension [%s]", bmType.c_str() ); |
| 1216 | return false; |
| 1217 | } |
| 1218 | |
| 1219 | return regInfo->writeFunc( this, ioStream, (compressionLevel == U32_MAX) ? regInfo->defaultCompression : compressionLevel ); |
| 1220 | } |
| 1221 | |
| 1222 | template<> void *Resource<GBitmap>::create(const Torque::Path &path) |
| 1223 | { |
no test coverage detected