lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello everyone!

Remember that Image class I talked about in my earlier posts? No? Okay, no problem. :-)

That Image class contains a pointer to a SDL_Surface. Like this:

class Image
{
public:
	SDL_Surface *base;
};

The question is, is that code safe to bind with toLua? Because every time I try to retrieve an Image from my script, <base> ends up being something I don't want (width and height are big negative values, huh?)

So I thought, maybe it's because it's a pointer?

Thanks in advance!