SP3-13 Assets Management #57

Merged
XiaoQiDigipen merged 7 commits from SP3-13-Assets-Manager into main 2022-09-27 14:27:28 +08:00
4 changed files with 6 additions and 4 deletions
Showing only changes of commit 60540b1adc - Show all commits

View File

@ -54,6 +54,9 @@ namespace Sandbox
}
graphicsSystem->BuildMeshBuffers();
//Test Textures
auto textures{ SHADE::SHAssetManager::GetAllTextures() };
// Create Materials
auto matInst = graphicsSystem->AddOrGetBaseMaterialInstance();

View File

@ -8,9 +8,8 @@
namespace SHADE
{
class SHTextureAsset
struct SHTextureAsset
{
public:
uint32_t numBytes;
uint32_t width;
uint32_t height;

View File

@ -236,7 +236,7 @@ namespace SHADE
return result;
}
std::vector<SHTextureAsset> SHAssetManager::GetAllDDS() noexcept
std::vector<SHTextureAsset> SHAssetManager::GetAllTextures() noexcept
{
std::vector<SHTextureAsset> result;
for (auto const& dds : textureCollection)

View File

@ -73,7 +73,7 @@ namespace SHADE
//TODO: TEMPORARY FOR TESTING GLTF & DDS
static void LoadDataTemp(std::string path) noexcept;
static std::vector<SHMeshAsset> GetAllMeshes() noexcept;
static std::vector<SHTextureAsset> GetAllDDS() noexcept;
static std::vector<SHTextureAsset> GetAllTextures() noexcept;
private:
/****************************************************************************