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

Method writeBitmap

Engine/source/gfx/bitmap/gBitmap.cpp:1209–1220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1207}
1208
1209bool 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
1222template<> void *Resource<GBitmap>::create(const Torque::Path &path)
1223{

Callers 15

_updateMethod · 0.80
_updateBaseTextureMethod · 0.80
exportHeightMapMethod · 0.80
exportLayerMapsMethod · 0.80
_singleCaptureMethod · 0.80
writeMethod · 0.80
exportStripMethod · 0.80
dumpToDiskMethod · 0.80
dumpImageMethod · 0.80
gBitmap.cppFile · 0.80
pushFrameMethod · 0.80
writeMethod · 0.80

Calls 2

errorfFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected