Magnum/ImGuiIntegration/Widgets.h file

Function Magnum::ImGuiIntegration::textureId(), Magnum::ImGuiIntegration::image(), Magnum::ImGuiIntegration::imageButton()

Namespaces

namespace Magnum
Root namespace.
namespace Magnum::ImGuiIntegration
Integration with Dear ImGui.

Functions

auto textureId(GL::Texture2D& texture) -> ImTextureID new in Git master
Create an ImTextureID for a GL::Texture2D.
void image(GL::Texture2D& texture, const Vector2& size, const Range2D& uvRange = {{}, Vector2{1.0f}}, const Color4& tintColor = Color4{1.0f}, const Color4& borderColor = {})
Image widget displaying a GL::Texture2D.
auto imageButton(const char* id, GL::Texture2D& texture, const Vector2& size, const Range2D& uvRange = {{}, Vector2{1.0f}}, const Color4& backgroundColor = {}, const Color4& tintColor = Color4{1.0f}) -> bool new in Git master
ImageButton widget displaying a GL::Texture2D.
auto imageButton(GL::Texture2D& texture, const Vector2& size, const Range2D& uvRange = {{}, Vector2{1.0f}}, Int framePadding = -1, const Color4& backgroundColor = {}, const Color4& tintColor = Color4{1.0f}) -> bool deprecated in Git master
ImageButton widget displaying a GL::Texture2D.