|
@@ -434,6 +434,10 @@ void rlImGuiImage(const Texture *image)
|
|
|
ImGui::Image((ImTextureID)image, ImVec2(float(image->width), float(image->height)));
|
|
|
}
|
|
|
|
|
|
+bool rlImGuiImageButton(const Texture *image) {
|
|
|
+ return ImGui::ImageButton((ImTextureID)image, ImVec2(float(image->width), float(image->height)));
|
|
|
+}
|
|
|
+
|
|
|
void rlImGuiImageSize(const Texture *image, int width, int height)
|
|
|
{
|
|
|
ImGui::Image((ImTextureID)image, ImVec2(float(width), float(height)));
|
|
@@ -467,4 +471,4 @@ void rlImGuiImageRect(const Texture* image, int destWidth, int destHeight, Recta
|
|
|
}
|
|
|
|
|
|
ImGui::Image((ImTextureID)image, ImVec2(float(destWidth), float(destHeight)),uv0,uv1);
|
|
|
-}
|
|
|
+}
|