diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-08 20:48:05 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-08 20:48:05 +0100 |
| commit | 0b429e06b8c4b66a9f7fe89b5504315ab4f69616 (patch) | |
| tree | d5cf9d15d8790559f0c4b006ede0ca1314639077 /src/image.h | |
| parent | def620a66bc5b0dc1107102f2c234888dc9bd830 (diff) | |
linux building
Diffstat (limited to 'src/image.h')
| -rw-r--r-- | src/image.h | 14 |
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; |
