Log in or register to post comments

UpdateCallback usage

October 12, 2010 - 3:01pm #2

Are there any examples or documentation beyond the C API reference for implementing the UpdateCallback class interface? It sounds useful, but one would think that implementations would need to be registered with the tracker

Re: UpdateCallback usage

October 12, 2010 - 7:09pm #1

You can implement the UpdateCallback interface and register an object with the QCAR::registerCallback function (see QCAR.h). There are no samples utilizing the callback at this time, but it is fairly simple to use. There are two important things to note when using the callback, however:

1) The QCAR_onUpdate method runs in a separate thread from the renderer, so OpenGL calls will not work.

2) The State object received in the QCAR_onUpdate method is only valid for the scope of the method.

- Kim

Log in or register to post comments