Angband
Macros | Functions | Variables
ds_gfx.h File Reference

Go to the source code of this file.

Macros

#define C_RED   0x1
 
#define C_GREEN   0x2
 
#define C_BLUE   0x4
 
#define C_BRIGHT   0x8
 

Functions

void draw_tile (byte x, byte y, u16b tile)
 
void draw_char (byte x, byte y, char c)
 
void draw_color_char (byte x, byte y, char c, byte clr)
 
void draw_curs (byte x, byte y)
 
void render_all_windows ()
 
void nds_init_fonts ()
 
bool nds_load_kbd ()
 
bool nds_load_tiles ()
 
void swap_font (bool bottom)
 
void nds_fatal_err (const char *msg)
 

Variables

u16btiles_bin
 
u16bsubfont_rgb_bin
 
u16bsubfont_bgr_bin
 
int total_tiles_used
 

Macro Definition Documentation

#define C_BLUE   0x4
#define C_BRIGHT   0x8
#define C_GREEN   0x2
#define C_RED   0x1

Function Documentation

void draw_char ( byte  x,
byte  y,
char  c 
)

References btm_font_bin, and top_font_bin.

Referenced by nds_fatal_err(), and nds_raw_print().

void draw_color_char ( byte  x,
byte  y,
char  c,
byte  clr 
)

References btm_font_bin, and top_font_bin.

Referenced by Term_text_nds(), and Term_wipe_nds().

void draw_curs ( byte  x,
byte  y 
)
void draw_tile ( byte  x,
byte  y,
u16b  tile 
)

References TILE_HEIGHT, and TILE_WIDTH.

Referenced by main(), and Term_pict_nds().

void nds_fatal_err ( const char *  msg)

References draw_char(), and i.

Referenced by hook_quit(), main(), nds_load_kbd(), and nds_load_tiles().

void nds_init_fonts ( )

References ds_subfont, i, subfont_bgr_bin, and subfont_rgb_bin.

Referenced by main().

bool nds_load_kbd ( )

References buf, i, nds_fatal_err(), nds_load_file(), and NUM_FILES.

Referenced by main().

bool nds_load_tiles ( )
void render_all_windows ( )
void swap_font ( bool  bottom)

References subfont_bgr_bin, and subfont_rgb_bin.

Referenced by kbd_vblank(), and main().

Variable Documentation

u16b* subfont_bgr_bin

Referenced by nds_init_fonts(), and swap_font().

u16b* subfont_rgb_bin

Referenced by nds_init_fonts(), and swap_font().

u16b* tiles_bin
int total_tiles_used