Re: "No static 'LoadFromImage' in class 'sfImage'"
Teto <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
Thx a lot it solved my problem :D
I had thought abvout something like this and tried
luabind::class_<sf::Image >("sfImage")
.def(constructor<void>())
.def("LoadFromFile",&sf::Image::LoadFromFile)
but with the void it didn't want to compile ^^
On Sun, Jul 5, 2009 at 9:49 PM, James Porter<[email protected]> wrote:
> Teto wrote:
>> Once i changed my line by yours,the first error message disappeared
>> but is replaced by another:
>> "Attempt to call a nil value"
>
> You'll also need to bind a constructor for your class:
>
> luabind::class_<sf::Image >("sfImage")
> .def(constructor<>())
> .def("LoadFromFile",&sf::Image::LoadFromFile)
>
> - Jim
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> luabind-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/luabind-user
>
------------------------------------------------------------------------------
_______________________________________________
luabind-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luabind-user