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

Method writeNextMip

Engine/source/gfx/bitmap/ddsLoader.cpp:785–790  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

783}
784
785void DDSFile::SurfaceData::writeNextMip(DDSFile *dds, Stream &s, U32 height, U32 width, U32 mipLevel)
786{
787 U32 size = dds->getSurfaceSize(height, width, mipLevel);
788 if(!s.write(size, mMips[mipLevel]))
789 Con::errorf("DDSFile::SurfaceData::writeNextMip - failed to write mip!");
790}
791
792//------------------------------------------------------------------------------
793

Callers 1

writeMethod · 0.80

Calls 3

errorfFunction · 0.85
getSurfaceSizeMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected