lua/wrappers/gfx/lua_sprite.cpp
/**
	 * @static
	 * Creates a new sprite using the given asset name.
	 *
	 * @param string asset_name Name of the asset for this sprite to use.
	 */
@static
Creates a new sprite using the given asset name.

@param string asset_name Name of the asset for this sprite to use.
@static Creates a new sprite using the given asset name . @param string asset_name Name of the asset for this sprite to use .
int Sprite_ctor(lua_State *lua)
	{
		if (lua_gettop(lua) == 1)
		{
			if (lua_isstr(lua, 1))
			{
				Sprite *sprite = new Sprite(lua_tostring(lua, 1));
				wrapRefObject<Sprite>(lua, sprite);
				return 1;
			}
			return LuaState::expectedArgs(lua, "@new", "string asset_name");
		}
		Sprite *sprite = new Sprite();
		wrapRefObject<Sprite>(lua, sprite);
		return 1;
	}
int Sprite_ctor ( lua_State * lua ) { if ( lua_gettop ( lua ) == 1 ) { if ( lua_isstr ( lua , 1 ) ) { Sprite * sprite = new Sprite ( lua_tostring ( lua , 1 ) ) ; wrapRefObject < Sprite > ( lua , sprite ) ; return 1 ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } Sprite * sprite = new Sprite ( ) ; wrapRefObject < Sprite > ( lua , sprite ) ; return 1 ; }
@static
 Creates a new sprite using the given asset name.
@static Creates a new sprite using the given asset name .