blip  0.1
AssetManager Class Reference

An asset manager, which provides access to the application's raw asset files. More...

#include <AssetManager.hpp>

Public Member Functions

 ~AssetManager ()
 Destructor. More...
 
AssetDirectoryopenDir (const ccxx::String &path)
 Open the asset directory with the given file path. More...
 
Assetopen (const ccxx::String &path, AssetMode mode)
 Open the asset file with the given path. More...
 

Detailed Description

An asset manager, which provides access to the application's raw asset files.

Assets are bundled in an APK as raw data files; it is up to the application to read this data and interpret it appropriately.

Author
Mark Lindner

Constructor & Destructor Documentation

◆ ~AssetManager()

Destructor.

Member Function Documentation

◆ open()

Asset * open ( const ccxx::String &  path,
AssetMode  mode 
)

Open the asset file with the given path.

Parameters
pathThe path of the file within the APK.
modeThe mode in which the asset data will be accessed, which helps the system optimize the retrieval of the data.
Returns
An Asset object which can be used to read the asset data. This object must eventually be deleted by the caller.
Exceptions
IOExceptionIf an I/O error occurs.

◆ openDir()

AssetDirectory * openDir ( const ccxx::String &  path)

Open the asset directory with the given file path.

Parameters
pathThe path of the directory within the APK.
Returns
An AssetDirectory object which can be used to enumerate through the assets in that directory. This object must eventually be deleted by the caller.
Exceptions
IOExceptionIf an I/O error occurs.

The documentation for this class was generated from the following files: