File: texture_trsf2

package info (click to toggle)
opencascade 7.3.0%2Bdfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 278,376 kB
  • sloc: cpp: 1,136,010; ansic: 81,569; tcl: 14,864; cs: 5,173; java: 1,522; xml: 468; sh: 375; perl: 37; makefile: 25
file content (39 lines) | stat: -rw-r--r-- 1,001 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
puts "========"
puts "Texture 2D transformation (presentation trsf)"
puts "========"

set aTexture [locate_data_file bug26122_texture_trsf_ref.png]
pload MODELING VISUALIZATION
box b 1 1 1
explode b F
vclear
vclose ALL
vinit View1 w=512 h=512
vtop
vsetdispmode 1
vdisplay b_6
vfit

vcaps -ffp 1
vtexture b_6 $aTexture -modulate off
vdump $::imagedir/${::casename}_identity_ffp.png
vcaps -ffp 0
vdump $::imagedir/${::casename}_identity_glsl.png

vcaps -ffp 1
vtexture b_6 $aTexture -trsfTranslate 0.0 0.0 -trsfScale 0.8 2.0
vdump $::imagedir/${::casename}_scale_ffp.png
vcaps -ffp 0
vdump $::imagedir/${::casename}_scale_glsl.png

vcaps -ffp 1
vtexture b_6 $aTexture -trsfTranslate 0.25 -0.25 -trsfScale 1.0 1.0
vdump $::imagedir/${::casename}_translate_ffp.png
vcaps -ffp 0
vdump $::imagedir/${::casename}_translate_glsl.png

vcaps -ffp 1
vtexture b_6 $aTexture -trsfTranslate 0.25 -0.25 -trsfScale 1.1 0.8
vdump $::imagedir/${::casename}_ffp.png
vcaps -ffp 0
vdump $::imagedir/${::casename}_glsl.png