On Monday, 22 May 2017 at 08:03:07 UTC, ParticlePeter wrote:
No, no, this (other) way around :-), still C++ to D. It actually works btw:-------- HACK ------------------- // original C++ ImVec2 GetCursorPos(); // C++ helper void GetCursorPos(ImVec2& result) { result = GetCursorPos(); } // bind with extern(C++) void GetCursorPos(ref ImVec2 result); ----------------------------------
My proposed hack is purely D side though O_-