21 #ifndef PLATFORM_ASSET_MANAGER_HPP 22 #define PLATFORM_ASSET_MANAGER_HPP 24 #include "framework/common.hpp" 50 if (error != RESULT_SUCCESS)
53 size_t numElements = size /
sizeof(T);
56 pOutput->insert(end(*pOutput), reinterpret_cast<T *>(pData), reinterpret_cast<T *>(pData) + numElements);
58 return RESULT_SUCCESS;
66 virtual Result
readBinaryFile(
const char *pPath,
void **ppData,
size_t *pSize);
Result readBinaryFile(std::vector< T > *pOutput, const char *pPath)
Reads a binary file into typed container.
The asset manager reads data from a platform specific location. This class is used internally to load...