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

Method writeBitmap

Engine/source/gfx/bitmap/gBitmap.cpp:1071–1082  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1069}
1070
1071bool 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
1084template<> void *Resource<GBitmap>::create(const Torque::Path &path)
1085{

Callers 14

_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
pushFrameMethod · 0.80
writeMethod · 0.80
getRenderModelTextureMethod · 0.80

Calls 2

errorfFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected