0029768: Visualization, TKOpenGl - structure is entirely clipped by suppressed clipping
[occt.git] / tests / bugs / vis / bug22879
1 puts "============"
2 puts "OCC22879"
3 puts "============"
4 puts ""
5 #######################################################################
6 # Possible bug in Opengl_togl_begin_layer_mode.cxx
7 #######################################################################
8
9 vfont add [locate_data_file DejaVuSans.ttf] SansFont
10
11 set BugNumber OCC22879
12
13 vinit
14
15 vdrawtext t1 "Text Height=14" -2d -perspos -1 1 -pos 10 -10 0 -height 14 -color 1 1 1 -font SansFont
16 vdrawtext t2 "Text Height=25" -2d -perspos -1 1 -pos 10 -40 0 -height 25 -color 1 1 1 -font SansFont
17 vdrawtext t3 "Arial" -2d -perspos -1 1 -pos 10 -60 0 -height 18 -font SansFont -color 1 0 0
18 vdrawtext t4 "Times New Roman" -2d -perspos -1 1 -pos 10 -80 0 -height 18 -font SansFont -color 0 0 1
19 vdrawtext t5 "Subtitle" -2d -perspos -1 1 -pos 10 -110 0 -height 20 -font SansFont -color 0 1 0 -disptype subtitle -subcolor 0.3 0.3 0.3
20 vdrawtext t6 "Decal" -2d -perspos -1 1 -pos 10 -140 0 -height 20 -font SansFont -color 0 0 1 -disptype decal -subcolor 1 0 0
21 vdrawtext t7 "Blend" -2d -perspos -1 1 -pos 10 -170 0 -height 20 -font SansFont -color 1 0 0 -disptype blend
22 box b 50 -700 450 50 50 50
23 vdisplay b
24 vsetdispmode 1
25 vsetcolor b ANTIQUEWHITE
26
27 checkcolor 24 55  0.753 0.000 0.000
28 checkcolor 16 76  0.000 0.000 1.000
29 checkcolor 25 107 0.000 1.000 0.000
30 checkcolor 34 114 0.298 0.298 0.298
31 checkcolor 24 131 0.922 0.000 0.000
32 checkcolor 18 139 0.145 0.000 0.855
33 checkcolor 56 160 1.000 0.000 0.000
34 checkcolor 30 160 0.188 0.761 0.698
35
36 checkview -screenshot -3d -path ${imagedir}/${test_image}.png
37