stb_rect_pack.h

Defines

STB_RECT_PACK_VERSION
STBRP_DEF
STBRP__MAXVAL

Typedefs

typedef int stbrp_coord

Enums

enum [anonymous]

Values:

enumerator STBRP_HEURISTIC_Skyline_default
enumerator STBRP_HEURISTIC_Skyline_BL_sortHeight
enumerator STBRP_HEURISTIC_Skyline_BF_sortHeight

Functions

int stbrp_pack_rects(stbrp_context *context, stbrp_rect *rects, int num_rects)
void stbrp_init_target(stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes)
void stbrp_setup_allow_out_of_mem(stbrp_context *context, int allow_out_of_mem)
void stbrp_setup_heuristic(stbrp_context *context, int heuristic)
struct stbrp_rect

Public Members

int id
stbrp_coord w
stbrp_coord h
stbrp_coord x
stbrp_coord y
int was_packed
struct stbrp_node

Public Members

stbrp_coord x
stbrp_coord y
stbrp_node *next
struct stbrp_context

Public Members

int width
int height
int align
int init_mode
int heuristic
int num_nodes
stbrp_node *active_head
stbrp_node *free_head
stbrp_node extra[2]