lua/wrappers/gfx/lua_asset.cpp
/**
	 * Returns the number of textures associated with this asset.
	 *
	 * @returns integer The number of textures.
	 */
Returns the number of textures associated with this asset.
@returns integer The number of textures.
Returns the number of textures associated with this asset . @returns integer The number of textures .
int Asset_total_textures(lua_State *lua)
	{
		Asset *asset = castUData<Asset>(lua, 1);
		if (asset)
		{
			lua_pushinteger(lua, asset->getTotalTextures());
			return 1;
		}
		return LuaState::expectedContext(lua, "total_textures", "am.asset");
	}
int Asset_total_textures ( lua_State * lua ) { Asset * asset = castUData < Asset > ( lua , 1 ) ; if ( asset ) { lua_pushinteger ( lua , asset -> getTotalTextures ( ) ) ; return 1 ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Returns the number of textures associated with this asset.
Returns the number of textures associated with this asset .