lua/wrappers/gfx/lua_asset.cpp
/**
	 * Sets the frame rate of the asset.
	 * The frame rate is defined as how many frames per second.
	 * See subwindow_animation for types of animation.
	 *
	 * @param number frame_rate The frame rate.
	 * @returns am.asset This
	 */
Sets the frame rate of the asset.
The frame rate is defined as how many frames per second.
See subwindow_animation for types of animation.

@param number frame_rate The frame rate.
Sets the frame rate of the asset . The frame rate is defined as how many frames per second . See subwindow_animation for types of animation . @param number frame_rate The frame rate .
int Asset_frame_rate(lua_State *lua)
	{
		Asset *asset = castUData<Asset>(lua, 1);
		if (asset)
		{
			if (lua_gettop(lua) == 1)
			{
				lua_pushnumber(lua, asset->getFrameRate());
				return 1;
			}
			else if (lua_isnum(lua, 2))
			{
				asset->setFrameRate(lua_tofloat(lua, 2));
				lua_first(lua);
			}
			return LuaState::expectedArgs(lua, "frame_rate", "number frame_rate");
		}
		return LuaState::expectedContext(lua, "frame_rate", "am.asset");
	}
int Asset_frame_rate ( lua_State * lua ) { Asset * asset = castUData < Asset > ( lua , 1 ) ; if ( asset ) { if ( lua_gettop ( lua ) == 1 ) { lua_pushnumber ( lua , asset -> getFrameRate ( ) ) ; return 1 ; } else if ( lua_isnum ( lua , 2 ) ) { asset -> setFrameRate ( lua_tofloat ( lua , 2 ) ) ; lua_first ( lua ) ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Sets the frame rate of the asset.
Sets the frame rate of the asset .