mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 19:53:48 +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
|
|
@ -318,12 +318,12 @@ void ImposterCapture::_separateAlpha( GBitmap *imposterOut )
|
|||
{
|
||||
FileStream fs;
|
||||
if ( fs.open( "./imposterout.png", Torque::FS::File::Write ) )
|
||||
imposterOut->writeBitmap( "png", fs );
|
||||
imposterOut->writeBitmap( "png", "./imposterout.png" );
|
||||
|
||||
fs.close();
|
||||
|
||||
if ( fs.open( "./temp.png", Torque::FS::File::Write ) )
|
||||
bmp->writeBitmap( "png", fs );
|
||||
bmp->writeBitmap( "png", "./temp.png" );
|
||||
|
||||
fs.close();
|
||||
}
|
||||
|
|
@ -484,22 +484,22 @@ void ImposterCapture::capture( const MatrixF &rotMatrix,
|
|||
// Render out the bitmaps for debug purposes.
|
||||
FileStream fs;
|
||||
if ( fs.open( "./blackbmp.png", Torque::FS::File::Write ) )
|
||||
mBlackBmp->writeBitmap( "png", fs );
|
||||
mBlackBmp->writeBitmap( "png", "./blackbmp.png" );
|
||||
|
||||
fs.close();
|
||||
|
||||
if ( fs.open( "./whitebmp.png", Torque::FS::File::Write ) )
|
||||
mWhiteBmp->writeBitmap( "png", fs );
|
||||
mWhiteBmp->writeBitmap( "png", "./whitebmp.png" );
|
||||
|
||||
fs.close();
|
||||
|
||||
if ( fs.open( "./normalbmp.png", Torque::FS::File::Write ) )
|
||||
(*normalMapOut)->writeBitmap( "png", fs );
|
||||
(*normalMapOut)->writeBitmap( "png", "./normalbmp.png" );
|
||||
|
||||
fs.close();
|
||||
|
||||
if ( fs.open( "./finalimposter.png", Torque::FS::File::Write ) )
|
||||
(*imposterOut)->writeBitmap( "png", fs );
|
||||
(*imposterOut)->writeBitmap( "png", "./finalimposter.png" );
|
||||
|
||||
fs.close();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue