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

Method GetBgraBitmap

source/common/2d/wipe.cpp:59–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 }
58
59 FBitmap GetBgraBitmap(const PalEntry*, int *trans) override
60 {
61 FBitmap bmp;
62 bmp.Create(Width, Height);
63 bmp.CopyPixelDataRGB(0, 0, (uint8_t*)WorkBuffer.Data(), Width, Height, 4, Width*4, 0, CF_RGBA, nullptr);
64 if (trans) *trans = 0;
65 return bmp;
66 }
67
68 uint32_t *GetBuffer()
69 {

Callers

nothing calls this directly

Calls 3

CopyPixelDataRGBMethod · 0.80
CreateMethod · 0.45
DataMethod · 0.45

Tested by

no test coverage detected