summaryrefslogtreecommitdiff
path: root/src/image.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/image.h')
-rw-r--r--src/image.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/image.h b/src/image.h
index 21f3438..860c767 100644
--- a/src/image.h
+++ b/src/image.h
@@ -1,6 +1,7 @@
#ifndef INCLUDE_IMAGE
#define INCLUDE_IMAGE
+#if defined(_WIN32)
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
@@ -13,6 +14,19 @@ typedef struct t_ts_image {
int width;
int height;
} ts_image;
+#elif defined(__linux__)
+
+//#include <GL/glut.h>
+#include "imgui.h"
+#include "imgui_impl_opengl3_loader.h"
+#include "imgui_impl_opengl3.h"
+
+typedef struct t_ts_image {
+ GLuint id;
+ int width;
+ int height;
+} ts_image;
+#endif
extern ts_image img_logo;
extern ts_image img_search;