Re: "No static 'LoadFromImage' in class 'sfImage'"
James Porter <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
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
------------------------------------------------------------------------------