forked from DFHack/df-structures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
df.graphics.xml
288 lines (247 loc) · 10.3 KB
/
df.graphics.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
<data-definition>
<struct-type type-name='large_integer' is-union='true'>
<compound>
<long name='low_part'/>
<long name='high_part'/>
</compound>
<compound name='u'>
<long name='low_part'/>
<long name='high_part'/>
</compound>
<int64_t name='quad_part'/>
</struct-type>
<struct-type type-name='musicsoundst'>
<int32_t name='soft_channel_number'/>
<int32_t name='song' init-value='-1' refers-to='$$._parent.mod[$]'/>
<bool name='music_active'/>
<bool name='sound_priority'/>
<int32_t name='sound_playing'/>
<bool name='on'/>
<pointer name='fmod_system'/>
<pointer name='fmod_master_channel_group'/>
<static-array name='mod' count='1000' type-name='fmod_sound' comment='songs'/>
<static-array name='samp' count='1000' type-name='fmod_sound' comment='sound effects'/>
<enum name='linux_sound_system'>
<enum-item name='ALSA'/>
<enum-item name='OSS'/>
<enum-item name='ESD'/>
</enum>
</struct-type>
<struct-type type-name='fmod_sound' original-name='fmodSound'>
<pointer name='sound'/>
<pointer name='channel'/>
</struct-type>
<enum-type type-name='curses_color' base-type='uint8_t'>
Using the color names without "dark" or "light", favoring primaries.
<enum-item name='Black'/>
<enum-item name='Blue'/>
<enum-item name='Green'/>
<enum-item name='Cyan'/>
<enum-item name='Red'/>
<enum-item name='Magenta'/>
<enum-item name='Yellow'/>
<enum-item name='White'/>
</enum-type>
<bitfield-type type-name='cmv_attribute' base-type='uint8_t'>
<flag-bit name='fg' count='3' type-name='curses_color'/>
<flag-bit name='bg' count='3' type-name='curses_color'/>
<flag-bit name='bright'/>
</bitfield-type>
<struct-type type-name='graphic' original-name='graphicst'>
<long name='screenx'/>
<long name='screeny'/>
<enum name='screenf' type-name='curses_color'/>
<enum name='screenb' type-name='curses_color'/>
<bool name='screenbright'/>
<pointer type-name='uint8_t' name='screen' is-array='true'/>
<pointer type-name='long' name='screentexpos' is-array='true'/>
<pointer type-name='int8_t' name='screentexpos_addcolor' is-array='true'/>
<pointer type-name='uint8_t' name='screentexpos_grayscale' is-array='true'/>
<pointer type-name='uint8_t' name='screentexpos_cf' is-array='true'/>
<pointer type-name='uint8_t' name='screentexpos_cbr' is-array='true'/>
<static-array type-name='long' name='clipx' count='2'/>
<static-array type-name='long' name='clipy' count='2'/>
<static-array type-name='long' name='tex_pos' count='1'/>
<long name='rect_id'/>
<static-array type-name='large_integer' name='print_time' count='100'/>
<long name='print_index'/>
<int8_t name='display_frames'/>
<int16_t name='force_full_display_count'/>
<int8_t name='original_rect'/>
<int32_t name='dimx'/>
<int32_t name='dimy'/>
<int32_t name='mouse_x'/>
<int32_t name='mouse_y'/>
<pointer type-name='uint8_t' name='screen_limit'/>
</struct-type>
<class-type type-name='renderer'>
<pointer type-name='uint8_t' name='screen' is-array='true'/>
<pointer type-name='long' name='screentexpos' is-array='true'/>
<pointer type-name='int8_t' name='screentexpos_addcolor' is-array='true'/>
<pointer type-name='uint8_t' name='screentexpos_grayscale' is-array='true'/>
<pointer type-name='uint8_t' name='screentexpos_cf' is-array='true'/>
<pointer type-name='uint8_t' name='screentexpos_cbr' is-array='true'/>
<pointer type-name='uint8_t' name='screen_old' is-array='true'/>
<pointer type-name='long' name='screentexpos_old' is-array='true'/>
<pointer type-name='int8_t' name='screentexpos_addcolor_old' is-array='true'/>
<pointer type-name='uint8_t' name='screentexpos_grayscale_old' is-array='true'/>
<pointer type-name='uint8_t' name='screentexpos_cf_old' is-array='true'/>
<pointer type-name='uint8_t' name='screentexpos_cbr_old' is-array='true'/>
<virtual-methods>
<vmethod name='update_tile'> <int32_t name='x'/> <int32_t name='y'/> </vmethod>
<vmethod name='update_all'/>
<vmethod name='render'/>
<vmethod name='set_fullscreen'/>
<vmethod name='zoom'>
<enum base-type='int32_t' type-name='zoom_commands'/>
</vmethod>
<vmethod name='resize'> <int32_t name='w'/> <int32_t name='h'/> </vmethod>
<vmethod name='grid_resize'> <int32_t name='w'/> <int32_t name='h'/> </vmethod>
<vmethod is-destructor='true'/>
<vmethod ret-type='bool' name='get_mouse_coords'>
<pointer type-name='int32_t' name='x'/>
<pointer type-name='int32_t' name='y'/>
</vmethod>
<vmethod ret-type='bool' name='uses_opengl'/>
</virtual-methods>
</class-type>
<enum-type type-name='zoom_commands'>
<enum-item name='zoom_in'/>
<enum-item name='zoom_out'/>
<enum-item name='zoom_reset'/>
<enum-item name='zoom_fullscreen'/>
<enum-item name='zoom_resetgrid'/>
</enum-type>
<class-type type-name='enabler' original-name='enablerst' custom-methods='true'>
<extra-include filename='Hooks.h'/>
<bool name='fullscreen'/>
<stl-deque name='overridden_grid_sizes'>
<int32_t/>
<int32_t/>
</stl-deque>
<pointer name='renderer' type-name='renderer'/>
<int32_t name='calculated_fps'/>
<int32_t name='calculated_gfps'/>
<stl-deque name='frame_timings' type-name='int32_t'/>
<stl-deque name='gframe_timings' type-name='int32_t'/>
<int32_t name='frame_sum'/>
<int32_t name='gframe_sum'/>
<int32_t name='frame_last'/>
<int32_t name='gframe_last'/>
<s-float name='fps'/>
<s-float name='gfps'/>
<s-float name='fps_per_gfps'/>
<uint32_t name='last_tick'/>
<s-float name='outstanding_frames'/>
<s-float name='outstanding_gframes'/>
<uint32_t name='async_frames'/>
<bool name='async_paused'/>
<compound name='async_tobox'>
<pointer name='sem'/>
<stl-deque name='queue'>
<enum name='cmd'>
<enum-item name='pause'/>
<enum-item name='start'/>
<enum-item name='render'/>
<enum-item name='inc'/>
<enum-item name='set_fps'/>
</enum>
<int32_t name='val'/>
</stl-deque>
<pointer name='sem_fill'/>
</compound>
<compound name='async_frombox'>
<pointer name='sem'/>
<stl-deque name='queue'>
<enum name='msg'>
<enum-item name='quit'/>
<enum-item name='complete'/>
<enum-item name='set_fps'/>
<enum-item name='set_gfps'/>
<enum-item name='push_resize'/>
<enum-item name='pop_resize'/>
<enum-item name='reset_textures'/>
</enum>
<compound is-union='true'>
<int32_t name='fps'/>
<compound>
<int32_t name='x'/>
<int32_t name='y'/>
</compound>
</compound>
</stl-deque>
<pointer name='sem_fill'/>
</compound>
<compound name='async_zoom'>
<pointer name='sem'/>
<stl-deque name='queue'>
<enum base-type='int32_t' type-name='zoom_commands'/>
</stl-deque>
<pointer name='sem_fill'/>
</compound>
<pointer name='async_fromcomplete'/>
<uint32_t name='renderer_threadid'/>
<stl-string name='command_line'/>
<static-array name='ccolor' count='16'>
<static-array count='3' type-name='s-float'/>
</static-array>
<bitfield name='flag' base-type='long'>
<flag-bit name='render'/>
<flag-bit name='maxfps'/>
</bitfield>
<int8_t name='mouse_lbut'/>
<int8_t name='mouse_rbut'/>
<int8_t name='mouse_lbut_down'/>
<int8_t name='mouse_rbut_down'/>
<int8_t name='mouse_lbut_lift'/>
<int8_t name='mouse_rbut_lift'/>
<int8_t name='tracking_on'/>
<compound name='textures'>
<stl-vector type-name='pointer' name='raws'/>
<bool name='uploaded'/>
<uint32_t name='gl_catalog'/>
<pointer name='gl_texpos'/>
</compound>
<int32_t name='sync'/>
<compound name='text_system'>
<stl-vector name='file_info'>
<pointer>
<long name='index'/>
<stl-string name='filename'/>
<int8_t name='file_token'/>
<long name='number'/>
</pointer>
</stl-vector>
</compound>
<compound name='simticks'>
<pointer name='sem'/>
<int32_t name='value'/>
</compound>
<compound name='gputicks'>
<pointer name='sem'/>
<int32_t name='value'/>
</compound>
<uint32_t name='clock'/>
<virtual-methods>
<vmethod ret-type='stl-string' name='GetKeyDisplay'>
<enum type-name='interface_key' base-type='int32_t'/>
</vmethod>
</virtual-methods>
<custom-methods>
<cmethod name='zoom_display'/>
</custom-methods>
</class-type>
<enum-type type-name='justification' base-type='uint8_t' comment='from libgraphics'>
<enum-item name='justify_left'/>
<enum-item name='justify_center'/>
<enum-item name='justify_right'/>
<enum-item name='justify_cont'/>
<enum-item name='not_truetype'/>
</enum-type>
</data-definition>
<!--
Local Variables:
indent-tabs-mode: nil
nxml-child-indent: 4
End:
-->