ASCII-GFX
2.0
|
Classes | |
struct | AnimType |
Functions | |
void | init_anims () |
void | release_anims () |
void | set_grid_size (int sx, int sy) |
create a scrollable grid area More... | |
int | get_grid_width () |
get the width of the scrollable grid area More... | |
int | get_grid_height () |
get the height of the scrollable grid area More... | |
void | set_grid_window_size (int sx, int sy) |
set the size of the displayed grid window More... | |
void | set_grid_wraparound (bool yes) |
is the grid wrapping around or not? More... | |
void | clear_grid (int ch) |
clear the scrollable grid area More... | |
void | clear_extra (int ch) |
clear the scrollable extra grid area More... | |
void | set_grid_border (int ch) |
set the border of the scrollable grid area More... | |
void | wrap (int &x, int &y) |
int | get_grid (int x, int y) |
get the grid cell character at grid position (x, y) More... | |
int | get_last (int x, int y) |
get the last cell character at grid position (x, y) More... | |
int | get_same (int x, int y) |
get the same cell character at grid position (x, y) More... | |
int | get_extra (int x, int y) |
get the extra grid cell character at grid position (x, y) More... | |
int | get_anim (int x, int y) |
void | set_grid (int x, int y, int ch) |
set the grid cell at grid position (x, y) to character ch More... | |
void | set_last (int x, int y, int ch) |
set the last cell at grid position (x, y) to character ch More... | |
void | set_same (int x, int y, int ch) |
set the same cell at grid position (x, y) to character ch More... | |
void | set_extra (int x, int y, int ch) |
set the extra grid cell at grid position (x, y) to character ch More... | |
void | set_anim (int x, int y, int ch) |
bool | check_grid (int ch) |
check grid cell area for presence of character ch More... | |
int | count_grid (int ch) |
count character ch in grid cell area More... | |
void | replace_grid (int ch, int replace) |
replace character ch in grid cell area More... | |
int * | get_grid_area (int x, int y, int sx, int sy) |
get the grid cell area at top-left position (x, y) with size (sx, sy) More... | |
void | set_grid_area (int x, int y, int sx, int sy, const int *data) |
set a grid cell area at top-left position (x, y) with size (sx, sy) More... | |
void | set_grid_text (int x, int y, const char *text) |
set the grid cells at top-left grid position (x, y) to a text string More... | |
void | render_grid_line (int x1, int y1, int x2, int y2, int ch) |
render a grid line from position (x1, y1) to (x2, y2) More... | |
void | render_grid_frame (int x1, int y1, int x2, int y2, int ch) |
render a grid frame from position (x1, y1) to (x2, y2) More... | |
void | flood_fill_grid (int x, int y, int ch) |
flood-fill a grid cell area starting at position (x, y) More... | |
void | inverse_flood_fill_grid (int x, int y, int ch) |
flood-fill everything but a grid cell area starting at position (x, y) More... | |
void | place_random (int ch, int num, int exclude) |
place random characters More... | |
void | update_grid_window () |
void | position_grid_window (int x, int y) |
position the displayed grid window at center position (x, y) More... | |
void | center_grid_window (int x, int y) |
scroll the displayed grid window to center position (x, y) More... | |
void | redraw_grid_window (int x, int y) |
redraw the displayed grid window at center grid position (x, y) More... | |
void | scroll_grid_window (int x, int y, int deltax, int deltay, bool stop) |
scroll the displayed grid window to center grid position (x, y) More... | |
void | release_grid () |
release allocated memory More... | |
void | set_grid_animation (int ch, int num, const int *data) |
set character animation More... | |
void | set_grid_animation_string (int ch, const char *str) |
set character animation string More... | |
Variables | |
static int | gridx = 0 |
static int | gridy = 0 |
static int | fontx = 0 |
static int | fonty = 0 |
static int * | grid = NULL |
static int * | last = NULL |
static int * | extra = NULL |
static int * | anim = NULL |
static const int | ga_num = 256 |
static AnimType * | ga_anims = NULL |
static bool | wraparound = false |
void center_grid_window | ( | int | x, |
int | y | ||
) |
scroll the displayed grid window to center position (x, y)
bool check_grid | ( | int | ch | ) |
check grid cell area for presence of character ch
void clear_extra | ( | int | ch | ) |
clear the scrollable extra grid area
void clear_grid | ( | int | ch | ) |
clear the scrollable grid area
int count_grid | ( | int | ch | ) |
count character ch in grid cell area
void flood_fill_grid | ( | int | x, |
int | y, | ||
int | ch | ||
) |
flood-fill a grid cell area starting at position (x, y)
int get_anim | ( | int | x, |
int | y | ||
) |
int get_extra | ( | int | x, |
int | y | ||
) |
get the extra grid cell character at grid position (x, y)
int get_grid | ( | int | x, |
int | y | ||
) |
get the grid cell character at grid position (x, y)
int* get_grid_area | ( | int | x, |
int | y, | ||
int | sx, | ||
int | sy | ||
) |
get the grid cell area at top-left position (x, y) with size (sx, sy)
int get_grid_height | ( | ) |
get the height of the scrollable grid area
int get_grid_width | ( | ) |
get the width of the scrollable grid area
int get_last | ( | int | x, |
int | y | ||
) |
get the last cell character at grid position (x, y)
int get_same | ( | int | x, |
int | y | ||
) |
get the same cell character at grid position (x, y)
void init_anims | ( | ) |
void inverse_flood_fill_grid | ( | int | x, |
int | y, | ||
int | ch | ||
) |
flood-fill everything but a grid cell area starting at position (x, y)
void place_random | ( | int | ch, |
int | num, | ||
int | exclude | ||
) |
place random characters
void position_grid_window | ( | int | x, |
int | y | ||
) |
position the displayed grid window at center position (x, y)
void redraw_grid_window | ( | int | x, |
int | y | ||
) |
redraw the displayed grid window at center grid position (x, y)
void release_anims | ( | ) |
void release_grid | ( | ) |
release allocated memory
void render_grid_frame | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | ch | ||
) |
render a grid frame from position (x1, y1) to (x2, y2)
void render_grid_line | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | ch | ||
) |
render a grid line from position (x1, y1) to (x2, y2)
void replace_grid | ( | int | ch, |
int | replace | ||
) |
replace character ch in grid cell area
void scroll_grid_window | ( | int | x, |
int | y, | ||
int | deltax, | ||
int | deltay, | ||
bool | stop | ||
) |
scroll the displayed grid window to center grid position (x, y)
void set_anim | ( | int | x, |
int | y, | ||
int | ch | ||
) |
void set_extra | ( | int | x, |
int | y, | ||
int | ch | ||
) |
set the extra grid cell at grid position (x, y) to character ch
void set_grid | ( | int | x, |
int | y, | ||
int | ch | ||
) |
set the grid cell at grid position (x, y) to character ch
void set_grid_animation | ( | int | ch, |
int | num, | ||
const int * | data | ||
) |
set character animation
void set_grid_animation_string | ( | int | ch, |
const char * | str | ||
) |
set character animation string
void set_grid_area | ( | int | x, |
int | y, | ||
int | sx, | ||
int | sy, | ||
const int * | data | ||
) |
set a grid cell area at top-left position (x, y) with size (sx, sy)
void set_grid_border | ( | int | ch | ) |
set the border of the scrollable grid area
void set_grid_size | ( | int | sx, |
int | sy | ||
) |
create a scrollable grid area
void set_grid_text | ( | int | x, |
int | y, | ||
const char * | text | ||
) |
set the grid cells at top-left grid position (x, y) to a text string
void set_grid_window_size | ( | int | sx, |
int | sy | ||
) |
set the size of the displayed grid window
void set_grid_wraparound | ( | bool | yes | ) |
is the grid wrapping around or not?
void set_last | ( | int | x, |
int | y, | ||
int | ch | ||
) |
set the last cell at grid position (x, y) to character ch
void set_same | ( | int | x, |
int | y, | ||
int | ch | ||
) |
set the same cell at grid position (x, y) to character ch
void update_grid_window | ( | ) |
|
inline |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |