MCPcopy Create free account
hub / github.com/ZDoom/Raze / CopyPixels

Method CopyPixels

source/core/textures/tiletexture.cpp:179–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177//==========================================================================
178
179int FTileTexture::CopyPixels(FBitmap* bmp, int conversion, int)
180{
181 TArray<uint8_t> buffer;
182 auto ppix = GetRawData();
183 if (ppix)
184 {
185 bmp->CopyPixelData(0, 0, ppix, Width, Height, Height, 1, 0, GPalette.BaseColors);
186 }
187 return 0;
188}
189
190// 'conversion' is meaningless here becazse we do not have to bother with a software renderer.
191PalettedPixels FTileTexture::CreatePalettedPixels(int conversion, int)

Callers

nothing calls this directly

Calls 1

CopyPixelDataMethod · 0.80

Tested by

no test coverage detected