소스 검색

don't include ImGui in header directly in case they are using cimgui.

Jeff Myers 1 년 전
부모
커밋
d1b2f9157d
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      rlImGui.h

+ 1 - 3
rlImGui.h

@@ -32,8 +32,6 @@
 
 #include "raylib.h"
 
-#include "imgui.h"
-
 #ifndef NO_FONT_AWESOME
 #include "extras/IconsFontAwesome6.h"
 #define FONT_AWESOME_ICON_SIZE 11
@@ -57,7 +55,7 @@ void rlImGuiReloadFonts();
 // image API
 void rlImGuiImage(const Texture *image);
 bool rlImGuiImageButton(const char* name, const Texture *image);
-bool rlImGuiImageButtonSize(const char* name, const Texture* image, ImVec2 size);
+bool rlImGuiImageButtonSize(const char* name, const Texture* image, struct ImVec2 size);
 void rlImGuiImageSize(const Texture *image, int width, int height);
 void rlImGuiImageRect(const Texture* image, int destWidth, int destHeight, Rectangle sourceRect);