|
group2 0.1.0
CSE 125 Group 2
|
Classes | |
| struct | GeoBufferInfo |
| References a CPU-side source pointer and its corresponding GPU buffer. More... | |
| struct | Vertex |
| Per-vertex attributes: position, normal, and texture coordinates. More... | |
| struct | Mesh |
| A single mesh: CPU-side vertex/index data plus GPU buffer info. More... | |
| struct | CpuMesh |
| struct | GpuMesh |
| struct | Material |
| struct | Texture |
| struct | ModelElement |
| struct | ModelNode |
| struct | Model |
| struct | ModelInstance |
Functions | |
| uint32_t | fnv1a32 (const std::string &str) |
| Compute a 32-bit FNV-1a hash of the given string. | |
| uint32_t | getIdFromString (const std::string &strId) |
| Convert a string identifier to a generic 32-bit hash ID. | |
| MeshIdInt | getMeshIdFromString (const std::string &strId) |
| Convert a string identifier to a MeshIdInt hash. | |
| ModelIdInt | getModelIdFromString (const std::string &strId) |
| Convert a string identifier to a ModelIdInt hash. | |
| TexIdInt | getTexIdFromString (const std::string &strId) |
| Convert a string identifier to a TexIdInt hash. | |
| MaterialIdInt | getMaterialIdFromString (const std::string &strId) |
Variables | |
| std::unordered_map< MeshIdInt, Mesh > | meshes_ |
| std::unordered_map< ModelIdInt, Model > | models_ |
| std::unordered_map< TexIdInt, Texture > | textures_ |
| std::unordered_map< MaterialIdInt, Material > | materials_ |
| std::vector< ModelInstance > | modelInstances_ |
| ModelIdInt | weaponModelId_ = 0 |
| glm::mat4 | weaponViewModel_ = glm::mat4(1.0f) |
|
inline |
Compute a 32-bit FNV-1a hash of the given string.
| str | The input string to hash. |
|
inline |
Convert a string identifier to a generic 32-bit hash ID.
| strId | The string identifier. |
|
inline |
|
inline |
Convert a string identifier to a MeshIdInt hash.
| strId | The string identifier for the mesh. |
|
inline |
Convert a string identifier to a ModelIdInt hash.
| strId | The string identifier for the model. |
|
inline |
Convert a string identifier to a TexIdInt hash.
| strId | The string identifier for the texture. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |