group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
Asset::Model Struct Reference

#include <Asset.hpp>

Public Attributes

std::vector< ModelNodemodelNodes_
std::vector< ModelElementmodelElements_
std::vector< MaterialIdIntmaterialsByIndex_
 Material id for each source material index (parallel to aiScene::mMaterials).
std::vector< PointLightpointLights
std::unordered_map< std::string, MountPointmountPoints
bool hasMuzzle = false
glm::vec3 muzzleLocalPos {}

Member Data Documentation

◆ hasMuzzle

bool Asset::Model::hasMuzzle = false

◆ materialsByIndex_

std::vector<MaterialIdInt> Asset::Model::materialsByIndex_

Material id for each source material index (parallel to aiScene::mMaterials).

Lets callers resolve a texture by raw material index — needed to bind per-mesh textures in a skinned rig's mesh order, which differs from the node-DFS order of modelElements_.

◆ modelElements_

std::vector<ModelElement> Asset::Model::modelElements_

◆ modelNodes_

std::vector<ModelNode> Asset::Model::modelNodes_

◆ mountPoints

std::unordered_map<std::string, MountPoint> Asset::Model::mountPoints

◆ muzzleLocalPos

glm::vec3 Asset::Model::muzzleLocalPos {}

◆ pointLights

std::vector<PointLight> Asset::Model::pointLights

The documentation for this struct was generated from the following file: