FLTK logo

Re: [fltk.opengl] OpenGL window update and FL_MOVE

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Library      Forums      Links      Apps     Login 
 All Forums  |  Back to fltk.opengl  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: OpenGL window update and FL_MOVE Antonio Mar 13, 2006  
 
Try to use the check() instead of fl::run() in the main function:

int main(int argc, char* argv[]){
  [...] init YOUR_WIN

 while( YOUR_WIN->visible_r()) Fl::check();
return 0;
}

Bye
  Antonio

On 3/13/06, Marco Fratarcangeli <marco.fratarcangeli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Hi All,
>
> I am using FLTK and OpenGL to implement a tool for animation of 3D objects using 3rd party libraries.
>
> I have a Fl_Double_Window containing a toolbar and a Fl_Gl_Window.
> When I press a button in the toolbar, one of the 3rd party library launches a thread that modifies one of the 3D object in the scene, that is animate it depending from he current time.
>
> Each time the object is modified, I call redraw() in the Fl_Gl_Window but the object remains unchanged.
> If I move the mouse inside the Fl_Gl_Window, the animation is correctly showed. I printed the events received from the Fl_Gl_Window and it seems that the update of the GL window is due to the FL_MOVE event.
>
> Now, probably I am missing something very simple but I really don't know what.
>
> Anybody has some clues?
>
> Thanks,
>   Marco
> _______________________________________________
> fltk-opengl mailing list
> fltk-opengl-B9D8k9nSxTHQT0dZR+AlfA@public.gmane.org
> http://lists.easysw.com/mailman/listinfo/fltk-opengl
>



------------------------------------------------------------
ICQ#______________________39485066
SKYPE CONTACT_______blacktiger1978


Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.