group2
0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
AssetLoader.hpp
Go to the documentation of this file.
1
//
2
// Created by mysteriousjim on 4/16/2026.
3
//
4
5
#ifndef GROUP2_MODELLOADER_H
6
#define GROUP2_MODELLOADER_H
7
#include "
Asset.hpp
"
8
#include "assimp/Importer.hpp"
9
#include "assimp/postprocess.h"
10
#include "assimp/scene.h"
11
#include "glm/glm.hpp"
12
13
#include <string>
14
#include <unordered_map>
15
16
class
AssetLoader
17
{
18
public
:
19
static
bool
20
loadModel
(
const
ModelIdInt
id
,
const
std::string& modelFileName,
const
std::vector<std::string>& texFileNames);
21
static
bool
loadModelsList
();
22
23
private
:
24
static
bool
loadMesh(
MeshIdInt
id
,
const
aiMesh& asimpMeshResult);
25
static
const
aiScene* loadAsset(Assimp::Importer& importer,
const
std::string& fileName);
26
};
27
28
#endif
// GROUP2_MODELLOADER_H
Asset.hpp
MeshIdInt
uint32_t MeshIdInt
Definition
Asset.hpp:14
ModelIdInt
uint32_t ModelIdInt
Definition
Asset.hpp:15
AssetLoader
Definition
AssetLoader.hpp:17
AssetLoader::loadModel
static bool loadModel(const ModelIdInt id, const std::string &modelFileName, const std::vector< std::string > &texFileNames)
Definition
AssetLoader.cpp:76
AssetLoader::loadModelsList
static bool loadModelsList()
Definition
AssetLoader.cpp:21
src
client
renderer-new
AssetLoader.hpp
Generated by
1.9.8