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

◆ C_BLUE

#define C_BLUE   0x4

◆ C_BRIGHT

#define C_BRIGHT   0x8

◆ C_GREEN

#define C_GREEN   0x2

◆ C_RED

#define C_RED   0x1

Function Documentation

◆ draw_char()

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().

◆ draw_color_char()

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().

◆ draw_curs()

void draw_curs ( byte  x,
byte  y 
)

◆ draw_tile()

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

References TILE_HEIGHT, and TILE_WIDTH.

Referenced by main(), and Term_pict_nds().

◆ nds_fatal_err()

void nds_fatal_err ( const char *  msg)

References draw_char(), and i.

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

◆ nds_init_fonts()

void nds_init_fonts ( )

References ds_subfont, i, subfont_bgr_bin, subfont_rgb_bin, and term_data::t.

Referenced by main().

◆ nds_load_kbd()

bool nds_load_kbd ( )

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

Referenced by main().

◆ nds_load_tiles()

bool nds_load_tiles ( )

◆ render_all_windows()

void render_all_windows ( )

◆ swap_font()

void swap_font ( bool  bottom)

References on_irq(), subfont_bgr_bin, and subfont_rgb_bin.

Referenced by kbd_vblank(), and main().

Variable Documentation

◆ subfont_bgr_bin

u16b* subfont_bgr_bin

Referenced by nds_init_fonts(), and swap_font().

◆ subfont_rgb_bin

u16b* subfont_rgb_bin

Referenced by nds_init_fonts(), and swap_font().

◆ tiles_bin

u16b* tiles_bin

◆ total_tiles_used

int total_tiles_used