MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / Decode_Image

Method Decode_Image

Source/PC/Graphics_PC.cpp:171–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171sImage cGraphics_PC::Decode_Image(const std::string& pFilename, const size_t pCount, const size_t pPaletteOffset, const size_t pStartIndex) {
172
173 sImage TmpImage;
174
175 TmpImage.mData = g_Resource->fileGet(pFilename);
176 TmpImage.LoadPalette(pPaletteOffset, pCount, pStartIndex);
177 TmpImage.CopyPalette(&mPalette[pStartIndex], pCount, pStartIndex);
178
179 return TmpImage;
180}
181
182void cGraphics_PC::Load_pStuff() {
183

Callers

nothing calls this directly

Calls 3

LoadPaletteMethod · 0.80
CopyPaletteMethod · 0.80
fileGetMethod · 0.45

Tested by

no test coverage detected