1. -- 
  2. -- Copyright (c) 2012 Kevin Wellwood 
  3. -- All rights reserved. 
  4. -- 
  5. -- This source code is distributed under the Modified BSD License. For terms and 
  6. -- conditions, see license.txt. 
  7. -- 
  8.  
  9. private package Tiles.Libraries.Loading is 
  10.  
  11.     -- Initializes the package. Call this before calling Load_From_Disk. 
  12.     procedure Initialize; 
  13.  
  14.     -- Finalizes the package. This should be called before Allegro is shutdown. 
  15.     -- No more assets can be loaded after finalization. 
  16.     procedure Finalize; 
  17.  
  18.     -- Loads a library by name from disk. The library returned will continue to 
  19.     -- load asynchronously so not all bitmaps will be available immediately upon 
  20.     -- return. However, all the tile and matrices information will be available. 
  21.     -- If an error occurs then null will be returned. 
  22.     function Load_From_Disk( name : String ) return A_Tile_Library; 
  23.     pragma Precondition( name'Length >  0 ); 
  24.  
  25. end Tiles.Libraries.Loading;