#ifndef NGXC_PIXMAP_TEXTURE_H #define NGXC_PIXMAP_TEXTURE_H #include #define GLX_GLXEXT_PROTOTYPES #include #include #include typedef struct { Display *display; Pixmap pixmap; GLXPixmap glx_pixmap; GLuint texture_id; int width; int height; } ngxc_pixmap_texture; bool ngxc_pixmap_texture_init(ngxc_pixmap_texture *self, Display *display, Pixmap pixmap); void ngxc_pixmap_texture_deinit(ngxc_pixmap_texture *self); /* This should ONLY be called when the pixmap is resized. */ bool ngxc_pixmap_texture_on_resize(ngxc_pixmap_texture *self); #endif /* NGXC_PIXMAP_TEXTURE_H */