avdl_assetManager.h 872 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef AVDL_ASSETMANAGER_H
  2. #define AVDL_ASSETMANAGER_H
  3. #include "dd_meshColour.h"
  4. #define AVDL_ASSETMANAGER_MESH 1
  5. #define AVDL_ASSETMANAGER_MESHCOLOUR 2
  6. #define AVDL_ASSETMANAGER_MESHTEXTURE 3
  7. #define AVDL_ASSETMANAGER_TEXTURE 4
  8. struct dd_meshToLoad {
  9. struct dd_meshColour *mesh;
  10. int meshType;
  11. char filename[200];
  12. };
  13. extern struct dd_dynamic_array meshesToLoad;
  14. void avdl_assetManager_init();
  15. void avdl_assetManager_add(void *object, int meshType, const char *assetname);
  16. void avdl_assetManager_loadAssets();
  17. void avdl_assetManager_loadAssetsAsync();
  18. void avdl_assetManager_clean();
  19. void avdl_assetManager_setPercentage(float percentage);
  20. int avdl_assetManager_isLoading();
  21. int avdl_assetManager_isReady();
  22. int avdl_assetManager_hasAssets();
  23. void avdl_assetManager_lockLoading();
  24. void avdl_assetManager_unlockLoading();
  25. void avdl_assetManager_clear();
  26. #endif