MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / writeU24

Function writeU24

engine/Poseidon/Graphics/Textures/PAAEncoder.cpp:37–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37static void writeU24(FILE* f, uint32_t v)
38{
39 uint8_t buf[3] = {static_cast<uint8_t>(v & 0xFF), static_cast<uint8_t>((v >> 8) & 0xFF),
40 static_cast<uint8_t>((v >> 16) & 0xFF)};
41 fwrite(buf, 3, 1, f);
42}
43
44// Generate mipmap levels from RGBA source using stb_image_resize2
45static std::vector<Image> generateMipmaps(const Image& rgba, int maxLevels)

Callers 1

WritePAAFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected