Re: "No static 'LoadFromImage' in class 'sfImage'"
James Porter <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
> It compiles fine, launches the following lua script:
> print 'test'
> logo = sfImage;
> logo:LoadFromFile("images/bluecosmos.png");
You want "logo = sfImage()". Right now you're just making an alias of
the class instead of making an instance of the class.
- Jim
------------------------------------------------------------------------------