Skip to content

Commit

Permalink
--remove dupe defs
Browse files Browse the repository at this point in the history
  • Loading branch information
jturner65 committed Feb 21, 2023
1 parent 82a5992 commit f95f61b
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/esp/metadata/attributes/AttributesEnumMaps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,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 All @@ -87,15 +81,6 @@ std::string getLightPositionModelName(
}
return "global";
}

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 @@ -150,13 +135,6 @@ std::string getTranslationOriginName(
return "default";
}

// 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 f95f61b

Please sign in to comment.