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

Function nk_color_f

extern/glfw/deps/nuklear.h:7614–7622  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7612 return out;
7613}
7614NK_API void
7615nk_color_f(float *r, float *g, float *b, float *a, struct nk_color in)
7616{
7617 NK_STORAGE const float s = 1.0f/255.0f;
7618 *r = (float)in.r * s;
7619 *g = (float)in.g * s;
7620 *b = (float)in.b * s;
7621 *a = (float)in.a * s;
7622}
7623NK_API void
7624nk_color_fv(float *c, struct nk_color in)
7625{

Callers 3

nk_color_fvFunction · 0.85
nk_color_cfFunction · 0.85
nk_color_hsva_fFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected