MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/PositionBasedDynamics / nk_rgba

Function nk_rgba

extern/glfw/deps/nuklear.h:7376–7385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7374 return i;
7375}
7376NK_API struct nk_color
7377nk_rgba(int r, int g, int b, int a)
7378{
7379 struct nk_color ret;
7380 ret.r = (nk_byte)NK_CLAMP(0, r, 255);
7381 ret.g = (nk_byte)NK_CLAMP(0, g, 255);
7382 ret.b = (nk_byte)NK_CLAMP(0, b, 255);
7383 ret.a = (nk_byte)NK_CLAMP(0, a, 255);
7384 return ret;
7385}
7386NK_API struct nk_color
7387nk_rgb_hex(const char *rgb)
7388{

Callers 15

nk_rgba_ivFunction · 0.85
nk_rgba_bvFunction · 0.85
nk_draw_vertex_colorFunction · 0.85
nk_style_item_hideFunction · 0.85
nk_style_from_tableFunction · 0.85
nk_panel_beginFunction · 0.85
nk_tree_state_baseFunction · 0.85
nk_draw_selectableFunction · 0.85
nk_do_editFunction · 0.85
nk_draw_propertyFunction · 0.85
nk_combo_begin_textFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected