Banjo API 1.0.0-rc.2
Low-level C99 game development API
Loading...
Searching...
No Matches
drawing_text.c File Reference
#include <banjo/app.h>
#include <banjo/main.h>
#include <banjo/bitmap.h>
#include <banjo/event.h>
#include <banjo/log.h>
#include <banjo/system.h>
#include <banjo/window.h>
Include dependency graph for drawing_text.c:

Go to the source code of this file.

Functions

void draw (bj_bitmap *bmp)
static void on_draw (struct bj_window *w, struct bj_render_target *target, const struct bj_rect *dirty, void *user_data)
static void * setup (struct bj_app *app, void *init_data)
static void step (struct bj_app *app, struct bj_tick_info tick, void *user_data)
static void teardown (struct bj_app *app, void *user_data)
int main (int argc, char *argv[])

Variables

bj_windowwindow = 0

Function Documentation

◆ draw()

void draw ( bj_bitmap * bmp)

Definition at line 20 of file drawing_text.c.

◆ main()

int main ( int argc,
char * argv[] )

Definition at line 99 of file drawing_text.c.

◆ on_draw()

void on_draw ( struct bj_window * w,
struct bj_render_target * target,
const struct bj_rect * dirty,
void * user_data )
static

Definition at line 57 of file drawing_text.c.

◆ setup()

void * setup ( struct bj_app * app,
void * init_data )
static

Definition at line 67 of file drawing_text.c.

◆ step()

void step ( struct bj_app * app,
struct bj_tick_info tick,
void * user_data )
static

Definition at line 83 of file drawing_text.c.

◆ teardown()

void teardown ( struct bj_app * app,
void * user_data )
static

Definition at line 93 of file drawing_text.c.

Variable Documentation

◆ window

bj_window* window = 0

Definition at line 19 of file drawing_text.c.