1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-06-15 11:44:07 +03:00
occt/tests/v3d/glsl/glinfo
kgv 72ed06442e 0032154: Tests - include vglinfo into Tests Summary
Command testgrid now includes vglinfo into summary.
Command vinit has been extended by -virtual option creating an offscreen window.
Command vglinfo now splits long values into multiple lines.
Added test case v3d/glsl/glinfo dumping OpenGL context creation info.

OpenGl_Window - fixed initialization of OpenGL 4.6 Core Profile (was limited to 4.5).
2021-02-25 18:55:29 +03:00

47 lines
976 B
Plaintext

puts "============"
puts "Print OpenGL info"
puts "============"
puts ""
set to_dump_screen 0
pload VISUALIZATION
vclose ALL 0
puts "=== Create compatible profile ==="
vgldebug 0
vcaps -core 0 -maxVersion -1 -1 -softMode 0
vinit g1/v/info
vglinfo -complete -lineWidth 80
vclose ALL 0
puts "=== Create core profile ==="
vgldebug 0
vcaps -core 1 -maxVersion -1 -1 -softMode 0
vinit g1/v/info
vglinfo -complete -lineWidth 80
vclose ALL 0
puts "=== Create version-restricted profile ==="
vgldebug 0
vcaps -core 0 -maxVersion 2 1 -softMode 0
vinit g1/v/info
vglinfo -complete -lineWidth 80
vclose ALL 0
puts "=== Create software emulated profile ==="
vgldebug 0
vcaps -core 0 -maxVersion -1 -1 -softMode 1
vinit g1/v/info
vglinfo -complete -lineWidth 80
vclose ALL 0
puts "=== Create debug profile ==="
vgldebug 1
vcaps -core 0 -maxVersion -1 -1 -softMode 0
vinit g1/v/info
vglinfo -complete -lineWidth 80
vclose ALL 0
vgldebug 0
vcaps -core 0 -maxVersion -1 -1 -softMode 0