Home Overview FAQ Documentation Download Mailing List Geomview For Windows? Support Users Development Bug Reporting Contributing Contact Us Sponsors
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Update REQ 6025]: quaestions
> control the timing. What happens when my module generates data > faster than geomview can display it? Can geomview send something > to my module which ways it is ready for the next frame? Yes. You can use the GCL "echo" command to get Geomview to tell you when it has finished executing all the commands you've sent it so far; we use a procedure like the following: void SyncGeomview(FILE *togv, FILE *fromgv) { char buf[512]; fprintf(togv, "(echo \"ready\\n\")\n"); fflush( fromgv ); do { fgets(buf, 511, fromgv); } while (strncmp(buf,"ready",5)!=0); } Of course this assumes that "togv" is a pipe to, and "fromgv" a pipe from, Geomview. If you're running the program as a regular external module, then these are just your program's stdin and stdout. Note that the above procedure is not perfect --- if the fgets() in the loop returns something other than "ready", presumably your program would want to know about it, but the above procedure discards it. You can modify it if necessary for your needs, of course. Hope this helps, --Mark
|
||
Home | Overview | FAQ | Documentation | Support | Download | Mailing List Windows? | Development | Bug Reporting | Contributing | Contact Us | Sponsors |
|||
site hosted by |