Skip to content

Commit

Permalink
--remove dupe defs
Browse files Browse the repository at this point in the history
  • Loading branch information
jturner65 committed Sep 18, 2024
1 parent cc7e538 commit afb956d
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/esp/metadata/attributes/AttributesEnumMaps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,6 @@ std::string getLightTypeName(esp::gfx::LightType lightTypeEnum) {
}
return "point";
}

const std::map<std::string, esp::gfx::LightPositionModel>
LightPositionNamesMap = {{"global", esp::gfx::LightPositionModel::Global},
{"camera", esp::gfx::LightPositionModel::Camera},
{"object", esp::gfx::LightPositionModel::Object}};

std::string getLightPositionModelName(
esp::gfx::LightPositionModel lightPositionEnum) {
// this verifies that enum value being checked is supported by string-keyed
Expand Down Expand Up @@ -212,14 +206,6 @@ std::string getAORenderModeName(ArticulatedObjectRenderMode aoRenderMode) {
return "unspecified";
} // getAORenderModeName

const std::map<std::string, ObjectInstanceShaderType> ShaderTypeNamesMap = {
{"unspecified", ObjectInstanceShaderType::Unspecified},
{"material", ObjectInstanceShaderType::Material},
{"flat", ObjectInstanceShaderType::Flat},
{"phong", ObjectInstanceShaderType::Phong},
{"pbr", ObjectInstanceShaderType::PBR},
};

std::string getShaderTypeName(ObjectInstanceShaderType shaderTypeVal) {
// this verifies that enum value being checked is supported by string-keyed
// map. The values below should be the minimum and maximum enums supported by
Expand Down Expand Up @@ -274,13 +260,6 @@ std::string getTranslationOriginName(
return "default";
} // getTranslationOriginName

// All keys must be lowercase
const std::map<std::string, esp::physics::MotionType> MotionTypeNamesMap = {
{"static", esp::physics::MotionType::STATIC},
{"kinematic", esp::physics::MotionType::KINEMATIC},
{"dynamic", esp::physics::MotionType::DYNAMIC},
};

std::string getMotionTypeName(esp::physics::MotionType motionTypeEnum) {
// this verifies that enum value being checked is supported by string-keyed
// map. The values below should be the minimum and maximum enums supported by
Expand Down

0 comments on commit afb956d

Please sign in to comment.