mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +05:00
togl 2.0 trials
This commit is contained in:
parent
4e3be67517
commit
f0739d2937
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user