Home | History | Annotate | Download | only in asset
      1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
      2 <html>
      3 
      4 <head>
      5 <title></title>
      6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      7 </head>
      8 <body>
      9 
     10 <code>com.jme3.asset</code> contains the {@link com.jme3.asset.AssetManager}, 
     11 a utility class that is used to load assets such as textures, models, and
     12 sound effects in a jME3 application. <br>
     13 
     14 <p>
     15     
     16 <h3>AssetLoaders</h3>
     17 {@link com.jme3.asset.AssetLoader asset loaders} are registered to load 
     18 assets of a particular format. For example, an <code>AssetLoader</code> that
     19 loads TGA images should read a stream in .tga format and return an 
     20 {@link com.jme3.texture.Image} object as its output. 
     21 <code>AssetLoader</code>s are initialized once a file of that format
     22 is loaded, there's only one AssetLoader per thread so 
     23 AssetLoader's load() method does not have to be thread safe.
     24 
     25 <h3>AssetLocators</h3>
     26 {@link com.jme3.asset.AssetLocators asset locators} are used to resolve 
     27 an asset name (a string) into an {@link java.io.InputStream} which is 
     28 contained in an {@link com.jme3.asset.AssetInfo} object. 
     29 There are <code>AssetLocators</code> for loading files from the application's 
     30 classpath, the local hard drive, a ZIP file, an HTTP server, and more. The user
     31 can implement their own AssetLocators and register them with the <code>AssetManager</code>
     32 to load their resources from their own location.
     33 
     34 
     35 </body>
     36 </html>
     37 
     38