updated to latest mobile-common (0cf55b7da58e), removed libtiff, libpng, libmng, devil, jasper, jpeg-8d, added libturbo-jpeg

This commit is contained in:
fysx
2014-08-27 23:19:11 +02:00
parent aba2f47b31
commit abb819335b
1910 changed files with 78167 additions and 922995 deletions
@@ -39,6 +39,16 @@ namespace box2d
class Body;
class World;
/**
* This struct is stored in a void pointer in the Box2D Joint class. For now, all
* we need is a Lua reference to arbitrary data, but we might need more later.
**/
struct jointudata
{
// Reference to arbitrary data.
Reference *ref;
};
/**
* A Joint acts as positioning constraints on Bodies.
* A Joint can be used to prevent Bodies from going to
@@ -95,6 +105,17 @@ public:
bool getCollideConnected() const;
/**
* This function stores an in-C reference to arbitrary Lua data in the Box2D
* Joint object.
**/
int setUserData(lua_State *L);
/**
* Gets the data set with setUserData. If no data is set, nil is returned.
**/
int getUserData(lua_State *L);
/**
* Joints require pointers to a Box2D joint objects at
* different polymorphic levels, which is why these function
@@ -117,6 +138,8 @@ protected:
World *world;
jointudata *udata;
private:
// A Joint must be destroyed *before* the bodies it acts upon,