Helper.h#

Internal helper classes.

Includes#

  • PVRAssets/Model.h

  • PVRAssets/model/Mesh.h

  • PVRCore/IAssetProvider.h

Included By#

Namespaces#

Functions#

Source Code#

#pragma once

#include "PVRAssets/model/Mesh.h"
#include "PVRAssets/Model.h"
#include "PVRCore/IAssetProvider.h"

namespace pvr {
namespace assets {
namespace helper {
void VertexRead(const uint8_t* data, const DataType type, uint32_t count, float* out);

void VertexIndexRead(const uint8_t* data, const IndexType type, uint32_t* const out);

pvr::assets::ModelFileFormat getModelFormatFromFilename(const std::string& modelFile);

void getTextureNameWithExtension(std::string& textureName, bool astcSupported);

} // namespace helper
pvr::assets::ModelHandle loadModel(const IAssetProvider& app, const std::string& modelFile);

pvr::assets::ModelHandle loadModel(const IAssetProvider& app, const pvr::Stream& model);
} // namespace assets
} // namespace pvr