Banjo API 0.0.1
C99 game development API
Loading...
Searching...
No Matches
window.h File Reference
#include <banjo/api.h>
#include <banjo/bitmap.h>
#include <banjo/memory.h>
Include dependency graph for window.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct bj_window_t bj_window
typedef enum bj_window_flag_t bj_window_flag

Enumerations

enum  bj_window_flag_t { BJ_WINDOW_FLAG_NONE = 0x00 , BJ_WINDOW_FLAG_CLOSE = 0x01 , BJ_WINDOW_FLAG_KEY_REPEAT = 0x02 , BJ_WINDOW_FLAG_ALL = 0xFF }

Functions

bj_windowbj_bind_window (const char *p_title, uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint8_t flags)
void bj_unbind_window (bj_window *p_window)
void bj_set_window_should_close (bj_window *p_window)
bj_bool bj_should_close_window (bj_window *p_window)
uint8_t bj_get_window_flags (bj_window *p_window, uint8_t flags)
int bj_get_key (const bj_window *p_window, int key)
bj_bitmapbj_get_window_framebuffer (bj_window *p_window, bj_error **p_error)
int bj_get_window_size (const bj_window *p_window, int *width, int *height)
void bj_update_window_framebuffer (bj_window *p_window)

Detailed Description

Header file for bj_window type.