[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: How to pass a C struct?
- From: L-28C <kixdemp@...>
- Date: Tue, 24 Jul 2007 17:18:45 -0400
Hello everyone!
I have this:
--------------------
struct Sprite
{
BITMAP *sheet, *img;
int pos, xdir, ydir, anim, walking,
x, y, sheetX, sheetY;
};
struct Sprite *loadSprite(const char*);
--------------------
How would I pass the Sprite struct over to Lua so that it can call
loadSprite?
I can't have all of my sprites hardcoded on C because, well, there are many.
Thanks in advance, everyone!