lua/wrappers/gfx/lua_asset.cpp
/**
	 * @static
	 * Creates a new asset using the given asset name.
	 *
	 * @param string asset_name Name of the asset.
	 */
@static
Creates a new asset using the given asset name.

@param string asset_name Name of the asset.
@static Creates a new asset using the given asset name . @param string asset_name Name of the asset .
int Asset_ctor(lua_State *lua)
	{
		if (lua_gettop(lua) == 1)
		{
			if (lua_isstr(lua, 1))
			{
				const char *name = lua_tostring(lua, 1);
				Asset *asset = am::gfx::GfxEngine::getEngine()->findAsset(name);
				if (!asset)
				{
					asset = new Asset(name);
				}
				wrapRefObject<Asset>(lua, asset);
				return 1;
			}
		}
		return LuaState::expectedArgs(lua, "@new", "string asset_name");
	}
int Asset_ctor ( lua_State * lua ) { if ( lua_gettop ( lua ) == 1 ) { if ( lua_isstr ( lua , 1 ) ) { const char * name = lua_tostring ( lua , 1 ) ; Asset * asset = am :: gfx :: GfxEngine :: getEngine ( ) -> findAsset ( name ) ; if ( ! asset ) { asset = new Asset ( name ) ; } wrapRefObject < Asset > ( lua , asset ) ; return 1 ; } } return LuaState :: expectedArgs ( lua , " " , " " ) ; }
@static
 Creates a new asset using the given asset name.
@static Creates a new asset using the given asset name .
//Asset *asset = new Asset(lua_tostring(lua, 1));