Pedro Henrique Linhares wrote:
> void MyGlWindow::translate(float tx, float ty, float tz){
> trans = 0; // Doesnt work as if I couldnt access this private
> member...
> redraw(); // Doesnt work! Why?
> }
Hmm, that looks fine.
Where are you calling translate() from?
Is the function/method that calls it returning control
to FLTK's run() loop?
If not, that's the problem; redraw() doesn't actually redraw
the window, it sets a flag telling FLTK's app loop to schedule
it for redraw (so that it's redrawn in the proper order with all
the other widgets), and in order to do this, you have to either
return to the app's main loop, or call Fl::wait() or Fl::check().
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk