togl with indirct rendering

This commit is contained in:
Joachim Schoeberl 2014-10-14 18:31:56 +00:00
parent e27dfe3307
commit e0b71dc5b4

View File

@ -9,9 +9,9 @@ set oldmousey 0
# if { 1 } {
# use this one for Togl 2.0
# if {[catch {togl .ndraw -width 400 -height 300 -rgba true -double true -depth true -privatecmap false -stereo false -indirect true -create init -display draw -reshape reshape }] } {
# if {[catch {togl .ndraw -width 400 -height 300 -rgba true -double true -depth true -privatecmap false -stereo false -indirect false -create init -display draw -reshape reshape }] } {
if {[catch {togl .ndraw -width 400 -height 300 -rgba true -double true -depth true -privatecmap false -stereo false -indirect true }] } { puts "no OpenGL"
if {[catch {togl .ndraw -width 400 -height 300 -rgba true -double true -depth true -privatecmap false -stereo false -indirect false }] } { puts "no OpenGL"
} {
#
pack .ndraw -expand true -fill both -padx 10 -pady 10