Re: Calling C++ functions in luawith objects as arguments
Francisco Ganacim <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
> // First Arg: Name of the function in Lua, Second Arg: Function in C++
> luabind::def("Invert", &ImageProcessor::Invert)
> //I don't know exactly how to bind the arguments of the Canny function
> luabind::def("Canny", &ImageProcessor::Canny, (void), (const CByteImage *),
> (CByteImage *), (int), (int)),
>
> have you tried
luabind::def( "Canny", ( void (*) (const CByteImage*, CByteImage*, int, int)
&ImageProcessor::Canny );
?
--
Francisco Ganacim
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
luabind-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luabind-user