MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / dumpToDisk

Method dumpToDisk

Engine/source/gfx/gfxTextureObject.cpp:247–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247bool 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}

Callers 3

extractTextureMethod · 0.80
postEffect.cppFile · 0.80
saveCompositeTextureMethod · 0.80

Calls 4

getWidthFunction · 0.85
writeBitmapMethod · 0.80
openMethod · 0.65
getHeightFunction · 0.50

Tested by

no test coverage detected