1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/vis/bug26599
tiv 293211aee0 0030592: Draw Harness, ViewerTest - provide vbackground command unifying vsetbg, vsetbgmode, vsetgradientbg, vsetgrbgmode, vsetcolorbg
A new command vbackground is created. Old background commands are made aliases for the newly created command (including vsetdefaultbg).
Tests are modified using newly added command vbackground.
2019-04-22 19:31:24 +03:00

28 lines
615 B
Plaintext
Executable File

puts "============"
puts "CR26599"
puts "============"
puts ""
##########################################################################################
# Visualization, TKOpenGl - gradient background should reset model transformation in Core profile
##########################################################################################
vcaps -ffp 0
vinit View1
vclear
vaxo
vbackground -gradient RED BLUE1 -gradientMode VERTICAL
box b 1 2 3
vdisplay b
vfit
vlocation b -rotate 0 0 0 0 0 1 50
vmoveto 380 50
checkcolor 380 50 0.87450981140136719 0 0.12156862765550613
vdump ${imagedir}/${casename}.png