Re: Wrapping C Libraries callback

new topic     » goto parent     » topic index » view thread      » older message » newer message
petelomax said...
Icy_Viking said...

When you see something like void(*call back) or something function(void*)?

Please show the actual C code.

You may (very rarely) need to use define_c_func({},addr,args), if what you've got is the raw address of a callback from a C function, but more likely if you need to provide a callback to a C function you need to pass a result from call_back() to c_func.

FGAPI void    FGAPIENTRY glutMouseWheelFunc( void (* callback)( int, int, int, int ) ); 

This is the actual C code. I'm sure there is a special way you need to wrap the callback pointer in there.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu