HGE game engine right now, and have a trouble with function
hge->System_SetState(HGE_FRAMEFUNC, Update);
The second parameter of this function is a pointer to function, but my Update function is a member of a class, and such function call doesn't work. What i have to do?
make a static fuction that call your method.
would this work Foo bar; System_SetState(..., [&bar](){ std::invoke(&Foo::foo, bar, (...)); }());
Обсуждают сегодня