• External Interfacing how to call a method from a function table from a

    From Zenchess@21:1/5 to All on Fri Aug 21 21:09:37 2020
    I am trying to use the openvr c api to get my "game engine" into VR. I am calling the method
    S_API intptr_t VR_GetGenericInterface( const char *pchInterfaceVersion, EVRInitError *peError );

    So I guess I'm getting a pointer to an ivr system interface with a function table. I am trying to call the first method on that functable:

    struct VR_IVRSystem_FnTable
    {
    void (OPENVR_FNTABLE_CALLTYPE *GetRecommendedRenderTargetSize)(uint32_t * pnWidth, uint32_t * pnHeight);

    Any idea how to call this method? I seem to be getting the IVR system correctly and have made an externalstructure for it, but everything I've tried to call the method has failed so far.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From citrusn@gmail.com@21:1/5 to All on Sun Aug 23 03:34:11 2020
    Hi, Zenchess

    Please, take a look here: https://groups.google.com/g/comp.lang.smalltalk.dolphin/c/hgrMr7_6Xhc/m/-nMO9MFUBQAJ
    I had a similar task

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)