MCPcopy Create free account
hub / github.com/RobLoach/raylib-cpp / RaylibAssertChannelWithin

Function RaylibAssertChannelWithin

tests/raylib-assert.h:107–112  ·  view source on GitHub ↗

Internal helper: true when two color channels differ by no more than the given tolerance.

Source from the content-addressed store, hash-verified

105
106// Internal helper: true when two color channels differ by no more than the given tolerance.
107static inline bool RaylibAssertChannelWithin(int a, int b, int tolerance)
108{
109 int delta = a - b;
110 if (delta < 0) delta = -delta;
111 return delta <= tolerance;
112}
113
114// Internal helper: true when a mesh contains basic CPU-side geometry data.
115static inline bool RaylibAssertMeshValid(Mesh mesh)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected