Lines Matching refs:nodes
128 STBRP_DEF void stbrp_init_target (stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes);
131 // using temporary storage provided by the array 'nodes', which is 'num_nodes' long
135 // There is no "shutdown" function. The 'nodes' memory must stay valid for
189 stbrp_node extra[2]; // we allocate two extra nodes so optimal user-node-count is 'width' not 'width+2'
250 // so that num_nodes is always enough nodes.
260 STBRP_DEF void stbrp_init_target(stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes)
268 nodes[i].next = &nodes[i+1];
269 nodes[i].next = NULL;
272 context->free_head = &nodes[0];
467 // let 'cur' point to the remaining nodes needing to be
480 // from here, traverse cur and free the nodes, until we get to one