add setTexture method on SceneAsset

This commit is contained in:
Nick Fisher
2022-08-15 19:00:47 +10:00
parent 3651e86321
commit 2cd6cbe8ec
3 changed files with 79 additions and 21 deletions

View File

@@ -23,12 +23,17 @@ namespace polyvox {
class SceneAsset {
friend class SceneAssetLoader;
public:
SceneAsset(FilamentAsset* asset, Engine* engine, NameComponentManager* ncm);
SceneAsset(FilamentAsset* asset, Engine* engine, NameComponentManager* ncm, LoadResource loadResource, FreeResource freeResource);
~SceneAsset();
unique_ptr<vector<string>> getTargetNames(const char* meshName);
unique_ptr<vector<string>> getAnimationNames();
///
///
///
void setTexture(const char* resourcePath, int renderableIndex);
///
/// Update the bone/morph target animations to reflect the current frame (if applicable).
///
@@ -79,5 +84,8 @@ namespace polyvox {
unique_ptr<MorphAnimationStatus> _morphAnimationBuffer;
vector<EmbeddedAnimationStatus> _embeddedAnimationStatus;
LoadResource _loadResource;
FreeResource _freeResource;
};
}