MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / FixRange

Function FixRange

Engine/lib/squish/alpha.cpp:94–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94static void FixRange( int& min, int& max, int steps )
95{
96 if( max - min < steps )
97 max = std::min( min + steps, 255 );
98 if( max - min < steps )
99 min = std::max( 0, max - steps );
100}
101
102static int FitCodes( u8 const* rgba, int mask, u8 const* codes, u8* indices )
103{

Callers 1

CompressAlphaDxt5Function · 0.85

Calls 2

minFunction · 0.50
maxFunction · 0.50

Tested by

no test coverage detected