Menu

#4 User callback function

open
nobody
5
2012-02-02
2007-05-30
Anonymous
No

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

Discussion

  • MSchifter

    MSchifter - 2007-05-31

    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.

     
  • Andrew Sampson

    Andrew Sampson - 2007-06-13
    • labels: --> 989330
    • assigned_to: nobody --> gregbasler
     
  • Greg Basler

    Greg Basler - 2012-02-02
    • labels: 989330 --> Interface Improvements (example)
    • assigned_to: gregbasler --> nobody
     
  • Greg Basler

    Greg Basler - 2012-02-02

    This would involve a CIGI change.
    Also, This is something that is very IG specific