2018-05-07 10:27:55 +02:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#if defined _WIN32 || defined __CYGWIN__
|
2018-06-25 15:52:55 +02:00
|
|
|
#ifdef CIMGUI_NO_EXPORT
|
|
|
|
#define API
|
|
|
|
#else
|
|
|
|
#define API __declspec(dllexport)
|
|
|
|
#endif
|
|
|
|
#ifndef __GNUC__
|
|
|
|
#define snprintf sprintf_s
|
|
|
|
#endif
|
2018-05-07 10:27:55 +02:00
|
|
|
#else
|
2018-06-25 15:52:55 +02:00
|
|
|
#define API
|
2018-05-07 10:27:55 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined __cplusplus
|
2018-06-25 15:52:55 +02:00
|
|
|
#define EXTERN extern "C"
|
2018-05-07 10:27:55 +02:00
|
|
|
#else
|
2018-06-25 15:52:55 +02:00
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#define EXTERN extern
|
2018-05-07 10:27:55 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#define CIMGUI_API EXTERN API
|
|
|
|
#define CONST const
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
typedef unsigned __int64 ImU64;
|
|
|
|
#else
|
|
|
|
typedef unsigned long long ImU64;
|
|
|
|
#endif
|
|
|
|
|
2018-06-25 15:52:55 +02:00
|
|
|
//struct GLFWwindow;
|
|
|
|
//struct SDL_Window;
|
2018-06-19 18:46:09 +02:00
|
|
|
|
2018-05-07 10:27:55 +02:00
|
|
|
#ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
|
|
|
#include "imgui_structs.h"
|
2018-06-25 15:52:55 +02:00
|
|
|
#else
|
|
|
|
struct GLFWwindow;
|
|
|
|
struct SDL_Window;
|
|
|
|
typedef union SDL_Event SDL_Event;
|
2018-05-07 10:27:55 +02:00
|
|
|
#endif // CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
|
|
|
|
|
|
|
#include "auto_funcs.h"
|
|
|
|
|
|
|
|
/////////////////////////hand written functions
|
|
|
|
//no LogTextV
|
|
|
|
CIMGUI_API void igLogText(CONST char *fmt, ...);
|
|
|
|
//no appendfV
|
|
|
|
CIMGUI_API void ImGuiTextBuffer_appendf(struct ImGuiTextBuffer *buffer, const char *fmt, ...);
|
|
|
|
CIMGUI_API void ImFontConfig_DefaultConstructor(ImFontConfig *config);
|
2018-06-20 11:42:19 +02:00
|
|
|
//for getting FLT_MAX in bindings
|
2018-06-16 17:49:16 +02:00
|
|
|
CIMGUI_API float igGET_FLT_MAX();
|
|
|
|
|
2018-05-07 10:27:55 +02:00
|
|
|
|