ab9e277f |
1 | puts "=============" |
2 | puts "0031193: Visualization - OpenGl_Flipping wrong text position if local transformation set" |
3 | puts "=============" |
4 | |
5 | vfont add [locate_data_file DejaVuSans.ttf] SansFont |
6 | |
7 | vinit View1 |
8 | vtrihedron trihedr |
9 | |
10 | vdrawtext Text "First line\nSecond line" -pos 10 0 0 -color red -plane 1 0 0 0 1 0 -flipping -halign center -valign top -height 50 -font SansFont |
11 | |
12 | vright |
13 | vrotate 0 3.14 0 |
14 | vlocation Text -rotate 0 0 0 0 1 0 180 |
15 | |
16 | if {[vreadpixel 67 126 rgb name] == "RED"} { puts "ERROR: the text is not flipped" } |
17 | |
18 | vdump $imagedir/${casename}.png |