Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 356 | chris | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| 2 | <!--NewPage--> |
||
| 3 | <HTML> |
||
| 4 | <HEAD> |
||
| 5 | <!-- Generated by javadoc (build 1.6.0_26) on Sun Jan 27 20:37:06 CET 2013 --> |
||
| 6 | <TITLE> |
||
| 7 | AssetManager (libgdx API) |
||
| 8 | </TITLE> |
||
| 9 | |||
| 10 | <META NAME="date" CONTENT="2013-01-27"> |
||
| 11 | |||
| 12 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
||
| 13 | |||
| 14 | <SCRIPT type="text/javascript"> |
||
| 15 | function windowTitle() |
||
| 16 | { |
||
| 17 | if (location.href.indexOf('is-external=true') == -1) { |
||
| 18 | parent.document.title="AssetManager (libgdx API)"; |
||
| 19 | } |
||
| 20 | } |
||
| 21 | </SCRIPT> |
||
| 22 | <NOSCRIPT> |
||
| 23 | </NOSCRIPT> |
||
| 24 | |||
| 25 | </HEAD> |
||
| 26 | |||
| 27 | <BODY BGCOLOR="white" onload="windowTitle();"> |
||
| 28 | <HR> |
||
| 29 | |||
| 30 | |||
| 31 | <!-- ========= START OF TOP NAVBAR ======= --> |
||
| 32 | <A NAME="navbar_top"><!-- --></A> |
||
| 33 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
||
| 34 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
||
| 35 | <TR> |
||
| 36 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
||
| 37 | <A NAME="navbar_top_firstrow"><!-- --></A> |
||
| 38 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
||
| 39 | <TR ALIGN="center" VALIGN="top"> |
||
| 40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
||
| 41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
||
| 42 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
||
| 43 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AssetManager.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
||
| 44 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
||
| 45 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
||
| 46 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
||
| 47 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
||
| 48 | </TR> |
||
| 49 | </TABLE> |
||
| 50 | </TD> |
||
| 51 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
||
| 52 | |||
| 53 | libgdx API |
||
| 54 | <style> |
||
| 55 | body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt } |
||
| 56 | pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif } |
||
| 57 | h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%; font-weight:bold } |
||
| 58 | .TableHeadingColor { background:#EEEEFF; } |
||
| 59 | a { text-decoration:none } |
||
| 60 | a:hover { text-decoration:underline } |
||
| 61 | a:link, a:visited { color:blue } |
||
| 62 | table { border:0px } |
||
| 63 | .TableRowColor td:first-child { border-left:1px solid black } |
||
| 64 | .TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black } |
||
| 65 | hr { border:0px; border-bottom:1px solid #333366; } |
||
| 66 | </style> |
||
| 67 | </EM> |
||
| 68 | </TD> |
||
| 69 | </TR> |
||
| 70 | |||
| 71 | <TR> |
||
| 72 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
| 73 | <A HREF="../../../../com/badlogic/gdx/assets/AssetLoaderParameters.LoadedCallback.html" title="interface in com.badlogic.gdx.assets"><B>PREV CLASS</B></A> |
||
| 74 | <A HREF="../../../../com/badlogic/gdx/assets/RefCountedContainer.html" title="class in com.badlogic.gdx.assets"><B>NEXT CLASS</B></A></FONT></TD> |
||
| 75 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
| 76 | <A HREF="../../../../index.html?com/badlogic/gdx/assets/AssetManager.html" target="_top"><B>FRAMES</B></A> |
||
| 77 | <A HREF="AssetManager.html" target="_top"><B>NO FRAMES</B></A> |
||
| 78 | <SCRIPT type="text/javascript"> |
||
| 79 | <!-- |
||
| 80 | if(window==top) { |
||
| 81 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
||
| 82 | } |
||
| 83 | //--> |
||
| 84 | </SCRIPT> |
||
| 85 | <NOSCRIPT> |
||
| 86 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
||
| 87 | </NOSCRIPT> |
||
| 88 | |||
| 89 | |||
| 90 | </FONT></TD> |
||
| 91 | </TR> |
||
| 92 | <TR> |
||
| 93 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
| 94 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
||
| 95 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
| 96 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
||
| 97 | </TR> |
||
| 98 | </TABLE> |
||
| 99 | <A NAME="skip-navbar_top"></A> |
||
| 100 | <!-- ========= END OF TOP NAVBAR ========= --> |
||
| 101 | |||
| 102 | <HR> |
||
| 103 | <!-- ======== START OF CLASS DATA ======== --> |
||
| 104 | <H2> |
||
| 105 | <FONT SIZE="-1"> |
||
| 106 | com.badlogic.gdx.assets</FONT> |
||
| 107 | <BR> |
||
| 108 | Class AssetManager</H2> |
||
| 109 | <PRE> |
||
| 110 | java.lang.Object |
||
| 111 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.assets.AssetManager</B> |
||
| 112 | </PRE> |
||
| 113 | <DL> |
||
| 114 | <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/badlogic/gdx/utils/Disposable.html" title="interface in com.badlogic.gdx.utils">Disposable</A></DD> |
||
| 115 | </DL> |
||
| 116 | <HR> |
||
| 117 | <DL> |
||
| 118 | <DT><PRE>public class <B>AssetManager</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../com/badlogic/gdx/utils/Disposable.html" title="interface in com.badlogic.gdx.utils">Disposable</A></DL> |
||
| 119 | </PRE> |
||
| 120 | |||
| 121 | <P> |
||
| 122 | Loads and stores assets like textures, bitmapfonts, tile maps, sounds, music and so on. |
||
| 123 | <P> |
||
| 124 | |||
| 125 | <P> |
||
| 126 | <DL> |
||
| 127 | <DT><B>Author:</B></DT> |
||
| 128 | <DD>mzechner</DD> |
||
| 129 | </DL> |
||
| 130 | <HR> |
||
| 131 | |||
| 132 | <P> |
||
| 133 | |||
| 134 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
||
| 135 | |||
| 136 | <A NAME="constructor_summary"><!-- --></A> |
||
| 137 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 138 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 139 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
||
| 140 | <B>Constructor Summary</B></FONT></TH> |
||
| 141 | </TR> |
||
| 142 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 143 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html#AssetManager()">AssetManager</A></B>()</CODE> |
||
| 144 | |||
| 145 | <BR> |
||
| 146 | Creates a new AssetManager with all default loaders.</TD> |
||
| 147 | </TR> |
||
| 148 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 149 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html#AssetManager(com.badlogic.gdx.assets.loaders.FileHandleResolver)">AssetManager</A></B>(<A HREF="../../../../com/badlogic/gdx/assets/loaders/FileHandleResolver.html" title="interface in com.badlogic.gdx.assets.loaders">FileHandleResolver</A> resolver)</CODE> |
||
| 150 | |||
| 151 | <BR> |
||
| 152 | Creates a new AssetManager with all default loaders.</TD> |
||
| 153 | </TR> |
||
| 154 | </TABLE> |
||
| 155 | |
||
| 156 | <!-- ========== METHOD SUMMARY =========== --> |
||
| 157 | |||
| 158 | <A NAME="method_summary"><!-- --></A> |
||
| 159 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 160 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 161 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
||
| 162 | <B>Method Summary</B></FONT></TH> |
||
| 163 | </TR> |
||
| 164 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 165 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 166 | <CODE> void</CODE></FONT></TD> |
||
| 167 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html#clear()">clear</A></B>()</CODE> |
||
| 168 | |||
| 169 | <BR> |
||
| 170 | Clears and disposes all assets and the preloading queue.</TD> |
||
| 171 | </TR> |
||
| 172 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 173 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 174 | <CODE> |
||
| 175 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> |
||
| 176 | <TR ALIGN="right" VALIGN=""> |
||
| 177 | <TD NOWRAP><FONT SIZE="-1"> |
||
| 178 | <CODE><T> boolean</CODE></FONT></TD> |
||
| 179 | </TR> |
||
| 180 | </TABLE> |
||
| 181 | </CODE></FONT></TD> |
||
| 182 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html#containsAsset(T)">containsAsset</A></B>(T asset)</CODE> |
||
| 183 | |||
| 184 | <BR> |
||
| 185 | </TD> |
||
| 186 | </TR> |
||
| 187 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 188 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 189 | <CODE> void</CODE></FONT></TD> |
||
| 190 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html#dispose()">dispose</A></B>()</CODE> |
||
| 191 | |||
| 192 | <BR> |
||
| 193 | Disposes all assets in the manager and stops all asynchronous loading.</TD> |
||
| 194 | </TR> |
||
| 195 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 196 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 197 | <CODE> void</CODE></FONT></TD> |
||
| 198 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html#finishLoading()">finishLoading</A></B>()</CODE> |
||
| 199 | |||
| 200 | <BR> |
||
| 201 | blocks until all assets are loaded.</TD> |
||
| 202 | </TR> |
||
| 203 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 204 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 205 | <CODE> |
||
| 206 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> |
||
| 207 | <TR ALIGN="right" VALIGN=""> |
||
| 208 | <TD NOWRAP><FONT SIZE="-1"> |
||
| 209 | <CODE><T> T</CODE></FONT></TD> |
||
| 210 | </TR> |
||
| 211 | </TABLE> |
||
| 212 | </CODE></FONT></TD> |
||
| 213 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html#get(java.lang.String)">get</A></B>(java.lang.String fileName)</CODE> |
||
| 214 | |||
| 215 | <BR> |
||
| 216 | </TD> |
||
| 217 | </TR> |
||
| 218 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 219 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 220 | <CODE> |
||
| 221 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> |
||
| 222 | <TR ALIGN="right" VALIGN=""> |
||
| 223 | <TD NOWRAP><FONT SIZE="-1"> |
||
| 224 | <CODE><T> T</CODE></FONT></TD> |
||
| 225 | </TR> |
||
| 226 | </TABLE> |
||
| 227 | </CODE></FONT></TD> |
||
| 228 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html#get(java.lang.String, java.lang.Class)">get</A></B>(java.lang.String fileName, |
||
| 229 | java.lang.Class<T> type)</CODE> |
||
| 230 | |||
| 231 | <BR> |
||
| 232 | </TD> |
||
| 233 | </TR> |
||
| 234 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 235 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 236 | <CODE> |
||
| 237 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> |
||
| 238 | <TR ALIGN="right" VALIGN=""> |
||
| 239 | <TD NOWRAP><FONT SIZE="-1"> |
||
| 240 | <CODE><T> java.lang.String</CODE></FONT></TD> |
||
| 241 | </TR> |
||
| 242 | </TABLE> |
||
| 243 | </CODE></FONT></TD> |
||
| 244 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html#getAssetFileName(T)">getAssetFileName</A></B>(T asset)</CODE> |
||
| 245 | |||
| 246 | <BR> |
||
| 247 | </TD> |
||
| 248 | </TR> |
||
| 249 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 250 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 251 | <CODE> <A HREF="../../../../com/badlogic/gdx/utils/Array.html" title="class in com.badlogic.gdx.utils">Array</A><java.lang.String></CODE></FONT></TD> |
||
| 252 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html#getAssetNames()">getAssetNames</A></B>()</CODE> |
||
| 253 | |||
| 254 | <BR> |
||
| 255 | </TD> |
||
| 256 | </TR> |
||
| 257 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 258 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 259 | <CODE> java.lang.Class</CODE></FONT></TD> |
||
| 260 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html#getAssetType(java.lang.String)">getAssetType</A></B>(java.lang.String fileName)</CODE> |
||
| 261 | |||
| 262 | <BR> |
||
| 263 | </TD> |
||
| 264 | </TR> |
||
| 265 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 266 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 267 | <CODE> <A HREF="../../../../com/badlogic/gdx/utils/Array.html" title="class in com.badlogic.gdx.utils">Array</A><java.lang.String></CODE></FONT></TD> |
||
| 268 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html#getDependencies(java.lang.String)">getDependencies</A></B>(java.lang.String fileName)</CODE> |
||
| 269 | |||
| 270 | <BR> |
||
| 271 | </TD> |
||
| 272 | </TR> |
||
| 273 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 274 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 275 | <CODE> java.lang.String</CODE></FONT></TD> |
||
| 276 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html#getDiagnostics()">getDiagnostics</A></B>()</CODE> |
||
| 277 | |||
| 278 | <BR> |
||
| 279 | </TD> |
||
| 280 | </TR> |
||
| 281 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 282 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 283 | <CODE> int</CODE></FONT></TD> |
||
| 284 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html#getLoadedAssets()">getLoadedAssets</A></B>()</CODE> |
||
| 285 | |||
| 286 | <BR> |
||
| 287 | </TD> |
||
| 288 | </TR> |
||
| 289 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 290 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 291 | <CODE> <A HREF="../../../../com/badlogic/gdx/utils/Logger.html" title="class in com.badlogic.gdx.utils">Logger</A></CODE></FONT></TD> |
||
| 292 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html#getLogger()">getLogger</A></B>()</CODE> |
||
| 293 | |||
| 294 | <BR> |
||
| 295 | </TD> |
||
| 296 | </TR> |
||
| 297 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 298 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 299 | <CODE> float</CODE></FONT></TD> |
||
| 300 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html#getProgress()">getProgress</A></B>()</CODE> |
||
| 301 | |||
| 302 | <BR> |
||
| 303 | </TD> |
||
| 304 | </TR> |
||
| 305 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 306 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 307 | <CODE> int</CODE></FONT></TD> |
||
| 308 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html#getQueuedAssets()">getQueuedAssets</A></B>()</CODE> |
||
| 309 | |||
| 310 | <BR> |
||
| 311 | </TD> |
||
| 312 | </TR> |
||
| 313 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 314 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 315 | <CODE> int</CODE></FONT></TD> |
||
| 316 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html#getReferenceCount(java.lang.String)">getReferenceCount</A></B>(java.lang.String fileName)</CODE> |
||
| 317 | |||
| 318 | <BR> |
||
| 319 | Returns the reference count of an asset.</TD> |
||
| 320 | </TR> |
||
| 321 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 322 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 323 | <CODE> boolean</CODE></FONT></TD> |
||
| 324 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html#isLoaded(java.lang.String)">isLoaded</A></B>(java.lang.String fileName)</CODE> |
||
| 325 | |||
| 326 | <BR> |
||
| 327 | </TD> |
||
| 328 | </TR> |
||
| 329 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 330 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 331 | <CODE> boolean</CODE></FONT></TD> |
||
| 332 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html#isLoaded(java.lang.String, java.lang.Class)">isLoaded</A></B>(java.lang.String fileName, |
||
| 333 | java.lang.Class type)</CODE> |
||
| 334 | |||
| 335 | <BR> |
||
| 336 | </TD> |
||
| 337 | </TR> |
||
| 338 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 339 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 340 | <CODE> void</CODE></FONT></TD> |
||
| 341 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html#load(com.badlogic.gdx.assets.AssetDescriptor)">load</A></B>(<A HREF="../../../../com/badlogic/gdx/assets/AssetDescriptor.html" title="class in com.badlogic.gdx.assets">AssetDescriptor</A> desc)</CODE> |
||
| 342 | |||
| 343 | <BR> |
||
| 344 | Adds the given asset to the loading queue of the AssetManager.</TD> |
||
| 345 | </TR> |
||
| 346 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 347 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 348 | <CODE> |
||
| 349 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> |
||
| 350 | <TR ALIGN="right" VALIGN=""> |
||
| 351 | <TD NOWRAP><FONT SIZE="-1"> |
||
| 352 | <CODE><T> void</CODE></FONT></TD> |
||
| 353 | </TR> |
||
| 354 | </TABLE> |
||
| 355 | </CODE></FONT></TD> |
||
| 356 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html#load(java.lang.String, java.lang.Class)">load</A></B>(java.lang.String fileName, |
||
| 357 | java.lang.Class<T> type)</CODE> |
||
| 358 | |||
| 359 | <BR> |
||
| 360 | Adds the given asset to the loading queue of the AssetManager.</TD> |
||
| 361 | </TR> |
||
| 362 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 363 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 364 | <CODE> |
||
| 365 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> |
||
| 366 | <TR ALIGN="right" VALIGN=""> |
||
| 367 | <TD NOWRAP><FONT SIZE="-1"> |
||
| 368 | <CODE><T> void</CODE></FONT></TD> |
||
| 369 | </TR> |
||
| 370 | </TABLE> |
||
| 371 | </CODE></FONT></TD> |
||
| 372 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html#load(java.lang.String, java.lang.Class, com.badlogic.gdx.assets.AssetLoaderParameters)">load</A></B>(java.lang.String fileName, |
||
| 373 | java.lang.Class<T> type, |
||
| 374 | <A HREF="../../../../com/badlogic/gdx/assets/AssetLoaderParameters.html" title="class in com.badlogic.gdx.assets">AssetLoaderParameters</A><T> parameter)</CODE> |
||
| 375 | |||
| 376 | <BR> |
||
| 377 | Adds the given asset to the loading queue of the AssetManager.</TD> |
||
| 378 | </TR> |
||
| 379 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 380 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 381 | <CODE> void</CODE></FONT></TD> |
||
| 382 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html#setErrorListener(com.badlogic.gdx.assets.AssetErrorListener)">setErrorListener</A></B>(<A HREF="../../../../com/badlogic/gdx/assets/AssetErrorListener.html" title="interface in com.badlogic.gdx.assets">AssetErrorListener</A> listener)</CODE> |
||
| 383 | |||
| 384 | <BR> |
||
| 385 | Sets an <A HREF="../../../../com/badlogic/gdx/assets/AssetErrorListener.html" title="interface in com.badlogic.gdx.assets"><CODE>AssetErrorListener</CODE></A> to be invoked in case loading an asset failed.</TD> |
||
| 386 | </TR> |
||
| 387 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 388 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 389 | <CODE> |
||
| 390 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> |
||
| 391 | <TR ALIGN="right" VALIGN=""> |
||
| 392 | <TD NOWRAP><FONT SIZE="-1"> |
||
| 393 | <CODE><T,P extends <A HREF="../../../../com/badlogic/gdx/assets/AssetLoaderParameters.html" title="class in com.badlogic.gdx.assets">AssetLoaderParameters</A><T>> |
||
| 394 | <BR> |
||
| 395 | void</CODE></FONT></TD> |
||
| 396 | </TR> |
||
| 397 | </TABLE> |
||
| 398 | </CODE></FONT></TD> |
||
| 399 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html#setLoader(java.lang.Class, com.badlogic.gdx.assets.loaders.AssetLoader)">setLoader</A></B>(java.lang.Class<T> type, |
||
| 400 | <A HREF="../../../../com/badlogic/gdx/assets/loaders/AssetLoader.html" title="class in com.badlogic.gdx.assets.loaders">AssetLoader</A><T,P> loader)</CODE> |
||
| 401 | |||
| 402 | <BR> |
||
| 403 | Sets a new <A HREF="../../../../com/badlogic/gdx/assets/loaders/AssetLoader.html" title="class in com.badlogic.gdx.assets.loaders"><CODE>AssetLoader</CODE></A> for the given type.</TD> |
||
| 404 | </TR> |
||
| 405 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 406 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 407 | <CODE> void</CODE></FONT></TD> |
||
| 408 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html#setReferenceCount(java.lang.String, int)">setReferenceCount</A></B>(java.lang.String fileName, |
||
| 409 | int refCount)</CODE> |
||
| 410 | |||
| 411 | <BR> |
||
| 412 | Sets the reference count of an asset.</TD> |
||
| 413 | </TR> |
||
| 414 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 415 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 416 | <CODE> void</CODE></FONT></TD> |
||
| 417 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html#unload(java.lang.String)">unload</A></B>(java.lang.String fileName)</CODE> |
||
| 418 | |||
| 419 | <BR> |
||
| 420 | Removes the asset and all its dependencies if they are not used by other assets.</TD> |
||
| 421 | </TR> |
||
| 422 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 423 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 424 | <CODE> boolean</CODE></FONT></TD> |
||
| 425 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html#update()">update</A></B>()</CODE> |
||
| 426 | |||
| 427 | <BR> |
||
| 428 | Updates the AssetManager, keeping it loading any assets in the preload queue.</TD> |
||
| 429 | </TR> |
||
| 430 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 431 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 432 | <CODE> boolean</CODE></FONT></TD> |
||
| 433 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html#update(int)">update</A></B>(int millis)</CODE> |
||
| 434 | |||
| 435 | <BR> |
||
| 436 | Updates the AssetManager continuously for the specified number of milliseconds, yeilding the CPU to the loading thread |
||
| 437 | between updates.</TD> |
||
| 438 | </TR> |
||
| 439 | </TABLE> |
||
| 440 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
||
| 441 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 442 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
||
| 443 | <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> |
||
| 444 | </TR> |
||
| 445 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 446 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> |
||
| 447 | </TR> |
||
| 448 | </TABLE> |
||
| 449 | |
||
| 450 | <P> |
||
| 451 | |||
| 452 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
||
| 453 | |||
| 454 | <A NAME="constructor_detail"><!-- --></A> |
||
| 455 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 456 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 457 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
||
| 458 | <B>Constructor Detail</B></FONT></TH> |
||
| 459 | </TR> |
||
| 460 | </TABLE> |
||
| 461 | |||
| 462 | <A NAME="AssetManager()"><!-- --></A><H3> |
||
| 463 | AssetManager</H3> |
||
| 464 | <PRE> |
||
| 465 | public <B>AssetManager</B>()</PRE> |
||
| 466 | <DL> |
||
| 467 | <DD>Creates a new AssetManager with all default loaders. |
||
| 468 | <P> |
||
| 469 | </DL> |
||
| 470 | <HR> |
||
| 471 | |||
| 472 | <A NAME="AssetManager(com.badlogic.gdx.assets.loaders.FileHandleResolver)"><!-- --></A><H3> |
||
| 473 | AssetManager</H3> |
||
| 474 | <PRE> |
||
| 475 | public <B>AssetManager</B>(<A HREF="../../../../com/badlogic/gdx/assets/loaders/FileHandleResolver.html" title="interface in com.badlogic.gdx.assets.loaders">FileHandleResolver</A> resolver)</PRE> |
||
| 476 | <DL> |
||
| 477 | <DD>Creates a new AssetManager with all default loaders. |
||
| 478 | <P> |
||
| 479 | </DL> |
||
| 480 | |||
| 481 | <!-- ============ METHOD DETAIL ========== --> |
||
| 482 | |||
| 483 | <A NAME="method_detail"><!-- --></A> |
||
| 484 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 485 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 486 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
||
| 487 | <B>Method Detail</B></FONT></TH> |
||
| 488 | </TR> |
||
| 489 | </TABLE> |
||
| 490 | |||
| 491 | <A NAME="get(java.lang.String)"><!-- --></A><H3> |
||
| 492 | get</H3> |
||
| 493 | <PRE> |
||
| 494 | public <T> T <B>get</B>(java.lang.String fileName)</PRE> |
||
| 495 | <DL> |
||
| 496 | <DD><DL> |
||
| 497 | </DL> |
||
| 498 | </DD> |
||
| 499 | <DD><DL> |
||
| 500 | <DT><B>Parameters:</B><DD><CODE>fileName</CODE> - the asset file name |
||
| 501 | <DT><B>Returns:</B><DD>the asset</DL> |
||
| 502 | </DD> |
||
| 503 | </DL> |
||
| 504 | <HR> |
||
| 505 | |||
| 506 | <A NAME="get(java.lang.String, java.lang.Class)"><!-- --></A><H3> |
||
| 507 | get</H3> |
||
| 508 | <PRE> |
||
| 509 | public <T> T <B>get</B>(java.lang.String fileName, |
||
| 510 | java.lang.Class<T> type)</PRE> |
||
| 511 | <DL> |
||
| 512 | <DD><DL> |
||
| 513 | </DL> |
||
| 514 | </DD> |
||
| 515 | <DD><DL> |
||
| 516 | <DT><B>Parameters:</B><DD><CODE>fileName</CODE> - the asset file name<DD><CODE>type</CODE> - the asset type |
||
| 517 | <DT><B>Returns:</B><DD>the asset</DL> |
||
| 518 | </DD> |
||
| 519 | </DL> |
||
| 520 | <HR> |
||
| 521 | |||
| 522 | <A NAME="unload(java.lang.String)"><!-- --></A><H3> |
||
| 523 | unload</H3> |
||
| 524 | <PRE> |
||
| 525 | public void <B>unload</B>(java.lang.String fileName)</PRE> |
||
| 526 | <DL> |
||
| 527 | <DD>Removes the asset and all its dependencies if they are not used by other assets. |
||
| 528 | <P> |
||
| 529 | <DD><DL> |
||
| 530 | </DL> |
||
| 531 | </DD> |
||
| 532 | <DD><DL> |
||
| 533 | <DT><B>Parameters:</B><DD><CODE>fileName</CODE> - the file name</DL> |
||
| 534 | </DD> |
||
| 535 | </DL> |
||
| 536 | <HR> |
||
| 537 | |||
| 538 | <A NAME="containsAsset(java.lang.Object)"><!-- --></A><A NAME="containsAsset(T)"><!-- --></A><H3> |
||
| 539 | containsAsset</H3> |
||
| 540 | <PRE> |
||
| 541 | public <T> boolean <B>containsAsset</B>(T asset)</PRE> |
||
| 542 | <DL> |
||
| 543 | <DD><DL> |
||
| 544 | </DL> |
||
| 545 | </DD> |
||
| 546 | <DD><DL> |
||
| 547 | <DT><B>Parameters:</B><DD><CODE>asset</CODE> - the asset |
||
| 548 | <DT><B>Returns:</B><DD>whether the asset is contained in this manager</DL> |
||
| 549 | </DD> |
||
| 550 | </DL> |
||
| 551 | <HR> |
||
| 552 | |||
| 553 | <A NAME="getAssetFileName(java.lang.Object)"><!-- --></A><A NAME="getAssetFileName(T)"><!-- --></A><H3> |
||
| 554 | getAssetFileName</H3> |
||
| 555 | <PRE> |
||
| 556 | public <T> java.lang.String <B>getAssetFileName</B>(T asset)</PRE> |
||
| 557 | <DL> |
||
| 558 | <DD><DL> |
||
| 559 | </DL> |
||
| 560 | </DD> |
||
| 561 | <DD><DL> |
||
| 562 | <DT><B>Parameters:</B><DD><CODE>asset</CODE> - the asset |
||
| 563 | <DT><B>Returns:</B><DD>the filename of the asset or null</DL> |
||
| 564 | </DD> |
||
| 565 | </DL> |
||
| 566 | <HR> |
||
| 567 | |||
| 568 | <A NAME="isLoaded(java.lang.String)"><!-- --></A><H3> |
||
| 569 | isLoaded</H3> |
||
| 570 | <PRE> |
||
| 571 | public boolean <B>isLoaded</B>(java.lang.String fileName)</PRE> |
||
| 572 | <DL> |
||
| 573 | <DD><DL> |
||
| 574 | </DL> |
||
| 575 | </DD> |
||
| 576 | <DD><DL> |
||
| 577 | <DT><B>Parameters:</B><DD><CODE>fileName</CODE> - the file name of the asset |
||
| 578 | <DT><B>Returns:</B><DD>whether the asset is loaded</DL> |
||
| 579 | </DD> |
||
| 580 | </DL> |
||
| 581 | <HR> |
||
| 582 | |||
| 583 | <A NAME="isLoaded(java.lang.String, java.lang.Class)"><!-- --></A><H3> |
||
| 584 | isLoaded</H3> |
||
| 585 | <PRE> |
||
| 586 | public boolean <B>isLoaded</B>(java.lang.String fileName, |
||
| 587 | java.lang.Class type)</PRE> |
||
| 588 | <DL> |
||
| 589 | <DD><DL> |
||
| 590 | </DL> |
||
| 591 | </DD> |
||
| 592 | <DD><DL> |
||
| 593 | <DT><B>Parameters:</B><DD><CODE>fileName</CODE> - the file name of the asset |
||
| 594 | <DT><B>Returns:</B><DD>whether the asset is loaded</DL> |
||
| 595 | </DD> |
||
| 596 | </DL> |
||
| 597 | <HR> |
||
| 598 | |||
| 599 | <A NAME="load(java.lang.String, java.lang.Class)"><!-- --></A><H3> |
||
| 600 | load</H3> |
||
| 601 | <PRE> |
||
| 602 | public <T> void <B>load</B>(java.lang.String fileName, |
||
| 603 | java.lang.Class<T> type)</PRE> |
||
| 604 | <DL> |
||
| 605 | <DD>Adds the given asset to the loading queue of the AssetManager. |
||
| 606 | <P> |
||
| 607 | <DD><DL> |
||
| 608 | </DL> |
||
| 609 | </DD> |
||
| 610 | <DD><DL> |
||
| 611 | <DT><B>Parameters:</B><DD><CODE>fileName</CODE> - the file name (interpretation depends on <A HREF="../../../../com/badlogic/gdx/assets/loaders/AssetLoader.html" title="class in com.badlogic.gdx.assets.loaders"><CODE>AssetLoader</CODE></A>)<DD><CODE>type</CODE> - the type of the asset.</DL> |
||
| 612 | </DD> |
||
| 613 | </DL> |
||
| 614 | <HR> |
||
| 615 | |||
| 616 | <A NAME="load(java.lang.String, java.lang.Class, com.badlogic.gdx.assets.AssetLoaderParameters)"><!-- --></A><H3> |
||
| 617 | load</H3> |
||
| 618 | <PRE> |
||
| 619 | public <T> void <B>load</B>(java.lang.String fileName, |
||
| 620 | java.lang.Class<T> type, |
||
| 621 | <A HREF="../../../../com/badlogic/gdx/assets/AssetLoaderParameters.html" title="class in com.badlogic.gdx.assets">AssetLoaderParameters</A><T> parameter)</PRE> |
||
| 622 | <DL> |
||
| 623 | <DD>Adds the given asset to the loading queue of the AssetManager. |
||
| 624 | <P> |
||
| 625 | <DD><DL> |
||
| 626 | </DL> |
||
| 627 | </DD> |
||
| 628 | <DD><DL> |
||
| 629 | <DT><B>Parameters:</B><DD><CODE>fileName</CODE> - the file name (interpretation depends on <A HREF="../../../../com/badlogic/gdx/assets/loaders/AssetLoader.html" title="class in com.badlogic.gdx.assets.loaders"><CODE>AssetLoader</CODE></A>)<DD><CODE>type</CODE> - the type of the asset.<DD><CODE>parameter</CODE> - parameters for the AssetLoader.</DL> |
||
| 630 | </DD> |
||
| 631 | </DL> |
||
| 632 | <HR> |
||
| 633 | |||
| 634 | <A NAME="load(com.badlogic.gdx.assets.AssetDescriptor)"><!-- --></A><H3> |
||
| 635 | load</H3> |
||
| 636 | <PRE> |
||
| 637 | public void <B>load</B>(<A HREF="../../../../com/badlogic/gdx/assets/AssetDescriptor.html" title="class in com.badlogic.gdx.assets">AssetDescriptor</A> desc)</PRE> |
||
| 638 | <DL> |
||
| 639 | <DD>Adds the given asset to the loading queue of the AssetManager. |
||
| 640 | <P> |
||
| 641 | <DD><DL> |
||
| 642 | </DL> |
||
| 643 | </DD> |
||
| 644 | <DD><DL> |
||
| 645 | <DT><B>Parameters:</B><DD><CODE>desc</CODE> - the <A HREF="../../../../com/badlogic/gdx/assets/AssetDescriptor.html" title="class in com.badlogic.gdx.assets"><CODE>AssetDescriptor</CODE></A></DL> |
||
| 646 | </DD> |
||
| 647 | </DL> |
||
| 648 | <HR> |
||
| 649 | |||
| 650 | <A NAME="update()"><!-- --></A><H3> |
||
| 651 | update</H3> |
||
| 652 | <PRE> |
||
| 653 | public boolean <B>update</B>()</PRE> |
||
| 654 | <DL> |
||
| 655 | <DD>Updates the AssetManager, keeping it loading any assets in the preload queue. |
||
| 656 | <P> |
||
| 657 | <DD><DL> |
||
| 658 | </DL> |
||
| 659 | </DD> |
||
| 660 | <DD><DL> |
||
| 661 | |||
| 662 | <DT><B>Returns:</B><DD>true if all loading is finished.</DL> |
||
| 663 | </DD> |
||
| 664 | </DL> |
||
| 665 | <HR> |
||
| 666 | |||
| 667 | <A NAME="update(int)"><!-- --></A><H3> |
||
| 668 | update</H3> |
||
| 669 | <PRE> |
||
| 670 | public boolean <B>update</B>(int millis)</PRE> |
||
| 671 | <DL> |
||
| 672 | <DD>Updates the AssetManager continuously for the specified number of milliseconds, yeilding the CPU to the loading thread |
||
| 673 | between updates. This may block for less time if all loading tasks are complete. This may block for more time if the portion |
||
| 674 | of a single task that happens in the GL thread takes a long time. |
||
| 675 | <P> |
||
| 676 | <DD><DL> |
||
| 677 | </DL> |
||
| 678 | </DD> |
||
| 679 | <DD><DL> |
||
| 680 | |||
| 681 | <DT><B>Returns:</B><DD>true if all loading is finished.</DL> |
||
| 682 | </DD> |
||
| 683 | </DL> |
||
| 684 | <HR> |
||
| 685 | |||
| 686 | <A NAME="finishLoading()"><!-- --></A><H3> |
||
| 687 | finishLoading</H3> |
||
| 688 | <PRE> |
||
| 689 | public void <B>finishLoading</B>()</PRE> |
||
| 690 | <DL> |
||
| 691 | <DD>blocks until all assets are loaded. |
||
| 692 | <P> |
||
| 693 | <DD><DL> |
||
| 694 | </DL> |
||
| 695 | </DD> |
||
| 696 | <DD><DL> |
||
| 697 | </DL> |
||
| 698 | </DD> |
||
| 699 | </DL> |
||
| 700 | <HR> |
||
| 701 | |||
| 702 | <A NAME="setLoader(java.lang.Class, com.badlogic.gdx.assets.loaders.AssetLoader)"><!-- --></A><H3> |
||
| 703 | setLoader</H3> |
||
| 704 | <PRE> |
||
| 705 | public <T,P extends <A HREF="../../../../com/badlogic/gdx/assets/AssetLoaderParameters.html" title="class in com.badlogic.gdx.assets">AssetLoaderParameters</A><T>> void <B>setLoader</B>(java.lang.Class<T> type, |
||
| 706 | <A HREF="../../../../com/badlogic/gdx/assets/loaders/AssetLoader.html" title="class in com.badlogic.gdx.assets.loaders">AssetLoader</A><T,P> loader)</PRE> |
||
| 707 | <DL> |
||
| 708 | <DD>Sets a new <A HREF="../../../../com/badlogic/gdx/assets/loaders/AssetLoader.html" title="class in com.badlogic.gdx.assets.loaders"><CODE>AssetLoader</CODE></A> for the given type. |
||
| 709 | <P> |
||
| 710 | <DD><DL> |
||
| 711 | </DL> |
||
| 712 | </DD> |
||
| 713 | <DD><DL> |
||
| 714 | <DT><B>Parameters:</B><DD><CODE>type</CODE> - the type of the asset<DD><CODE>loader</CODE> - the loader</DL> |
||
| 715 | </DD> |
||
| 716 | </DL> |
||
| 717 | <HR> |
||
| 718 | |||
| 719 | <A NAME="getLoadedAssets()"><!-- --></A><H3> |
||
| 720 | getLoadedAssets</H3> |
||
| 721 | <PRE> |
||
| 722 | public int <B>getLoadedAssets</B>()</PRE> |
||
| 723 | <DL> |
||
| 724 | <DD><DL> |
||
| 725 | </DL> |
||
| 726 | </DD> |
||
| 727 | <DD><DL> |
||
| 728 | |||
| 729 | <DT><B>Returns:</B><DD>the number of loaded assets</DL> |
||
| 730 | </DD> |
||
| 731 | </DL> |
||
| 732 | <HR> |
||
| 733 | |||
| 734 | <A NAME="getQueuedAssets()"><!-- --></A><H3> |
||
| 735 | getQueuedAssets</H3> |
||
| 736 | <PRE> |
||
| 737 | public int <B>getQueuedAssets</B>()</PRE> |
||
| 738 | <DL> |
||
| 739 | <DD><DL> |
||
| 740 | </DL> |
||
| 741 | </DD> |
||
| 742 | <DD><DL> |
||
| 743 | |||
| 744 | <DT><B>Returns:</B><DD>the number of currently queued assets</DL> |
||
| 745 | </DD> |
||
| 746 | </DL> |
||
| 747 | <HR> |
||
| 748 | |||
| 749 | <A NAME="getProgress()"><!-- --></A><H3> |
||
| 750 | getProgress</H3> |
||
| 751 | <PRE> |
||
| 752 | public float <B>getProgress</B>()</PRE> |
||
| 753 | <DL> |
||
| 754 | <DD><DL> |
||
| 755 | </DL> |
||
| 756 | </DD> |
||
| 757 | <DD><DL> |
||
| 758 | |||
| 759 | <DT><B>Returns:</B><DD>the progress in percent of completion.</DL> |
||
| 760 | </DD> |
||
| 761 | </DL> |
||
| 762 | <HR> |
||
| 763 | |||
| 764 | <A NAME="setErrorListener(com.badlogic.gdx.assets.AssetErrorListener)"><!-- --></A><H3> |
||
| 765 | setErrorListener</H3> |
||
| 766 | <PRE> |
||
| 767 | public void <B>setErrorListener</B>(<A HREF="../../../../com/badlogic/gdx/assets/AssetErrorListener.html" title="interface in com.badlogic.gdx.assets">AssetErrorListener</A> listener)</PRE> |
||
| 768 | <DL> |
||
| 769 | <DD>Sets an <A HREF="../../../../com/badlogic/gdx/assets/AssetErrorListener.html" title="interface in com.badlogic.gdx.assets"><CODE>AssetErrorListener</CODE></A> to be invoked in case loading an asset failed. |
||
| 770 | <P> |
||
| 771 | <DD><DL> |
||
| 772 | </DL> |
||
| 773 | </DD> |
||
| 774 | <DD><DL> |
||
| 775 | <DT><B>Parameters:</B><DD><CODE>listener</CODE> - the listener or null</DL> |
||
| 776 | </DD> |
||
| 777 | </DL> |
||
| 778 | <HR> |
||
| 779 | |||
| 780 | <A NAME="dispose()"><!-- --></A><H3> |
||
| 781 | dispose</H3> |
||
| 782 | <PRE> |
||
| 783 | public void <B>dispose</B>()</PRE> |
||
| 784 | <DL> |
||
| 785 | <DD>Disposes all assets in the manager and stops all asynchronous loading. |
||
| 786 | <P> |
||
| 787 | <DD><DL> |
||
| 788 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/utils/Disposable.html#dispose()">dispose</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/utils/Disposable.html" title="interface in com.badlogic.gdx.utils">Disposable</A></CODE></DL> |
||
| 789 | </DD> |
||
| 790 | <DD><DL> |
||
| 791 | </DL> |
||
| 792 | </DD> |
||
| 793 | </DL> |
||
| 794 | <HR> |
||
| 795 | |||
| 796 | <A NAME="clear()"><!-- --></A><H3> |
||
| 797 | clear</H3> |
||
| 798 | <PRE> |
||
| 799 | public void <B>clear</B>()</PRE> |
||
| 800 | <DL> |
||
| 801 | <DD>Clears and disposes all assets and the preloading queue. |
||
| 802 | <P> |
||
| 803 | <DD><DL> |
||
| 804 | </DL> |
||
| 805 | </DD> |
||
| 806 | <DD><DL> |
||
| 807 | </DL> |
||
| 808 | </DD> |
||
| 809 | </DL> |
||
| 810 | <HR> |
||
| 811 | |||
| 812 | <A NAME="getLogger()"><!-- --></A><H3> |
||
| 813 | getLogger</H3> |
||
| 814 | <PRE> |
||
| 815 | public <A HREF="../../../../com/badlogic/gdx/utils/Logger.html" title="class in com.badlogic.gdx.utils">Logger</A> <B>getLogger</B>()</PRE> |
||
| 816 | <DL> |
||
| 817 | <DD><DL> |
||
| 818 | </DL> |
||
| 819 | </DD> |
||
| 820 | <DD><DL> |
||
| 821 | |||
| 822 | <DT><B>Returns:</B><DD>the <A HREF="../../../../com/badlogic/gdx/utils/Logger.html" title="class in com.badlogic.gdx.utils"><CODE>Logger</CODE></A> used by the <A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html" title="class in com.badlogic.gdx.assets"><CODE>AssetManager</CODE></A></DL> |
||
| 823 | </DD> |
||
| 824 | </DL> |
||
| 825 | <HR> |
||
| 826 | |||
| 827 | <A NAME="getReferenceCount(java.lang.String)"><!-- --></A><H3> |
||
| 828 | getReferenceCount</H3> |
||
| 829 | <PRE> |
||
| 830 | public int <B>getReferenceCount</B>(java.lang.String fileName)</PRE> |
||
| 831 | <DL> |
||
| 832 | <DD>Returns the reference count of an asset. |
||
| 833 | <P> |
||
| 834 | <DD><DL> |
||
| 835 | </DL> |
||
| 836 | </DD> |
||
| 837 | <DD><DL> |
||
| 838 | <DT><B>Parameters:</B><DD><CODE>fileName</CODE> - </DL> |
||
| 839 | </DD> |
||
| 840 | </DL> |
||
| 841 | <HR> |
||
| 842 | |||
| 843 | <A NAME="setReferenceCount(java.lang.String, int)"><!-- --></A><H3> |
||
| 844 | setReferenceCount</H3> |
||
| 845 | <PRE> |
||
| 846 | public void <B>setReferenceCount</B>(java.lang.String fileName, |
||
| 847 | int refCount)</PRE> |
||
| 848 | <DL> |
||
| 849 | <DD>Sets the reference count of an asset. |
||
| 850 | <P> |
||
| 851 | <DD><DL> |
||
| 852 | </DL> |
||
| 853 | </DD> |
||
| 854 | <DD><DL> |
||
| 855 | <DT><B>Parameters:</B><DD><CODE>fileName</CODE> - </DL> |
||
| 856 | </DD> |
||
| 857 | </DL> |
||
| 858 | <HR> |
||
| 859 | |||
| 860 | <A NAME="getDiagnostics()"><!-- --></A><H3> |
||
| 861 | getDiagnostics</H3> |
||
| 862 | <PRE> |
||
| 863 | public java.lang.String <B>getDiagnostics</B>()</PRE> |
||
| 864 | <DL> |
||
| 865 | <DD><DL> |
||
| 866 | </DL> |
||
| 867 | </DD> |
||
| 868 | <DD><DL> |
||
| 869 | |||
| 870 | <DT><B>Returns:</B><DD>a string containg ref count and dependency information for all assets.</DL> |
||
| 871 | </DD> |
||
| 872 | </DL> |
||
| 873 | <HR> |
||
| 874 | |||
| 875 | <A NAME="getAssetNames()"><!-- --></A><H3> |
||
| 876 | getAssetNames</H3> |
||
| 877 | <PRE> |
||
| 878 | public <A HREF="../../../../com/badlogic/gdx/utils/Array.html" title="class in com.badlogic.gdx.utils">Array</A><java.lang.String> <B>getAssetNames</B>()</PRE> |
||
| 879 | <DL> |
||
| 880 | <DD><DL> |
||
| 881 | </DL> |
||
| 882 | </DD> |
||
| 883 | <DD><DL> |
||
| 884 | |||
| 885 | <DT><B>Returns:</B><DD>the file names of all loaded assets.</DL> |
||
| 886 | </DD> |
||
| 887 | </DL> |
||
| 888 | <HR> |
||
| 889 | |||
| 890 | <A NAME="getDependencies(java.lang.String)"><!-- --></A><H3> |
||
| 891 | getDependencies</H3> |
||
| 892 | <PRE> |
||
| 893 | public <A HREF="../../../../com/badlogic/gdx/utils/Array.html" title="class in com.badlogic.gdx.utils">Array</A><java.lang.String> <B>getDependencies</B>(java.lang.String fileName)</PRE> |
||
| 894 | <DL> |
||
| 895 | <DD><DL> |
||
| 896 | </DL> |
||
| 897 | </DD> |
||
| 898 | <DD><DL> |
||
| 899 | |||
| 900 | <DT><B>Returns:</B><DD>the dependencies of an asset or null if the asset has no dependencies.</DL> |
||
| 901 | </DD> |
||
| 902 | </DL> |
||
| 903 | <HR> |
||
| 904 | |||
| 905 | <A NAME="getAssetType(java.lang.String)"><!-- --></A><H3> |
||
| 906 | getAssetType</H3> |
||
| 907 | <PRE> |
||
| 908 | public java.lang.Class <B>getAssetType</B>(java.lang.String fileName)</PRE> |
||
| 909 | <DL> |
||
| 910 | <DD><DL> |
||
| 911 | </DL> |
||
| 912 | </DD> |
||
| 913 | <DD><DL> |
||
| 914 | |||
| 915 | <DT><B>Returns:</B><DD>the type of a loaded asset.</DL> |
||
| 916 | </DD> |
||
| 917 | </DL> |
||
| 918 | <!-- ========= END OF CLASS DATA ========= --> |
||
| 919 | <HR> |
||
| 920 | |||
| 921 | |||
| 922 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
||
| 923 | <A NAME="navbar_bottom"><!-- --></A> |
||
| 924 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
||
| 925 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
||
| 926 | <TR> |
||
| 927 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
||
| 928 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
||
| 929 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
||
| 930 | <TR ALIGN="center" VALIGN="top"> |
||
| 931 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
||
| 932 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
||
| 933 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
||
| 934 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AssetManager.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
||
| 935 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
||
| 936 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
||
| 937 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
||
| 938 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
||
| 939 | </TR> |
||
| 940 | </TABLE> |
||
| 941 | </TD> |
||
| 942 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
||
| 943 | libgdx API</EM> |
||
| 944 | </TD> |
||
| 945 | </TR> |
||
| 946 | |||
| 947 | <TR> |
||
| 948 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
| 949 | <A HREF="../../../../com/badlogic/gdx/assets/AssetLoaderParameters.LoadedCallback.html" title="interface in com.badlogic.gdx.assets"><B>PREV CLASS</B></A> |
||
| 950 | <A HREF="../../../../com/badlogic/gdx/assets/RefCountedContainer.html" title="class in com.badlogic.gdx.assets"><B>NEXT CLASS</B></A></FONT></TD> |
||
| 951 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
| 952 | <A HREF="../../../../index.html?com/badlogic/gdx/assets/AssetManager.html" target="_top"><B>FRAMES</B></A> |
||
| 953 | <A HREF="AssetManager.html" target="_top"><B>NO FRAMES</B></A> |
||
| 954 | <SCRIPT type="text/javascript"> |
||
| 955 | <!-- |
||
| 956 | if(window==top) { |
||
| 957 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
||
| 958 | } |
||
| 959 | //--> |
||
| 960 | </SCRIPT> |
||
| 961 | <NOSCRIPT> |
||
| 962 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
||
| 963 | </NOSCRIPT> |
||
| 964 | |||
| 965 | |||
| 966 | </FONT></TD> |
||
| 967 | </TR> |
||
| 968 | <TR> |
||
| 969 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
| 970 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
||
| 971 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
| 972 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
||
| 973 | </TR> |
||
| 974 | </TABLE> |
||
| 975 | <A NAME="skip-navbar_bottom"></A> |
||
| 976 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
||
| 977 | |||
| 978 | <HR> |
||
| 979 | |||
| 980 | <div style="font-size:9pt"><i> |
||
| 981 | Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com) |
||
| 982 | </i></div> |
||
| 983 | |||
| 984 | </BODY> |
||
| 985 | </HTML> |