MCPcopy Create free account
hub / github.com/axmolengine/axmol / clamp

Function clamp

core/platform/Image.cpp:2818–2821  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2816}
2817
2818static inline uint8_t clamp(int x)
2819{
2820 return (uint8_t)(x >= 0 ? (x < 255 ? x : 255) : 0);
2821}
2822
2823void Image::reversePremultipliedAlpha()
2824{

Callers 9

setPitchMethod · 0.50
clampByteMethod · 0.50
clampSByteMethod · 0.50
renormalizeEACMethod · 0.50
decompressGZMethod · 0.50
ColorFunction · 0.50
Color.hFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected