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

Method write

Engine/source/gfx/bitmap/gBitmap.cpp:1033–1052  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1031}
1032
1033bool GBitmap::write(Stream& io_rStream) const
1034{
1035 // Handle versioning
1036 io_rStream.write(csFileVersion);
1037
1038 //-------------------------------------- Write the object
1039 io_rStream.write(U32(mInternalFormat));
1040
1041 io_rStream.write(mByteSize);
1042 io_rStream.write(mByteSize, mBits);
1043
1044 io_rStream.write(mWidth);
1045 io_rStream.write(mHeight);
1046
1047 io_rStream.write(mNumMipLevels);
1048 for (U32 i = 0; i < c_maxMipLevels; i++)
1049 io_rStream.write(mMipLevelOffsets[i]);
1050
1051 return (io_rStream.getStatus() == Stream::Ok);
1052}
1053
1054//------------------------------------------------------------------------------
1055//-------------------------------------- Persistent I/O

Callers 9

_compileShaderMethod · 0.45
_saveCompiledOutputMethod · 0.45
_compileShaderMethod · 0.45
_saveCompiledOutputMethod · 0.45
mngWriteDataFnFunction · 0.45
gifWriteDataFnFunction · 0.45
pngWriteDataFnFunction · 0.45
sWriteBMPFunction · 0.45
jpegWriteDataFnFunction · 0.45

Calls 2

U32Enum · 0.50
getStatusMethod · 0.45

Tested by

no test coverage detected