OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Classes | Macros | Typedefs | Enumerations | Functions
stb_rect_pack.h File Reference
#include <stdlib.h>
Include dependency graph for stb_rect_pack.h:
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
 

Typedefs

typedef unsigned short 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 void 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)
 

Class Documentation

struct stbrp_rect

Definition at line 81 of file stb_rect_pack.h.

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

Definition at line 141 of file stb_rect_pack.h.

Collaboration diagram for stbrp_node:
[legend]
Class Members
stbrp_coord x
stbrp_coord y
stbrp_node * next
struct stbrp_context

Definition at line 147 of file stb_rect_pack.h.

Collaboration diagram for stbrp_context:
[legend]
Class 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]

Macro Definition Documentation

#define STB_RECT_PACK_VERSION   1

Definition at line 37 of file stb_rect_pack.h.

#define STBRP_DEF   extern

Definition at line 42 of file stb_rect_pack.h.

Typedef Documentation

typedef unsigned short stbrp_coord

Definition at line 56 of file stb_rect_pack.h.

Enumeration Type Documentation

anonymous enum
Enumerator
STBRP_HEURISTIC_Skyline_default 
STBRP_HEURISTIC_Skyline_BL_sortHeight 
STBRP_HEURISTIC_Skyline_BF_sortHeight 

Definition at line 128 of file stb_rect_pack.h.

Function Documentation

STBRP_DEF void 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 
)