mirror of https://github.com/inolen/redream.git
enclose imgui extensions with HAVE_IMGUI check
This commit is contained in:
parent
0111613f67
commit
348e31a115
13
src/imgui.h
13
src/imgui.h
|
@ -1,16 +1,16 @@
|
||||||
#ifndef IMGUI_H
|
#ifndef IMGUI_H
|
||||||
#define IMGUI_H
|
#define IMGUI_H
|
||||||
|
|
||||||
|
|
||||||
|
/* imgui extensions */
|
||||||
|
#if HAVE_IMGUI
|
||||||
|
|
||||||
#ifndef IMGUI_IMPLEMENTATION
|
#ifndef IMGUI_IMPLEMENTATION
|
||||||
#define CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
#define CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
||||||
#include <cimgui/cimgui.h>
|
#include <cimgui/cimgui.h>
|
||||||
#endif
|
#endif
|
||||||
#include "host/keycode.h"
|
#include "host/keycode.h"
|
||||||
|
|
||||||
struct imgui;
|
|
||||||
struct render_backend;
|
|
||||||
|
|
||||||
/* imgui extensions */
|
|
||||||
enum {
|
enum {
|
||||||
IMFONT_OSWALD_MEDIUM,
|
IMFONT_OSWALD_MEDIUM,
|
||||||
IMFONT_OPENSANS_REGULAR,
|
IMFONT_OPENSANS_REGULAR,
|
||||||
|
@ -37,7 +37,12 @@ int igDiscButton(ImTextureID user_texture_id, float item_diameter,
|
||||||
float draw_diameter, const struct ImVec2 uv0,
|
float draw_diameter, const struct ImVec2 uv0,
|
||||||
const struct ImVec2 uv1);
|
const struct ImVec2 uv1);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
/* imgui implementation */
|
/* imgui implementation */
|
||||||
|
struct imgui;
|
||||||
|
struct render_backend;
|
||||||
|
|
||||||
struct imgui *imgui_create();
|
struct imgui *imgui_create();
|
||||||
void imgui_destroy(struct imgui *imgui);
|
void imgui_destroy(struct imgui *imgui);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue