Banjo API 0.0.1
Multi-purpose C99 API
|
Header file for Bitmap drawing functions.
#include <banjo/api.h>
#include <banjo/bitmap.h>
#include <banjo/error.h>
#include <banjo/pixel.h>
#include <banjo/rect.h>
Go to the source code of this file.
Functions | |
void | bj_bitmap_draw_line (bj_bitmap *p_bitmap, int x0, int y0, int x1, int y1, uint32_t pixel) |
Draws a line of pixels in the given bitmap. | |
void | bj_bitmap_draw_rectangle (bj_bitmap *p_bitmap, const bj_rect *p_area, uint32_t pixel) |
Draws a rectangle in the given bitmap. | |
void | bj_bitmap_draw_filled_rectangle (bj_bitmap *p_bitmap, const bj_rect *p_area, uint32_t pixel) |
Draws a filled rectangle in the given bitmap. | |
void | bj_bitmap_draw_triangle (bj_bitmap *p_bitmap, int x0, int y0, int x1, int y1, int x2, int y2, uint32_t color) |
Draws the edges of a triangle given its 3 corners. | |