mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-10 17:40:24 +08:00
0031039: Visualization - add elliptical gradient background style
Added new elliptical gradient fill method and updated vbackground command. Renamed enum values of Aspect_GradientFillMethod and defined aliases for old ones. Changed draw mode in OpenGl_BackgroundArray from triangle-strip to GL_TRIANGLES.
This commit is contained in:
@@ -7,10 +7,13 @@ pload VISUALIZATION
|
||||
vbackground -default -gradient BLACK GRAY25 -gradientMode HORIZONTAL
|
||||
vinit View1 w=400 h=400
|
||||
if { [vreadpixel 399 100 -rgb -name] != "GRAY25" } { puts "Error: bug with default gradient color is reproduced." }
|
||||
vdump $imagedir/${casename}_v1.png
|
||||
|
||||
vinit View2 w=400 h=400
|
||||
if { [vreadpixel 399 100 -rgb -name] != "GRAY25" } { puts "Error: bug with default gradient color is reproduced." }
|
||||
vdump $imagedir/${casename}_v2.png
|
||||
|
||||
vbackground -default -color GRAY50
|
||||
vinit View3
|
||||
if { [vreadpixel 100 100 -rgb -name] != "GRAY50" } { puts "Error: bug with default background color is reproduced." }
|
||||
vdump $imagedir/${casename}_v3.png
|
||||
|
||||
10
tests/opengl/data/background/elliptical
Normal file
10
tests/opengl/data/background/elliptical
Normal file
@@ -0,0 +1,10 @@
|
||||
puts "============"
|
||||
puts "0031039: Visualization - add elliptical gradient background style"
|
||||
puts "============"
|
||||
puts ""
|
||||
|
||||
pload VISUALIZATION
|
||||
vinit View1
|
||||
|
||||
vbackground -gradient WHITE BLACK -gradientMode ELLIPTICAL
|
||||
vdump $imagedir/${casename}.png
|
||||
Reference in New Issue
Block a user