Wise&mystical  1.0
Project about Europe
Loading...
Searching...
No Matches
stb_rect_pack.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  stbrp_rect
 
struct  stbrp_node
 
struct  stbrp_context
 

Macros

#define STB_RECT_PACK_VERSION   1
 
#define STBRP_DEF   extern
 
#define STBRP__MAXVAL   0x7fffffff
 

Typedefs

typedef struct stbrp_context stbrp_context
 
typedef struct stbrp_node stbrp_node
 
typedef struct stbrp_rect stbrp_rect
 
typedef int stbrp_coord
 

Enumerations

enum  { STBRP_HEURISTIC_Skyline_default =0 , STBRP_HEURISTIC_Skyline_BL_sortHeight = STBRP_HEURISTIC_Skyline_default , STBRP_HEURISTIC_Skyline_BF_sortHeight }
 

Functions

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

Macro Definition Documentation

◆ STB_RECT_PACK_VERSION

#define STB_RECT_PACK_VERSION   1

Definition at line 69 of file stb_rect_pack.h.

◆ STBRP__MAXVAL

#define STBRP__MAXVAL   0x7fffffff

Definition at line 87 of file stb_rect_pack.h.

◆ STBRP_DEF

#define STBRP_DEF   extern

Definition at line 74 of file stb_rect_pack.h.

Typedef Documentation

◆ stbrp_context

typedef struct stbrp_context stbrp_context

Definition at line 81 of file stb_rect_pack.h.

◆ stbrp_coord

typedef int stbrp_coord

Definition at line 85 of file stb_rect_pack.h.

◆ stbrp_node

typedef struct stbrp_node stbrp_node

Definition at line 82 of file stb_rect_pack.h.

◆ stbrp_rect

typedef struct stbrp_rect stbrp_rect

Definition at line 83 of file stb_rect_pack.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
STBRP_HEURISTIC_Skyline_default 
STBRP_HEURISTIC_Skyline_BL_sortHeight 
STBRP_HEURISTIC_Skyline_BF_sortHeight 

Definition at line 162 of file stb_rect_pack.h.

Function Documentation

◆ stbrp_init_target()

STBRP_DEF void stbrp_init_target ( stbrp_context context,
int  width,
int  height,
stbrp_node nodes,
int  num_nodes 
)
+ Here is the caller graph for this function:

◆ stbrp_pack_rects()

STBRP_DEF int stbrp_pack_rects ( stbrp_context context,
stbrp_rect rects,
int  num_rects 
)
+ Here is the caller graph for this function:

◆ stbrp_setup_allow_out_of_mem()

STBRP_DEF void stbrp_setup_allow_out_of_mem ( stbrp_context context,
int  allow_out_of_mem 
)

◆ stbrp_setup_heuristic()

STBRP_DEF void stbrp_setup_heuristic ( stbrp_context context,
int  heuristic 
)