mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-10 06:04:37 +00:00
STBImage
STB used for loading and writing images.
This commit is contained in:
parent
d671f2611e
commit
108ba34c08
21 changed files with 20355 additions and 1737 deletions
|
|
@ -74,7 +74,7 @@ bool TerrainBlock::exportHeightMap( const UTF8 *filePath, const String &format )
|
|||
return false;
|
||||
}
|
||||
|
||||
if ( !output.writeBitmap( format, stream ) )
|
||||
if ( !output.writeBitmap( format, filePath) )
|
||||
{
|
||||
Con::errorf( "TerrainBlock::exportHeightMap() - Error writing %s: %s !", format.c_str(), filePath );
|
||||
return false;
|
||||
|
|
@ -127,7 +127,7 @@ bool TerrainBlock::exportLayerMaps( const UTF8 *filePrefix, const String &format
|
|||
return false;
|
||||
}
|
||||
|
||||
if ( !output.writeBitmap( format, stream ) )
|
||||
if ( !output.writeBitmap( format, filePath) )
|
||||
{
|
||||
Con::errorf( "TerrainBlock::exportLayerMaps() - Error writing %s: %s !", format.c_str(), filePath );
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -486,7 +486,7 @@ void TerrainBlock::_updateBaseTexture(bool writeToCache)
|
|||
|
||||
GBitmap bitmap(blendTex->getWidth(), blendTex->getHeight(), false, GFXFormatR8G8B8A8);
|
||||
blendTex->copyToBmp(&bitmap);
|
||||
bitmap.writeBitmap(formatToExtension(mBaseTexFormat), stream);
|
||||
bitmap.writeBitmap(formatToExtension(mBaseTexFormat), _getBaseTexCacheFileName());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue