1[bitmaps]
2mysha=../examples/data/mysha.pcx
3allegro=../examples/data/allegro.pcx
4
5[test blit]
6op0=al_clear_to_color(red)
7op1=al_draw_bitmap(mysha, 37, 47, flags)
8flags=0
9hash=dabe9c74
10
11[test blit vflip]
12extend=test blit
13flags=ALLEGRO_FLIP_VERTICAL
14hash=ee8c112c
15
16[test blit hflip]
17extend=test blit
18flags=ALLEGRO_FLIP_HORIZONTAL
19hash=7e343e90
20
21[test blit vhflip]
22extend=test blit
23flags=ALLEGRO_FLIP_VERTICAL|ALLEGRO_FLIP_HORIZONTAL
24hash=72d59a18
25
26[test region]
27op0=al_clear_to_color(red)
28op1=al_draw_bitmap(mysha, 37, 47, flags)
29op2=al_draw_bitmap_region(mysha, 111, 51, 77, 99, 37, 47, flags)
30flags=0
31hash=8e5335ae
32
33[test region hflip]
34extend=test region
35flags=ALLEGRO_FLIP_HORIZONTAL
36hash=569472fc
37
38[test region vflip]
39extend=test region
40flags=ALLEGRO_FLIP_VERTICAL
41hash=f479bb0d
42
43[test region vhflip]
44extend=test region
45flags=ALLEGRO_FLIP_HORIZONTAL|ALLEGRO_FLIP_VERTICAL
46hash=cadc1987
47
48[test scale min]
49op0=al_clear_to_color(red)
50op1=al_draw_scaled_bitmap(mysha, 0, 0, 320, 200, 11, 17, 77, 99, flags)
51flags=0
52hash=ae4b4301
53
54[test scale min vflip]
55extend=test scale min
56flags=ALLEGRO_FLIP_VERTICAL
57hash=973bd6bd
58sig=DLLLLLLLLELLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
59
60[test scale min hflip]
61extend=test scale min
62flags=ALLEGRO_FLIP_HORIZONTAL
63hash=807e7ae5
64
65[test scale min vhflip]
66extend=test scale min
67flags=ALLEGRO_FLIP_VERTICAL|ALLEGRO_FLIP_HORIZONTAL
68hash=5c2b54ad
69
70[test scale max]
71op0=al_clear_to_color(blue)
72op1=al_draw_scaled_bitmap(mysha, 0, 0, 320, 200, 11, 17, 611, 415, flags)
73flags=0
74hash=1ede4355
75sig=EEEEEEDDCEFGPGEEDDFKjsebEDDGwvsVaEEDHvcgQPKDDHogTKMFEE4EaNLN9DE22254I222DDDDDDDDD
76
77[test scale max hflip]
78extend=test scale max
79flags=ALLEGRO_FLIP_HORIZONTAL
80hash=99b05f69
81sig=CDEEEEEEECDEMFRFFECDEairgGFDEIZburwFDEMOTlrvGDECLLUeqGDD2HMNaA3222385222DDDDDDDDD
82
83[test scale max vflip]
84extend=test scale max
85flags=ALLEGRO_FLIP_VERTICAL
86hash=d9f0a6ea
87sig=22221222222VM2K222GmePLLDEEJrmeRQJEDHuuoTUHDDFlovXaEDDEFPsgVEDCEEEEEEEDCIIIIIIHHH
88
89[test scale max2]
90op0=al_clear_to_color(aqua)
91op1=al_draw_scaled_bitmap(mysha, 0, 0, 320, 200, 320, 240, dw, dh, flags)
92dw=600
93dh=600
94flags=0
95hash=edba302f
96sig=ggggggggggggggggggggggggggggggggggggggggXPQQQggggQEEEEggggQEEFFggggQFOtsggggQFomt
97
98[test scale max2 vflip]
99extend=test scale max2
100flags=ALLEGRO_FLIP_VERTICAL
101hash=e6bc6d52
102sig=ggggggggggggggggggggggggggggggggggggggggTJJJJggggJ222BggggJ22LGggggJ1baOggggVIkgP
103
104[test scale max2 negy hflip]
105extend=test scale max2
106dh=-600
107flags=ALLEGRO_FLIP_HORIZONTAL
108hash=e6bc6d52
109sig=ggggPDEEYggggPCDEXggggPDDEDggggOCDDEggggYTTUUgggggggggggggggggggggggggggggggggggg
110
111[test scale max2 negy vhflip]
112extend=test scale max2
113dh=-600
114flags=ALLEGRO_FLIP_VERTICAL|ALLEGRO_FLIP_HORIZONTAL
115hash=cf1b15e6
116sig=ggggQEEDMggggQDE7HggggJ1211ggggJ2222ggggWPPPPgggggggggggggggggggggggggggggggggggg
117
118[test scale max2 negx vflip]
119extend=test scale max2
120dw=-600
121flags=ALLEGRO_FLIP_VERTICAL
122hash=635d9cf1
123sig=ggggggggggggggggggggggggggggggggggggJJJJWgggg9222PggggHK22PggggOab1PggggQgkIYgggg
124
125[test scale max2 negx negy]
126extend=test scale max2
127dw=-600
128dh=-600
129sig=tmnFUggggrrIFUggggFFEEUggggEEEEUggggUUUTbgggggggggggggggggggggggggggggggggggggggg
130
131[test scale max2 negx negy hflip]
132extend=test scale max2 negx negy
133flags=ALLEGRO_FLIP_HORIZONTAL
134sig=ZEEDTggggXEDCTggggDEDCTggggEDDCTggggUTTTagggggggggggggggggggggggggggggggggggggggg
135
136[test scale max2 negx negy vflip]
137extend=test scale max2 negx negy
138flags=ALLEGRO_FLIP_VERTICAL
139sig=QgkHYggggOaZ2PggggHH22Pgggg9222PggggPPPPZgggggggggggggggggggggggggggggggggggggggg
140
141[test scale max2 negx negy vhflip]
142extend=test scale max2 negx negy
143flags=ALLEGRO_FLIP_VERTICAL|ALLEGRO_FLIP_HORIZONTAL
144sig=MCEEUggggG7EDUgggg1121Pgggg2222PggggPPPPZgggggggggggggggggggggggggggggggggggggggg
145
146[test rotate]
147op0=al_clear_to_color(purple)
148op1=al_draw_rotated_bitmap(allegro, 50, 50, 320, 240, theta, flags)
149op2=al_draw_pixel(320, 240, cyan)
150theta=0
151flags=0
152hash=435c5d10
153
154[test rotate 0.5]
155extend=test rotate
156theta=0.5
157hash=f03d3240
158sig=LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLULLLLLLLLRKLLLLLLLQaaTLLLLOKSOkRLLLLGQXTLLLLLLINOL
159
160[test rotate 1.0]
161extend=test rotate
162theta=1.0
163hash=78bf9ff5
164sig=LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLkLLLLLLLIRLLLLLLOLcLLLLLLLOQkLLLLLLGaXeLLLLLLSinLL
165
166[test rotate 1.0 vflip]
167extend=test rotate 1.0
168flags=ALLEGRO_FLIP_VERTICAL
169hash=5b75eca4
170sig=LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLSNLLLLLLYTPHLLLLLLeVNLLLLLLL+WMLLLLLLhgNLL
171
172[test rotate -1.0]
173extend=test rotate
174theta=-1.0
175hash=d86fa86f
176sig=LLLLLVmMLLLLLLYhNNLLLLKlUOLLLLLUdbHLLLLLTOLLLLLLLbLMLLLLLLLNLLLLLLLLLLLLLLLLLLLLL
177
178[test rotate -2.0]
179extend=test rotate
180theta=-2.0
181hash=1b5ff6da
182sig=LLifZHLLLLLLgUJLLLLLLaYKLLLLLLKfOILLLLLLTJLLLLLLLkLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
183
184[test rotate -2.0 hflip]
185extend=test rotate -2.0
186flags=ALLEGRO_FLIP_HORIZONTAL
187hash=0a4986c3
188sig=LLVSMGLLLLLLYSKLLLLLLabULLLLLLPTNMLLLLLLlNLLLLLLLiLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
189
190[test rotate -2.0 vhflip]
191extend=test rotate -2.0
192flags=ALLEGRO_FLIP_VERTICAL|ALLEGRO_FLIP_HORIZONTAL
193hash=4ddeb3e3
194sig=LLJPcKLLLLLLJcZLLLLLLKWgLLLLLLIYUjLLLLLLNBLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
195
196[test scaled rotate]
197op0=al_clear_to_color(firebrick)
198op1=al_draw_scaled_rotated_bitmap(allegro, 50, 50, 320, 240, xscale, yscale, theta, flags)
199op2=al_draw_pixel(320, 240, cyan)
200xscale=0.25
201yscale=0.25
202theta=0.7854
203flags=0
204hash=dc4ad82d
205sig=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKdKKKKKKKKIKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK
206
207[test scaled rotate 2]
208extend=test scaled rotate
209xscale=0.777
210yscale=0.777
211hash=8fc7ecf8
212sig=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKXKKKKKKKKTKKKKKKKNehKKKKKKHSsgKKKKKKHTgKKKKKKKMKKK
213
214[test scaled rotate 2 neg]
215extend=test scaled rotate
216xscale=-0.777
217yscale=-0.777
218hash=96153b14
219sig=KKKLKKKKKKKbTHKKKKKKhxSHKKKKKKheNKKKKKKKVKKKKKKKKXKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK
220
221[test scaled rotate 3]
222extend=test scaled rotate
223xscale=1.777
224yscale=1.777
225hash=1d003c91
226sig=KKKKKKKKKKKKKKKKKKKKKKXKKKKKKKllQKKKKKJYQYKKKKKJRTjKKKKNNQYdnKKKOKKQUnZRKKLMYWjgf
227
228[test scaled rotate 4]
229extend=test scaled rotate
230xscale=3.0
231yscale=3.0
232theta=-2.5
233hash=31a17741
234sig=nhjTTOLOOlgdgSOJMMNnORRVNKLKOngKDEHKKKTnQYYKKKKMfnifKKKKKThiKKKKKKKWkKKKKKKKKKKKK
235
236[test scaled rotate 4 vflip]
237extend=test scaled rotate 4
238flags=ALLEGRO_FLIP_VERTICAL
239hash=055000e8
240sig=NSTPVQYDjMHQMTVWYnGKJKOJPXVFHOOQJKNKKGMONQMKKKKKSOPMKKKKKINNKKKKKKKONKKKKKKKKKKKK
241
242[test scaled rotate 4 hflip]
243extend=test scaled rotate 4
244flags=ALLEGRO_FLIP_HORIZONTAL
245hash=59ba09c8
246sig=mbfcaSMKOieel/TMNNQihgcHMONOYfi//DNKLbgclyqKKKLdhcnmKKKKKiflKKKKKKLlhKKKKKKKLKKKK
247
248[test scaled rotate 4 vhflip]
249extend=test scaled rotate 4
250flags=ALLEGRO_FLIP_VERTICAL|ALLEGRO_FLIP_HORIZONTAL
251hash=e3236edd
252sig=NVTZGmClnNRYXVf/ClGPUTPRsDhGJQSLMNlKKKMKNLOKKKKMLNNNKKKKKLLNKKKKKKKNNKKKKKKKKKKKK
253
254[test scaled rotate 5]
255extend=test scaled rotate
256xscale=200
257yscale=3.0
258theta=-2
259# It is known that the sw version is slightly offset from the hw version.
260hash=e941f051
261sig=LXnQfPMOMKTkQXUGJLKRjmYGKJOKKXnUfQKNKKTkQXVJJKKRjnYCHJKKKYneaQLKKKTkQXWJKKKQimYDN
262
263[test sub src]
264op0=al_clear_to_color(teal)
265op1=b = al_create_sub_bitmap(allegro, 3, 40, 310, 70)
266op2=al_draw_bitmap(b, 50, 50, flags)
267op3=al_draw_rectangle(49.5, 49.5, 360.5, 120.5, black, 1)
268flags=0
269hash=ec890555
270
271[test sub src hflip]
272extend=test sub src
273flags=ALLEGRO_FLIP_HORIZONTAL
274hash=8862d735
275sig=QNOQQLLLLDGbSVLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
276
277[test sub src outside]
278op0=al_clear_to_color(teal)
279op1=al_draw_rectangle(9.5, 9.5, 380.5, 260.5, black, 1)
280op2=b = al_create_sub_bitmap(allegro, -50, -50, 370, 250)
281op3=al_draw_bitmap(b, 10, 10, flags)
282flags=0
283hash=208f7025
284
285[test sub src outside hflip]
286extend=test sub src outside
287flags=ALLEGRO_FLIP_HORIZONTAL
288hash=c72f2d45
289
290[test sub src outside vflip]
291extend=test sub src outside
292flags=ALLEGRO_FLIP_VERTICAL
293hash=287e0fbd
294
295[test sub src outside vhflip]
296extend=test sub src outside
297flags=ALLEGRO_FLIP_VERTICAL|ALLEGRO_FLIP_HORIZONTAL
298hash=4696783d
299
300[test sub src outside scale]
301op0=al_clear_to_color(teal)
302op1=b = al_create_sub_bitmap(allegro, -50, -50, 370, 250)
303op2=al_draw_rectangle(9.5, 9.5, 610.5, 410.5, black, 1)
304op3=al_draw_scaled_bitmap(b, 0, 0, 370, 250,  10, 10, 600, 400, flags)
305flags=0
306hash=ac298a45
307sig=LLLLLLLLLLTNKKNXbkLmnkkffVhLnNOhcv/zLKZPaepcOLKNKZYYNOLMNMMOSOOLONIHHKLNLLLLLLLLL
308
309[test sub src outside scale hflip]
310extend=test sub src outside scale
311flags=ALLEGRO_FLIP_HORIZONTAL
312hash=898f5e8d
313sig=LLLLLLLLLjcRKKKRWLYYheknnjLW/P+UWYkLQ/qgPaRRLLQWZXQJKLNRQOKONQLLMIFGOKNLLLLLLLLLL
314
315[test sub src outside scale vflip]
316extend=test sub src outside scale
317flags=ALLEGRO_FLIP_VERTICAL
318hash=762b67d5
319sig=LMPLHHMLMLQMHJSWNNLLPMZXYSNLMdMjbdLDLcbOmfgkmLjhTQReegLLLLLLLLLLLLLLLLLLLLLLLLLLL
320
321[test sub src outside scale vhflip]
322extend=test sub src outside scale
323flags=ALLEGRO_FLIP_HORIZONTAL|ALLEGRO_FLIP_VERTICAL
324hash=7c95685d
325sig=LNJGGONOLNNVMMGKPLMUfdWRKJLh/hcUaYVLmkekXhYjLfeYVPYjkLLLLLLLLLLLLLLLLLLLLLLLLLLLL
326
327[test sub dest]
328op0=b = al_create_sub_bitmap(target, 35, 37, 103, 104)
329op1=al_set_target_bitmap(b)
330op2=al_draw_bitmap(allegro, 0, 0, 0)
331hash=1127286c
332
333[test sub dest pixel]
334op0=b = al_create_sub_bitmap(target, 35, 37, 103, 104)
335op1=al_set_target_bitmap(b)
336op2=al_draw_pixel(0.5, 0.5, red)
337op3=al_put_pixel(1, 0, limegreen)
338op4=al_draw_pixel(14.5, 17.5, red)
339op5=al_put_pixel(15, 17, limegreen)
340op6=al_draw_pixel(24.5, 27.5, red)
341op7=al_put_pixel(25, 27, limegreen)
342hash=b4d84cb9
343hash_hw=663b41cf
344sig_hw=000000000000000000000000000000000000000000000000000000000000000000000000000000000
345
346[test subsub dest]
347op0=al_clear_to_color(tan)
348op1=b1 = al_create_sub_bitmap(target, 70, 90, 200, 200)
349op2=al_set_target_bitmap(b1)
350op3=al_clear_to_color(seagreen)
351op4=b2 = al_create_sub_bitmap(b1, -50, -50, 200, 200)
352op5=al_set_target_bitmap(b2)
353op6=al_clear_to_color(royalblue)
354op7=al_draw_bitmap(allegro, 10, 10, 0)
355hash=066a6e10
356
357[test sub transform]
358op0=al_clear_to_color(teal)
359op1=b = al_create_sub_bitmap(mysha, 160, 0, 160, 200)
360op2=al_translate_transform(Tt, -80, 0)
361op3=al_use_transform(Tt)
362op4=al_draw_bitmap(b, 320, 10, flags)
363op5=al_use_transform(Ti)
364op6=al_draw_line(320.5, 0, 320.5, 480, #ffffff, 1)
365flags=0
366hash=945d520b
367sig=LLLZLCLLLLLLPLDLLLLLLMLDLLLLLL2A2LLLLLLLRLLLLLLLLRLLLLLLLLRLLLLLLLLRLLLLLLLLRLLLL
368
369[test sub transform hflip]
370extend=test sub transform
371flags=ALLEGRO_FLIP_HORIZONTAL
372hash=ee8a23a0
373sig=LLLCLZLLLLLLDLPLLLLLLDLMLLLLLL2A2LLLLLLLRLLLLLLLLRLLLLLLLLRLLLLLLLLRLLLLLLLLRLLLL
374
375[test sub transform vflip]
376extend=test sub transform
377flags=ALLEGRO_FLIP_VERTICAL
378hash=9290db87
379sig=LLL2B1LLLLLLKLDLLLLLLVLCLLLLLLEKCLLLLLLLRLLLLLLLLRLLLLLLLLRLLLLLLLLRLLLLLLLLRLLLL
380
381[test sub transform vhflip]
382extend=test sub transform
383flags=ALLEGRO_FLIP_VERTICAL|ALLEGRO_FLIP_HORIZONTAL
384hash=d43a7e7c
385sig=LLL1A2LLLLLLDLLLLLLLLCLVLLLLLLCKELLLLLLLRLLLLLLLLRLLLLLLLLRLLLLLLLLRLLLLLLLLRLLLL
386
387[test region transform]
388op0=al_clear_to_color(teal)
389op1=al_translate_transform(Tt, -80, 0)
390op2=al_use_transform(Tt)
391op3=al_draw_bitmap_region(mysha, 160, 0, 160, 200, 320, 10, flags)
392op4=al_use_transform(Ti)
393op5=al_draw_line(320.5, 0, 320.5, 480, #ffffff, 1)
394flags=0
395hash=945d520b
396sig=LLLZLCLLLLLLPLDLLLLLLMLDLLLLLL2A2LLLLLLLRLLLLLLLLRLLLLLLLLRLLLLLLLLRLLLLLLLLRLLLL
397
398[test region transform hflip]
399extend=test region transform
400flags=ALLEGRO_FLIP_HORIZONTAL
401hash=ee8a23a0
402sig=LLLCLZLLLLLLDLPLLLLLLDLMLLLLLL2A2LLLLLLLRLLLLLLLLRLLLLLLLLRLLLLLLLLRLLLLLLLLRLLLL
403
404[test region transform vflip]
405extend=test region transform
406flags=ALLEGRO_FLIP_VERTICAL
407hash=9290db87
408sig=LLL2B1LLLLLLKLDLLLLLLVLCLLLLLLEKCLLLLLLLRLLLLLLLLRLLLLLLLLRLLLLLLLLRLLLLLLLLRLLLL
409
410[test region transform vhflip]
411extend=test region transform
412flags=ALLEGRO_FLIP_VERTICAL|ALLEGRO_FLIP_HORIZONTAL
413hash=d43a7e7c
414sig=LLL1A2LLLLLLDLLLLLLLLCLVLLLLLLCKELLLLLLLRLLLLLLLLRLLLLLLLLRLLLLLLLLRLLLLLLLLRLLLL
415
416[test transform compose]
417op0=al_translate_transform(Tt, 200, 50)
418op1=al_use_transform(Tt)
419op2=al_draw_bitmap(allegro, 0, 0, 0)
420op3=al_rotate_transform(Tr, 0.5)
421op4=al_use_transform(Tr)
422op5=al_draw_bitmap(mysha, 0, 0, 0)
423op6=al_scale_transform(T, 1.5, 0.7)
424op7=al_compose_transform(T, Tr)
425op8=al_compose_transform(T, Tt)
426op9=al_use_transform(T)
427op10=al_draw_bitmap(allegro, 0, 0, 0)
428hash=e1c88814
429sig=E0075AAD0wElcvfjm0pYKUlWto0LLKKZnPM02CEHKZNe002100JZPl000000MNV000000000000000000
430
431[test transform per bitmap]
432op0=al_clear_to_color(gray)
433op1=al_build_transform(T1, 200, 50, 1, 1, -0.333)
434op2=al_use_transform(T1)
435op3=sub = al_create_sub_bitmap(target, 30, 150, 400, 300)
436op4=al_set_target_bitmap(sub)
437op5=al_clear_to_color(azure)
438op6=al_build_transform(Tsub, 0, 0, 1.5, 1.5, 0.5)
439op7=al_use_transform(Tsub)
440op8=al_draw_bitmap(mysha, 0, 0, 0)
441op9=al_set_target_bitmap(target)
442op10=al_draw_bitmap(allegro, 0, 0, 0)
443hash=341b718b
444sig=WWWVngLbWWWWBUUaNWWWWJNKLLWE++POGWWWFEP+++WWWmtEE++WWWqvlFD+WWWjaPQECWWWVLKPDCWWW
445