168BANJO_EXPORT
bj_bitmap* bj_bitmap_new_from_pixels(
227BANJO_EXPORT
bj_bitmap* bj_bitmap_convert(
264BANJO_EXPORT
void bj_bitmap_reset(
274BANJO_EXPORT
void* bj_bitmap_pixels(
284BANJO_EXPORT
size_t bj_bitmap_width(
294BANJO_EXPORT
size_t bj_bitmap_height(
304BANJO_EXPORT
int bj_bitmap_mode(
314BANJO_EXPORT
size_t bj_bitmap_stride(
329BANJO_EXPORT
void bj_bitmap_rgb(
348BANJO_EXPORT uint32_t bj_bitmap_pixel_value(
363BANJO_EXPORT
void bj_bitmap_put_pixel(
379BANJO_EXPORT
void bj_bitmap_clear(
401BANJO_EXPORT
void bj_bitmap_draw_line(
425BANJO_EXPORT
void bj_bitmap_draw_triangle(
449BANJO_EXPORT uint32_t bj_bitmap_get(
461BANJO_EXPORT
void bj_bitmap_set_clear_color(
488BANJO_EXPORT bj_bool bj_bitmap_blit(
492 const bj_rect* p_destination_area
531 const bj_rect* p_destination_area
General-purpose definitions for Banjo API.
Recoverable error handling.
bj_bitmap * bj_bitmap_alloc(void)
Allocate a new bitmap object.
void bj_bitmap_del(bj_bitmap *p_bitmap)
Deletes a bj_bitmap object and releases associated memory.
bj_bitmap * bj_bitmap_new(size_t width, size_t height, bj_pixel_mode mode, size_t stride)
Creates a new bj_bitmap with the specified width and height.
struct bj_bitmap_t bj_bitmap
Typedef for the bj_bitmap struct.
Definition bitmap.h:22
int bj_pixel[2]
Represents a pixel position in a bitmap.
Definition bitmap.h:19
bj_bitmap * bj_bitmap_new_from_file(const char *p_path, bj_error **p_error)
Creates a new bitmap by loading from a file.
bj_bool bj_bitmap_blit_stretched(const bj_bitmap *p_source, const bj_rect *p_source_area, bj_bitmap *p_destination, const bj_rect *p_destination_area)
Error structure.
Definition error.h:131
bj_pixel_mode
Representation of a pixel encoding.
Definition pixel.h:15
struct bj_rect_t bj_rect
Typedef for bj_rect_t.
Definition rect.h:15
Header file for general pixel manipulation facilities.
Defines the bj_rect struct representing a rectangle with position and dimensions.
Header file for bj_stream_t struct and related functions.