doompanning/src/dp_util.hpp

19 lines
324 B
C++
Raw Normal View History

#ifndef SRC_DP_UTIL_HPP
#define SRC_DP_UTIL_HPP
#include <imgui.h>
#include <tuple>
#include "dp_types.h"
inline std::tuple<u8, u8, u8, u8> imvec4_to_rgba(const ImVec4 &color)
{
return
{
color.x * 255,
color.y * 255,
color.z * 255,
color.w * 255,
};
}
#endif // SRC_DP_UTIL_HPP