Vulkan SDK for Android 1.1.1 Mali Developer Center
MaliSDK::AndroidAssetManager Class Reference

An asset manager implementation for Android. Uses AAssetManager to load assets. More...

#include <android_assets.hpp>

Inheritance diagram for MaliSDK::AndroidAssetManager:
MaliSDK::AssetManager

Public Member Functions

virtual Result readBinaryFile (const char *pPath, void **ppData, size_t *pSize) override
 Reads a binary file as a raw blob. More...
 
void setAssetManager (AAssetManager *pAssetManager)
 Sets the asset manager to use. Called from platform. More...
 
- Public Member Functions inherited from MaliSDK::AssetManager
template<typename T >
Result readBinaryFile (std::vector< T > *pOutput, const char *pPath)
 Reads a binary file into typed container. More...
 

Detailed Description

An asset manager implementation for Android. Uses AAssetManager to load assets.

Definition at line 33 of file android_assets.hpp.

Member Function Documentation

◆ readBinaryFile()

Result MaliSDK::AndroidAssetManager::readBinaryFile ( const char *  pPath,
void **  ppData,
size_t *  pSize 
)
overridevirtual

Reads a binary file as a raw blob.

Parameters
pPathThe path of the asset.
[out]ppDataallocated output data. Must be freed with free().
[out]pSizeThe size of the allocated data.
Returns
Error code

Reimplemented from MaliSDK::AssetManager.

Definition at line 27 of file android_assets.cpp.

◆ setAssetManager()

void MaliSDK::AndroidAssetManager::setAssetManager ( AAssetManager *  pAssetManager)
inline

Sets the asset manager to use. Called from platform.

Parameters
pAssetManagerThe asset manager.

Definition at line 45 of file android_assets.hpp.


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