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

Function duIntToCol

3rdparty/recast/DebugDraw.cpp:48–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48unsigned int duIntToCol(int i, int a)
49{
50 int r = bit(i, 1) + bit(i, 3) * 2 + 1;
51 int g = bit(i, 2) + bit(i, 4) * 2 + 1;
52 int b = bit(i, 0) + bit(i, 5) * 2 + 1;
53 return duRGBA(r*63,g*63,b*63,a);
54}
55
56void duIntToCol(int i, float* col)
57{

Callers 5

drawMeshTileFunction · 0.85
areaToColMethod · 0.85

Calls 2

bitFunction · 0.85
duRGBAFunction · 0.85

Tested by

no test coverage detected