I'm having a problem here where an application using gl_draw() displays 
text on one computer, but not another.

Both machines are running WinXP, SP2. 

gl_draw() works fine on a Nvidia GeForce 7800GT, but not on an older ATI 
Radeon 9800 Pro. In fact, after running it on a variety of computers with 
both nVidia and ATI cards, *only* this particular machine with the 
GeForce 7800GT will display the font with gl_draw(). This is very 
frustrating :)

Hopefully i'm doing something wrong somewhere that is a simple mistake on 
my part. 

The strange thing is, piling on loads of gl_font() calls (4 or 5) in a 
row with different font sizes can "shock" fltk into displaying the text 
correctly, albeit in one particular size, for a brief time (text again 
does not display on the next execution of the program - very odd)    


in main():

Fl::gl_visual(FL_RGB);

in ::draw() method of my GL viewport class (subclassed from Fl_Gl_Window)

// draw scene here, everything's fine up until this point

// font test

    glViewport( 0, 0, w(), h() );

    glMatrixMode(GL_PROJECTION);
    glLoadIdentity();
    
    glOrtho( 0, w(), 0, h(), -1.0f, 1.0f );
    glMatrixMode(GL_MODELVIEW);
    glLoadIdentity();

    glDisable(GL_DEPTH_TEST);
    gl_font( FL_HELVETICA, 24 );  

// I've tried every imaginable combination of type face and size here
// multiple gl_font calls *sometimes* get it working - temporarily :(


    glColor3ub( 255, 255, 255 ); // white
    glRasterPos2f( w()/2.0f, h()/2.0f ); // middle of screen
    gl_draw( "TESTTESTTEST", 0.0f, 0.0f ); 


On the machine with the 7800GT, this displays "TESTTESTTEST" in huge 
white letters right smack dab in the center of the screen where it should 
be.

Every other machine i've tried it on...

... nothing.

Any ideas? I've run out of them :)






_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to