MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / ImFontAtlasBuildMultiplyCalcLookupTable

Function ImFontAtlasBuildMultiplyCalcLookupTable

KBotExt/imgui/imgui_draw.cpp:2335–2342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2333}
2334
2335void ImFontAtlasBuildMultiplyCalcLookupTable(unsigned char out_table[256], float in_brighten_factor)
2336{
2337 for (unsigned int i = 0; i < 256; i++)
2338 {
2339 unsigned int value = (unsigned int)(i * in_brighten_factor);
2340 out_table[i] = value > 255 ? 255 : (value & 0xFF);
2341 }
2342}
2343
2344void ImFontAtlasBuildMultiplyRectAlpha8(const unsigned char table[256], unsigned char* pixels, int x, int y, int w, int h, int stride)
2345{

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected