aboutsummaryrefslogtreecommitdiff
path: root/include/window_texture.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/window_texture.h')
-rw-r--r--include/window_texture.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/window_texture.h b/include/window_texture.h
index d543a79..ea3ff10 100644
--- a/include/window_texture.h
+++ b/include/window_texture.h
@@ -1,8 +1,11 @@
#ifndef WINDOW_TEXTURE_H
#define WINDOW_TEXTURE_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define GLX_GLXEXT_PROTOTYPES
-#include <GL/glew.h>
#include <GL/glx.h>
#include <GL/glxext.h>
#include <X11/Xlib.h>
@@ -13,6 +16,7 @@ typedef struct {
Pixmap pixmap;
GLXPixmap glx_pixmap;
GLuint texture_id;
+ int redirected;
} WindowTexture;
/* Returns 0 on success */
@@ -27,4 +31,8 @@ int window_texture_on_resize(WindowTexture *self);
GLuint window_texture_get_opengl_texture_id(WindowTexture *self);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* WINDOW_TEXTURE_H */