[Pyrex] void function callbacks
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri Mar 11 00:44:30 CET 2005
Craig Jacobs wrote:
> Basically, the wrapper is registering a callback, similiar to
> glutDisplayFunc. Anyone have any advice on how wrap this type of
> function and function pointer.
There's an example in Demos/callback which shows
how you can go about this, but it relies on being
able to have an arbitrary pointer passed through
to the callback function.
It sounds like the callback mechanism you want to
use doesn't have provision for that, so you'll
just have to pass a fixed C function that calls
one particular Pyrex or Python function.
--
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | A citizen of NewZealandCorp, a |
Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
greg.ewing at canterbury.ac.nz +--------------------------------------+
More information about the Pyrex
mailing list