General-purpose definitions for Banjo API.
uint32_t bj_bool
Boolean type used throughout the Banjo API.
uint16_t w
Width in pixels.
uint16_t h
Height in pixels.
int16_t y
Y coordinate of the top-left corner (pixels, can be negative).
int16_t x
X coordinate of the top-left corner (pixels, can be negative).
void bj_rect_union(const struct bj_rect *rect_a, const struct bj_rect *rect_b, struct bj_rect *result)
Compute the bounding box that contains both rectangles.
bj_bool bj_rect_intersection(const struct bj_rect *rect_a, const struct bj_rect *rect_b, struct bj_rect *result)
Compute the intersection of two rectangles.
Axis-aligned rectangle: a top-left corner plus a width and height.