summaryrefslogtreecommitdiffstats
path: root/tests/arthur/data/qps/perspectives.qps
blob: 67b5d6d574a008a32b3ddfd9a0932227a5fef791 (plain)
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

setRenderHint Antialiasing

setPen #00ff00

image_load image.png the_image

translate 10 10
# standard draw
drawImage the_image 0 0

# Rotation w/o smooth xform
save
translate 350 0
save
  setRenderHint SmoothPixmapTransform on
  mapQuadToQuad 0 0 0 300 300 300 300 0   0 50 0 200 300 300 300 0
  drawImage the_image 0 0
restore
restore

translate 0 320

save
  setRenderHint SmoothPixmapTransform on
  mapQuadToQuad 0 0 0 300 300 300 300 0   0 0 100 300 200 300 300 0
  drawImage the_image 0 0
restore

save
translate 350 0
save
  setRenderHint SmoothPixmapTransform on
  mapQuadToQuad 0 0 0 300 300 300 300 0   0 0 0 300 300 250 300 50
  drawImage the_image 0 0
restore
restore

setRenderHint SmoothPixmapTransform on
setBrush red
setPen black
resetMatrix
translate 100 720
rotate_y 85
scale 7 0.01
drawRect -150 -150 300 300

resetMatrix
setBrush gam030.png
setPen black 30
translate 700 700
rotate_y -85
scale 7 0.01
drawRect -150 -150 300 300

resetMatrix
setPen black
translate 125 20
drawText 0 0 "No transform"
translate 350 0
drawText 0 0 "Left Tilted"
resetMatrix
translate 125 350
drawText 0 0 "Bottom Tilted"
translate 350 0
drawText 0 0 "Right Tilted"
translate 120 0
resetMatrix
translate 300 760
drawText 0 0 "Perspective Clipping"