Add ui::image_provider interface
This commit is contained in:
parent
3f282356d7
commit
e7a1d1b265
1 changed files with 17 additions and 0 deletions
17
libs/ui/include/psemek/ui/image_provider.hpp
Normal file
17
libs/ui/include/psemek/ui/image_provider.hpp
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <psemek/gfx/texture_view.hpp>
|
||||||
|
|
||||||
|
#include <string_view>
|
||||||
|
|
||||||
|
namespace psemek::ui
|
||||||
|
{
|
||||||
|
|
||||||
|
struct image_provider
|
||||||
|
{
|
||||||
|
virtual gfx::texture_view_2d get(std::string_view const & id) = 0;
|
||||||
|
|
||||||
|
virtual ~ image_provider() {}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue