MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / duIntToCol

Function duIntToCol

Engine/lib/recast/DebugUtils/Source/DebugDraw.cpp:36–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36unsigned int duIntToCol(int i, int a)
37{
38 int r = bit(i, 1) + bit(i, 3) * 2 + 1;
39 int g = bit(i, 2) + bit(i, 4) * 2 + 1;
40 int b = bit(i, 0) + bit(i, 5) * 2 + 1;
41 return duRGBA(r*63,g*63,b*63,a);
42}
43
44void duIntToCol(int i, float* col)
45{

Calls 2

bitFunction · 0.85
duRGBAFunction · 0.85

Tested by

no test coverage detected