| 7446 | return nk_rgba(c[0], c[1], c[2], c[3]); |
| 7447 | } |
| 7448 | NK_API struct nk_color |
| 7449 | nk_rgb(int r, int g, int b) |
| 7450 | { |
| 7451 | struct nk_color ret; |
| 7452 | ret.r = (nk_byte)NK_CLAMP(0, r, 255); |
| 7453 | ret.g = (nk_byte)NK_CLAMP(0, g, 255); |
| 7454 | ret.b = (nk_byte)NK_CLAMP(0, b, 255); |
| 7455 | ret.a = (nk_byte)255; |
| 7456 | return ret; |
| 7457 | } |
| 7458 | NK_API struct nk_color |
| 7459 | nk_rgb_iv(const int *c) |
| 7460 | { |
no outgoing calls
no test coverage detected