fuck git and fuck vs code
This commit is contained in:
31
src/types.h
31
src/types.h
@@ -70,33 +70,24 @@ namespace anm2ed::types
|
||||
{
|
||||
constexpr auto ID_NONE = -1;
|
||||
|
||||
constexpr ImVec2 to_imvec2(const glm::vec2& v) noexcept
|
||||
{
|
||||
return {v.x, v.y};
|
||||
}
|
||||
constexpr glm::vec2 to_vec2(const ImVec2& v) noexcept
|
||||
{
|
||||
return {v.x, v.y};
|
||||
}
|
||||
constexpr ImVec2 to_imvec2(const glm::vec2& v) noexcept { return {v.x, v.y}; }
|
||||
constexpr glm::vec2 to_vec2(const ImVec2& v) noexcept { return {v.x, v.y}; }
|
||||
|
||||
constexpr glm::ivec2 to_ivec2(const ImVec2& v) noexcept
|
||||
{
|
||||
return {v.x, v.y};
|
||||
}
|
||||
constexpr glm::ivec2 to_ivec2(const ImVec2& v) noexcept { return {v.x, v.y}; }
|
||||
|
||||
constexpr ImVec4 to_imvec4(const glm::vec4& v) noexcept
|
||||
{
|
||||
return {v.x, v.y, v.z, v.w};
|
||||
}
|
||||
constexpr ImVec4 to_imvec4(const glm::vec4& v) noexcept { return {v.x, v.y, v.z, v.w}; }
|
||||
|
||||
constexpr glm::vec4 to_vec4(const ImVec4& v) noexcept
|
||||
{
|
||||
return {v.x, v.y, v.z, v.w};
|
||||
}
|
||||
constexpr glm::vec4 to_vec4(const ImVec4& v) noexcept { return {v.x, v.y, v.z, v.w}; }
|
||||
|
||||
template <typename T> constexpr T& dummy_value()
|
||||
{
|
||||
static T value{};
|
||||
return value;
|
||||
}
|
||||
|
||||
template <typename T> constexpr T& dummy_value_negative()
|
||||
{
|
||||
static T value{-1};
|
||||
return value;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user