6 #include <SDL_ttf/SDL_ttf.h>
8 #include <SDL/SDL_ttf.h>
12 ttf_off
, ttf_on
, ttf_auto
18 long small_font_texpos
[256];
19 long large_font_texpos
[256];
20 long small_font_datapos
[256];
21 long large_font_datapos
[256];
22 float small_font_adjx
;
23 float small_font_adjy
;
24 float large_font_adjx
;
25 float large_font_adjy
;
26 long small_font_dispx
;
27 long small_font_dispy
;
28 long large_font_dispx
;
29 long large_font_dispy
;
36 INIT_DISPLAY_FLAG_USE_GRAPHICS
,
37 INIT_DISPLAY_FLAG_BLACK_SPACE
,
38 INIT_DISPLAY_FLAG_PARTIAL_PRINT
,
39 INIT_DISPLAY_FLAG_FRAME_BUFFER
,
40 INIT_DISPLAY_FLAG_SINGLE_BUFFER
,
41 INIT_DISPLAY_FLAG_ACCUM_BUFFER
,
42 INIT_DISPLAY_FLAG_VBO
,
44 INIT_DISPLAY_FLAG_2DHW
,
45 INIT_DISPLAY_FLAG_2DASYNC
,
46 INIT_DISPLAY_FLAG_UNUSED_01_08
,//
47 INIT_DISPLAY_FLAG_TEXT
,
48 INIT_DISPLAY_FLAG_SHADER
,
49 INIT_DISPLAY_FLAG_NOT_RESIZABLE
,
50 INIT_DISPLAY_FLAG_ARB_SYNC
,
54 enum InitDisplayWindow
56 INIT_DISPLAY_WINDOW_TRUE
,
57 INIT_DISPLAY_WINDOW_FALSE
,
58 INIT_DISPLAY_WINDOW_PROMPT
,
59 INIT_DISPLAY_WINDOWNUM
66 InitDisplayWindow windowed
;
68 int grid_x
, grid_y
; // The *current* display grid size, kept up to date
70 int desired_fullscreen_width
, desired_fullscreen_height
;
71 int desired_windowed_width
, desired_windowed_height
;
74 char partial_print_count
;
81 INIT_MEDIA_FLAG_SOUND_OFF
,
82 INIT_MEDIA_FLAG_INTRO_OFF
,
83 INIT_MEDIA_FLAG_COMPRESS_SAVES
,
95 flag
.set_size_on_flag_num(INIT_MEDIA_FLAGNUM
);
102 INIT_INPUT_FLAG_MOUSE_OFF
,
103 INIT_INPUT_FLAG_MOUSE_PICTURE
,
113 long pause_zoom_no_interface_ms
;
116 int repeat_accel_start
;
117 int repeat_accel_limit
;
124 pause_zoom_no_interface_ms
=0;
125 flag
.set_size_on_flag_num(INIT_INPUT_FLAGNUM
);
127 repeat_accel_start
= 10;
128 repeat_accel_limit
= 1;
134 INIT_WINDOW_FLAG_TOPMOST
,
135 INIT_WINDOW_FLAG_VSYNC_ON
,
136 INIT_WINDOW_FLAG_VSYNC_OFF
,
137 INIT_WINDOW_FLAG_TEXTURE_LINEAR
,
148 flag
.set_size_on_flag_num(INIT_WINDOW_FLAGNUM
);
155 init_displayst display
;
159 init_windowst window
;