ref: 0456ec2855b0bf186113ad26d336212636c9a5bc
parent: 0ee609991acfa6dad6136b728e3c3878c406c662
author: MHS <gek@katherine>
date: Wed Apr 7 08:03:14 EDT 2021
Automatic commit.
--- a/include-demo/openimgui.h
+++ b/include-demo/openimgui.h
@@ -1,3 +1,20 @@
+#ifndef OPENIMGUI_IMPL
+extern float omg_cursorpos[2]; //Defaults to zero
+extern float omg_cursorpos_presuck[2]; //Defaults to zero
+extern int omg_cursor_has_been_sucked;
+extern int omg_cursor_was_inside; //Set
+extern float omg_buttonjump[2]; //Defaults to zero
+// Setting for users using
+extern int omg_bstate_old;
+extern int omg_udlr_old[4];
+extern int omg_udlr[4];
+// cursor button
+extern int omg_cb; //Set to zero every iteration.
+#endif
+
+#ifndef OPENIMGUI_H
+#define OPENIMGUI_H
+
#include <math.h>
//PROTOTYPE FOR THE OPENIMGUISTANDARD PROPOSAL
@@ -64,19 +81,7 @@
// the graphical object.
// Normalized cursor position
-#ifndef OPENIMGUI_IMPL
-extern float omg_cursorpos[2]; //Defaults to zero
-extern float omg_cursorpos_presuck[2]; //Defaults to zero
-extern int omg_cursor_has_been_sucked;
-extern int omg_cursor_was_inside; //Set
-extern float omg_buttonjump[2]; //Defaults to zero
-// Setting for users using
-extern int omg_bstate_old;
-extern int omg_udlr_old[4];
-extern int omg_udlr[4];
-// cursor button
-extern int omg_cb; //Set to zero every iteration.
-#else
+#ifdef OPENIMGUI_IMPL
float omg_cursorpos[2]; //Defaults to zero
float omg_cursorpos_presuck[2]; //Defaults to zero
int omg_cursor_has_been_sucked;
@@ -250,3 +255,6 @@
// and the longest line of text will determine the x dimension of the box.
// Otherwise, it is functionally identical to omg_box.
int omg_textbox(float x, float y, const char* text, int textsize, int sucks, float buttonjumpx, float buttonjumpy, int hints, int hintstext);
+
+
+#endif