0027715: Visualization - turn off deprecated OpenGL fixed-function pipeline by default
[occt.git] / tests / bugs / vis / bug24622
CommitLineData
f376ac72 1puts "============"
2puts "CR24622"
3puts "============"
4puts ""
5
6##############################################################################
7# Test for mapping Image_PixMap on AIS_TexturedShape / Graphic3d_TextureRoot
8##############################################################################
9
10set aV1 "Driver1/Viewer1/View1"
11set aV2 "Driver1/Viewer2/View1"
12vinit name=$aV1 l=32 t=32 w=400 h=400
13vinit name=$aV2 l=32 t=32 w=400 h=400
14vactivate $aV1
f376ac72 15vclear
16
17OCC24622 1D
18vtop
19vfit
20
be375252 21set aColor [vreadpixel 100 200 rgb name]
22if { "$aColor" != "CYAN1" } {
23 puts "Error: the 1D texture color does not match at px (100, 200)!"
f376ac72 24}
25
be375252 26set aColor [vreadpixel 300 200 rgb name]
27if { "$aColor" != "CHARTREUSE" } {
28 puts "Error: the 1D texture color does not match at px (300, 200)!"
f376ac72 29}
30
31vactivate $aV2
f376ac72 32vclear
33
34OCC24622 2D
35vtop
36vfit
37
be375252 38set aColor [vreadpixel 100 200 rgb name]
39if { "$aColor" != "DARKGOLDENROD1" } {
40 puts "Error: the 2D texture color does not match at px (200, 100)!"
f376ac72 41}
42
be375252 43set aColor [vreadpixel 200 300 rgb name]
44if { "$aColor" != "CHARTREUSE" } {
45 puts "Error: the 2D texture color does not match at px (200, 300)!"
f376ac72 46}
47
5747059b 48checkview -screenshot -3d -path ${imagedir}/${test_image}.png