FLTK logo

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 Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.opengl  ]
 
Previous Message ]New Message | Reply ]Next Message ]

OpenGL window update and FL_MOVE Marco Fratarcangeli Mar 13, 2006  
 
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

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

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