0029528: Visualization, TKOpenGl - allow defining sRGB textures
[occt.git] / tests / bugs / vis / bug30076
CommitLineData
da87ddc3 1puts "============="
2puts "0030076: Visualization, TKV3d - API to update certain vertex attribute(s) without recomputing a presentation"
3puts "============="
4
5set c1 {c 1 0 0}
6set c2 {c 0 0 1}
7
8pload VISUALIZATION
9
10vclear
11vinit View1
12vdrawparray a triangles -deinterleaved -mutable v 10 0 0 {*}$c1 v 11 0 0 {*}$c1 v 11 1 0 {*}$c1 v 11 1 0 {*}$c2 v 10 1 0 {*}$c2 v 10 0 0 {*}$c2
13vfit
14vdump $imagedir/${casename}_1.png
15vdrawparray a -patch triangles -deinterleaved -mutable v 10 0 0 {*}$c2 v 11 0 0 {*}$c2 v 11 1 0 {*}$c2 v 11 1 0 {*}$c1 v 10 1 0 {*}$c1 v 10 0 0 {*}$c1
16if { [vreadpixel 200 150 rgb name] != "RED" } { puts "Error: array was not updated" }
aaf8d6a9 17if { [vreadpixel 200 250 rgb name] != "BLUE" } { puts "Error: array was not updated" }
da87ddc3 18vdump $imagedir/${casename}_2.png