Banjo API 0.0.1
C99 game development API
Loading...
Searching...
No Matches
draw.h File Reference
#include <banjo/api.h>
#include <banjo/bitmap.h>
#include <banjo/error.h>
#include <banjo/pixel.h>
#include <banjo/rect.h>
Include dependency graph for draw.h:

Go to the source code of this file.

Functions

void bj_draw_line (struct bj_bitmap *bitmap, int x0, int y0, int x1, int y1, uint32_t pixel)
void bj_draw_rectangle (struct bj_bitmap *bitmap, const struct bj_rect *area, uint32_t pixel)
void bj_draw_filled_rectangle (struct bj_bitmap *bitmap, const struct bj_rect *area, uint32_t pixel)
void bj_draw_triangle (struct bj_bitmap *bitmap, int x0, int y0, int x1, int y1, int x2, int y2, uint32_t color)
void bj_draw_filled_triangle (struct bj_bitmap *bitmap, int x0, int y0, int x1, int y1, int x2, int y2, uint32_t color)
void bj_draw_circle (struct bj_bitmap *bitmap, int cx, int cy, int radius, uint32_t color)
void bj_draw_filled_circle (struct bj_bitmap *bitmap, int cx, int cy, int radius, uint32_t color)
void bj_draw_polyline (struct bj_bitmap *bitmap, size_t count, const int *x, const int *y, bj_bool loop, uint32_t color)

Detailed Description

Header file for Bitmap drawing functions.