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

Function rcCol

Engine/source/navigation/torqueRecast.h:46–52  ·  view source on GitHub ↗

Convert a Rcast colour integer to RGBA components.

Source from the content-addressed store, hash-verified

44
45/// Convert a Rcast colour integer to RGBA components.
46inline void rcCol(unsigned int col, U8 &r, U8 &g, U8 &b, U8 &a)
47{
48 r = col % 256; col /= 256;
49 g = col % 256; col /= 256;
50 b = col % 256; col /= 256;
51 a = col % 256;
52}
53
54enum PolyAreas {
55 GroundArea,

Callers 3

_vertexMethod · 0.85
renderMethod · 0.85
renderGroupMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected