lua/wrappers/gfx/lua_asset.cpp
/**
	 * Returns the width of the asset in pixels. This takes into account the subwindow size and the number
	 * of frames.
	 *
	 * @returns number The width of the asset graphic.
	 */
Returns the width of the asset in pixels. This takes into account the subwindow size and the number
of frames.

@returns number The width of the asset graphic.
Returns the width of the asset in pixels . This takes into account the subwindow size and the number of frames . @returns number The width of the asset graphic .
int Asset_width(lua_State *lua)
	{
		Asset *asset = castUData<Asset>(lua, 1);
		if (asset)
		{
			lua_pushnumber(lua, asset->getWidth());
			return 1;
		}
		return LuaState::expectedContext(lua, "width", "am.asset");
	}
int Asset_width ( lua_State * lua ) { Asset * asset = castUData < Asset > ( lua , 1 ) ; if ( asset ) { lua_pushnumber ( lua , asset -> getWidth ( ) ) ; return 1 ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Returns the width of the asset in pixels.
Returns the width of the asset in pixels .