group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
AssetEntry Struct Reference

One entry in the asset registry. More...

#include <AssetRegistry.hpp>

Public Attributes

std::string name
 Human-readable name (e.g. "porsche", "wraith", "map1").
std::string filename
 GLB filename relative to assets/ (empty for procedural).
AssetRole role = AssetRole::Entity
glm::vec3 renderScale {1.0f}
 Default per-entity render scale for this asset.
glm::vec3 renderTranslation {0.0f}
 Default per-entity local translation for this asset.
glm::vec3 renderRotationDegrees {0.0f}
 Default per-entity local Euler rotation in degrees.
int32_t modelIndex = -1
 Renderer model index (-1 = not uploaded to GPU yet).
bool hasCollision = false
 True if collision was generated for this asset.

Detailed Description

One entry in the asset registry.

Member Data Documentation

◆ filename

std::string AssetEntry::filename

GLB filename relative to assets/ (empty for procedural).

◆ hasCollision

bool AssetEntry::hasCollision = false

True if collision was generated for this asset.

◆ modelIndex

int32_t AssetEntry::modelIndex = -1

Renderer model index (-1 = not uploaded to GPU yet).

◆ name

std::string AssetEntry::name

Human-readable name (e.g. "porsche", "wraith", "map1").

◆ renderRotationDegrees

glm::vec3 AssetEntry::renderRotationDegrees {0.0f}

Default per-entity local Euler rotation in degrees.

◆ renderScale

glm::vec3 AssetEntry::renderScale {1.0f}

Default per-entity render scale for this asset.

◆ renderTranslation

glm::vec3 AssetEntry::renderTranslation {0.0f}

Default per-entity local translation for this asset.

◆ role

AssetRole AssetEntry::role = AssetRole::Entity

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