| 245 | } |
| 246 | |
| 247 | bool GFXTextureObject::dumpToDisk( const String &bmType, const String &path ) |
| 248 | { |
| 249 | FileStream stream; |
| 250 | if ( !stream.open( path, Torque::FS::File::Write ) ) |
| 251 | return false; |
| 252 | |
| 253 | if ( mBitmap ) |
| 254 | return mBitmap->writeBitmap( bmType, stream ); |
| 255 | |
| 256 | GBitmap bitmap( getWidth(), getHeight(), false, getFormat() ); |
| 257 | copyToBmp( &bitmap ); |
| 258 | return bitmap.writeBitmap( bmType, stream ); |
| 259 | } |
no test coverage detected