summaryrefslogtreecommitdiff
path: root/imgui_impl_raylib.h
blob: 8c93897e9a86190f6bbc212d46d3ca81d279b482 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef IMGUI_IMPL_RAYLIB
#define IMGUI_IMPL_RAYLIB

/*	NOTE: I've added a few macros to deal with compatibility.
	Most are turned off by default to keep it as close as possible to the original code,
	but ImGui has its quirks when it comes to GL2. I'll be integrating part of WEREMSOFT's rendering code.

	(https://github.com/WEREMSOFT/c99-raylib-cimgui-template/).
*/

//	The compiler whines about IMGUI_IMPL_API not being defined, so I'm leaving this here.
#include <imgui.h>

//	Config macros
#include "imgui_impl_raylib_config.h"

#if defined(__cplusplus)
extern "C" {
#endif

	IMGUI_IMPL_API bool     ImGui_ImplRaylib_Init();
	IMGUI_IMPL_API void     ImGui_ImplRaylib_Shutdown();
	IMGUI_IMPL_API void     ImGui_ImplRaylib_NewFrame();
	IMGUI_IMPL_API bool     ImGui_ImplRaylib_ProcessEvent();

#ifdef COMPATIBILITY_MODE
	IMGUI_IMPL_API void     ImGui_ImplRaylib_LoadDefaultFontAtlas();
	IMGUI_IMPL_API void     ImGui_ImplRaylib_Render(ImDrawData* draw_data);
#endif

#if defined(__cplusplus)
}
#endif

#endif