I have two questions: suppose my program is build on glut, and it is all level abstract. All concrete data are passed in through a top level data structure pointer. Now, at run time how can the program update any property (camera position, object position, etc) without keybord or mouse function? For instance, if the program is called by a set of Motif widget functions at run time?
Another question: I tried to use multithreading or multi_process to call my program multiple times using one data structure, it can pop up multiple windows, but how can I get control to updating these windows by those Motif widget functions?
Still in my capstone project, these are my mentor’s requirements. The program is written in C under Linux.