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

Function nk_image

extern/glfw/deps/nuklear.h:19424–19438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19422 return !(img->w == 0 && img->h == 0);
19423}
19424NK_API void
19425nk_image(struct nk_context *ctx, struct nk_image img)
19426{
19427 struct nk_window *win;
19428 struct nk_rect bounds;
19429
19430 NK_ASSERT(ctx);
19431 NK_ASSERT(ctx->current);
19432 NK_ASSERT(ctx->current->layout);
19433 if (!ctx || !ctx->current || !ctx->current->layout) return;
19434
19435 win = ctx->current;
19436 if (!nk_widget(&bounds, ctx)) return;
19437 nk_draw_image(&win->buffer, bounds, &img, nk_white);
19438}
19439NK_API void
19440nk_image_color(struct nk_context *ctx, struct nk_image img, struct nk_color col)
19441{

Callers

nothing calls this directly

Calls 2

nk_widgetFunction · 0.85
nk_draw_imageFunction · 0.85

Tested by

no test coverage detected