22 #ifndef MADS_CORE_SCREEN_H 23 #define MADS_CORE_SCREEN_H 25 #include "mads/core/window.h" 44 #define hi_magenta 0x0d 45 #define hi_yellow 0x0e 48 #define colorbyte(f,b) ( ( (b) << 4) + f ) 50 #define colorhash(color) ((long) ((((long)color.r) << 16) + (((long)color.g) << 8) + (((long)color.b) ) )) 52 #define screen_char_add(x,y) ( ( ( (y) * 80) + x) * 2 ) 53 #define screen_color_add(x,y) ( ( ( ( (y) * 80) + x) * 2 ) + 1 ) 56 extern int *screen_bound_x;
58 extern int screen_video_mode;
59 extern int screen_max_x;
60 extern int screen_max_y;
62 extern int screen_center_x;
63 extern int screen_center_y;
65 extern int screen_save_mode;
66 extern int screen_save_size;
68 extern int screen_normal_color;
69 extern int screen_hilite_color;
71 extern int screen_line_width;
76 extern Window screen_active;
81 extern void screen_set_size(
short numlines);
86 extern void screen_wipe_line(
short ul_x,
short ul_y,
short len,
short wipe_color, byte wipe_char);
88 extern short screen_out(
const char *outstring,
short strcolor,
short selcolor,
short str_x,
short str_y);
89 extern short screen_put(
const char *outstring,
short strcolor,
short selcolor,
short str_x,
short str_y);
90 extern void screen_set_colors(
int normal_color,
int hilite_color);
91 extern void screen_set_line_width(
int line_width);
93 extern short screen_show_line(
const char *outstring,
short locx,
short locy);
94 extern short screen_write(
const char *outstring);
95 extern short screen_write_line(
const char *outstring);
96 extern void screen_clear(
int clear_color);
97 extern void screen_dominant_mode(
int dominant_mode);
98 extern void screen_init(
int video_mode);
99 extern void screen_init_dual(
int mono_left);
100 extern void screen_shutdown_dual(
int clear_flag);
101 extern void screen_init_graphics(
int which_mode);
102 extern void screen_shutdown_graphics(
int clear_flag);
103 extern void screen_show_spot(
const char *message,
int wx,
int wy,
int class_,
int num);
105 extern int screen_printf(
int x,
int y,
const char *
string, ...);
106 extern int screen_print(
const char *
string, ...);
108 extern void screen_init_text(
int which_mode);
109 extern void screen_shutdown_text(
int clear_flag);
110 extern void screen_save();
111 extern void screen_restore();
112 extern short screen_show_wide(
const char *outstring,
short locx,
short locy,
short width);
Definition: anim_timer.h:27
Definition: display_client.h:113
Definition: atari-screen.h:42