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

Method writeNextMip

Engine/source/gfx/bitmap/ddsFile.cpp:598–603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

596}
597
598void DDSFile::SurfaceData::writeNextMip(DDSFile *dds, Stream &s, U32 height, U32 width, U32 mipLevel)
599{
600 U32 size = dds->getSurfaceSize(height, width, mipLevel);
601 if(!s.write(size, mMips[mipLevel]))
602 Con::errorf("DDSFile::SurfaceData::writeNextMip - failed to write mip!");
603}
604
605//------------------------------------------------------------------------------
606

Callers 1

writeMethod · 0.80

Calls 3

errorfFunction · 0.50
getSurfaceSizeMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected