Pārlūkot izejas kodu

make it work on c project

sickape 3 gadi atpakaļ
vecāks
revīzija
feccad2179
1 mainītis faili ar 8 papildinājumiem un 0 dzēšanām
  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