mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-10 11:58:30 +01:00
test and backend_test/main.c changes for compiling with ImStrv
This commit is contained in:
@@ -12,11 +12,11 @@
|
|||||||
#include <GL/glu.h>
|
#include <GL/glu.h>
|
||||||
|
|
||||||
#ifdef IMGUI_HAS_IMSTR
|
#ifdef IMGUI_HAS_IMSTR
|
||||||
#define igBegin SigBegin
|
#define igBegin igBegin_Strv
|
||||||
#define igSliderFloat SigSliderFloat
|
#define igSliderFloat igSliderFloat_Strv
|
||||||
#define igCheckbox SigCheckbox
|
#define igCheckbox igCheckbox_Strv
|
||||||
#define igColorEdit3 SigColorEdit3
|
#define igColorEdit3 igColorEdit3_Strv
|
||||||
#define igButton SigButton
|
#define igButton igButton_Strv
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
SDL_Window *window = NULL;
|
SDL_Window *window = NULL;
|
||||||
|
10
test/main.c
10
test/main.c
@@ -3,11 +3,11 @@
|
|||||||
#include "../cimgui.h"
|
#include "../cimgui.h"
|
||||||
|
|
||||||
#ifdef IMGUI_HAS_IMSTR
|
#ifdef IMGUI_HAS_IMSTR
|
||||||
#define igBegin SigBegin
|
#define igBegin igBegin_Strv
|
||||||
#define igSliderFloat SigSliderFloat
|
#define igSliderFloat igSliderFloat_Strv
|
||||||
#define igCheckbox SigCheckbox
|
#define igCheckbox igCheckbox_Strv
|
||||||
#define igColorEdit3 SigColorEdit3
|
#define igColorEdit3 igColorEdit3_Strv
|
||||||
#define igButton SigButton
|
#define igButton igButton_Strv
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
|
Reference in New Issue
Block a user