From f0739d2937688a6ec30aeda638dcb064c1f58554 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Thu, 7 Jun 2012 18:52:10 +0000 Subject: [PATCH] togl 2.0 trials --- ng/drawing.tcl | 8 ++++---- ng/ngpkg.cpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ng/drawing.tcl b/ng/drawing.tcl index 0c780666..4388e118 100644 --- a/ng/drawing.tcl +++ b/ng/drawing.tcl @@ -6,13 +6,13 @@ set oldmousey 0 # -# use this one for Togl 2.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 true }] } { - puts "no OpenGL" + +if {[catch {togl .ndraw -width 400 -height 300 -rgba true -double true -depth true -privatecmap false -stereo false -indirect true }] } { puts "no OpenGL" } { # pack .ndraw -expand true -fill both -padx 10 -pady 10 diff --git a/ng/ngpkg.cpp b/ng/ngpkg.cpp index af2c127f..853874ee 100644 --- a/ng/ngpkg.cpp +++ b/ng/ngpkg.cpp @@ -1956,8 +1956,8 @@ namespace netgen cout << "call Togl - load font (crashes on my OpenSuse Linux64)" << endl; // togl_font = Togl_LoadBitmapFont( togl, "Helvetica"); // togl_font = Togl_LoadBitmapFont( togl, "Times"); - togl_font = Togl_LoadBitmapFont( togl, TOGL_BITMAP_8_BY_13 ); - // togl_font = Togl_LoadBitmapFont( togl, NULL ); + // togl_font = Togl_LoadBitmapFont( togl, TOGL_BITMAP_8_BY_13 ); + togl_font = Togl_LoadBitmapFont( togl, NULL ); cout << "success" << endl; glMatrixMode(GL_PROJECTION);