I have a need to create overlay code that needs to be called in from the render loop in the IG. It would be nice if there was a way through CIGI that one could register a user callback function and perhaps the name of a .dll that contains the function. I suppose one would also need to specify whether the function gets called at the beginning or the end of the render function.
blaylockr@yahoo.com
Logged In: YES
user_id=1805316
Originator: NO
Hi Rick,
A couple of cents to throw in:
>1) the callback function should only do render loop stuff, so how would I kick off my management code?
Two different types of callbacks could be implemented: a pre-render callback, and a post-render callback. Each would allow you to to get control for management, stats, whatever.
>2) the .dll file would have to be loaded by the IG, so that would have to go through CIGI also in order to make the overlay completely IG independent.
CIGI is probably best independent of any dll mechanism, but a C-style callback could be standardized. The callback would then use code in a dll, a thread, or any other technique you want to put in there.
Regards,
Matt S.
This would involve a CIGI change.
Also, This is something that is very IG specific