瀏覽代碼

make it work on c project

sickape 3 年之前
父節點
當前提交
feccad2179
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      rlImGui.h

+ 8 - 0
rlImGui.h

@@ -32,6 +32,10 @@
 
 #include "raylib.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 // basic API
 void rlImGuiSetup(bool dark);
 void rlImGuiBegin();
@@ -47,3 +51,7 @@ void rlImGuiReloadFonts();
 void rlImGuiImage(const Texture *image);
 void rlImGuiImageSize(const Texture *image, int width, int height);
 void rlImGuiImageRect(const Texture* image, int destWidth, int destHeight, Rectangle sourceRect);
+
+#ifdef __cplusplus
+}
+#endif