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

Function nk_free

extern/glfw/deps/nuklear.h:14950–14971  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14948}
14949#endif
14950NK_API void
14951nk_free(struct nk_context *ctx)
14952{
14953 NK_ASSERT(ctx);
14954 if (!ctx) return;
14955 nk_buffer_free(&ctx->memory);
14956 if (ctx->use_pool)
14957 nk_pool_free(&ctx->pool);
14958
14959 nk_zero(&ctx->input, sizeof(ctx->input));
14960 nk_zero(&ctx->style, sizeof(ctx->style));
14961 nk_zero(&ctx->memory, sizeof(ctx->memory));
14962
14963 ctx->seq = 0;
14964 ctx->build = 0;
14965 ctx->begin = 0;
14966 ctx->end = 0;
14967 ctx->active = 0;
14968 ctx->current = 0;
14969 ctx->freelist = 0;
14970 ctx->count = 0;
14971}
14972NK_API void
14973nk_clear(struct nk_context *ctx)
14974{

Callers 1

nk_glfw3_shutdownFunction · 0.85

Calls 3

nk_buffer_freeFunction · 0.85
nk_pool_freeFunction · 0.85
nk_zeroFunction · 0.85

Tested by

no test coverage detected