Banjo API 1.1.0-alpha
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_window * window = 0
bj_bitmap * bmp_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 121 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 105 of file bitmap_blit.c.

◆ teardown()

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

Definition at line 114 of file bitmap_blit.c.

Variable Documentation

◆ bmp_rendering

bj_bitmap* bmp_rendering = 0

◆ window

bj_window* window = 0
Examples
bitmap_blit.c, bitmap_blit_colorkey.c, drawing_2d.c, drawing_text.c, event_callbacks.c, event_polling.c, interpolation.c, load_bmp.c, maze.c, physics_kinematics.c, physics_particle.c, pixel_enumeration.c, pong.c, random_distribution.c, shaders.c, sprite_animation.c, start.c, and window.c.

Definition at line 24 of file bitmap_blit.c.

Referenced by bj_close_on_escape(), bj_destroy_window(), bj_get_key(), bj_get_window_flags(), bj_get_window_size(), bj_invalidate_rect(), bj_invalidate_window(), bj_is_window_fullscreen(), bj_push_button_event(), bj_push_cursor_event(), bj_push_enter_event(), bj_push_key_event(), bj_set_draw_callback(), bj_set_resize_callback(), bj_set_window_draw_callback(), bj_set_window_fullscreen(), bj_set_window_resize_callback(), bj_set_window_should_close(), bj_should_close_window(), bj_unbind_window(), bj_window_enter_fullscreen(), bj_window_flags(), bj_window_has_flag(), bj_window_is_fullscreen(), bj_window_is_key_pressed(), bj_window_leave_fullscreen(), bj_window_should_close(), bj_window_size(), on_draw(), regenerate(), roll(), setup(), setup(), setup(), setup(), setup(), setup(), setup(), setup(), setup(), setup(), setup(), setup(), setup(), setup(), setup(), setup(), setup(), step(), step(), step(), step(), step(), step(), step(), step(), step(), step(), step(), step(), step(), step(), step(), step(), step(), teardown(), teardown(), teardown(), teardown(), teardown(), teardown(), teardown(), teardown(), teardown(), teardown(), teardown(), teardown(), teardown(), teardown(), teardown(), teardown(), and teardown().