I will be using OpenGL to display data on Smith chart.
I thing I got the “callback” concept figured out, now I need to verify how to trigger redraw of the “display”.
common way to accomplish that ?
The “update display” will be triggered asynchronously - externally via bluetooth. Basically bluetooth socket waits for data to arrive. So - can I use glutPostRedisplay() AFTER the data arrives? Any issues with process being stopped to wait for the data and OpenGL "main loop "?
I hope this makes sense.
No, it does not make sense.
If process is stopped waiting for socket to arrive it woudl have to be inserted in SOME OpenGL loop.
So -have " wait for socket" loop , when data arrives THEN implement ONE shot of OpenGL “main loop” and exit it.
Then loop in "wait for socket state " and when data arrives - repeat the above.
Display timing is irrelevant.