Setup icon (i,j coordinates in ImGui Toolkit) for each Source class, and

use this icon in GUI to indicate the type of class.
This commit is contained in:
brunoherbelin
2020-10-01 22:57:49 +02:00
parent 467ed23b37
commit 83a2da6b2b
9 changed files with 38 additions and 12 deletions

View File

@@ -512,6 +512,13 @@ DeviceConfigSet Device::getDeviceConfigs(const std::string &src_description)
}
glm::ivec2 DeviceSource::icon() const
{
if ( device_.find("Screen") != std::string::npos )
return glm::ivec2(19, 1);
else
return glm::ivec2(2, 14);
}