Banjo API 1.0.0-rc.2
Low-level C99 game development API
Loading...
Searching...
No Matches
bitmap_blit.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/memory.h>
#include <banjo/system.h>
#include <banjo/window.h>
Include dependency graph for bitmap_blit.c:

Go to the source code of this file.

Macros

#define WINDOW_W   800
#define WINDOW_H   600

Functions

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
bj_bitmapbmp_rendering = 0

Macro Definition Documentation

◆ WINDOW_H

#define WINDOW_H   600

◆ WINDOW_W

#define WINDOW_W   800

Function Documentation

◆ main()

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

Definition at line 109 of file bitmap_blit.c.

◆ on_draw()

◆ setup()

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

Definition at line 42 of file bitmap_blit.c.

◆ step()

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

Definition at line 93 of file bitmap_blit.c.

◆ teardown()

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

Definition at line 102 of file bitmap_blit.c.

Variable Documentation

◆ bmp_rendering

bj_bitmap* bmp_rendering = 0

◆ window