37 #ifndef H_SKIN_IMGUI_ICON_REPOSITORY_H
38 #define H_SKIN_IMGUI_ICON_REPOSITORY_H
41 #include <geogram_gfx/third_party/imgui/imgui.h>
80 void bind_icon(
const std::string& icon_name, GLuint gl_texture);
93 const std::string& icon_name,
bool mipmap=
false
98 ImTextureID im_texture_id;
102 std::map<std::string, Icon> icons_;
105 mutable std::set<std::string> not_found_;
Some utility functions for OpenGL graphics.
Keeps the correspondence between names and cached icons.
ImTextureID resolve_icon(const std::string &icon_name, bool mipmap=false) const
Finds an icon by name.
IconRepository()
IconRepository constructor.
~IconRepository()
IconRepository destructor.
void bind_icon(const std::string &icon_name, GLuint gl_texture)
Attaches an icon to a given name.
Global Graphite namespace.
Definitions common to all include files in the skin_imgui library.