2002-11-08 00:02:15 -08:00
|
|
|
#ifndef EVAS_ENGINE_H
|
|
|
|
#define EVAS_ENGINE_H
|
|
|
|
|
2003-09-04 00:40:34 -07:00
|
|
|
#include "evas_gl_common.h"
|
2002-11-08 00:02:15 -08:00
|
|
|
|
2003-09-04 00:40:34 -07:00
|
|
|
typedef struct _Evas_GL_X11_Window Evas_GL_X11_Window;
|
2002-11-08 00:02:15 -08:00
|
|
|
|
2003-09-04 00:40:34 -07:00
|
|
|
struct _Evas_GL_X11_Window
|
|
|
|
{
|
|
|
|
Display *disp;
|
|
|
|
Window win;
|
|
|
|
int w, h;
|
|
|
|
int screen;
|
|
|
|
XVisualInfo *visualinfo;
|
|
|
|
Visual *visual;
|
|
|
|
Colormap colormap;
|
|
|
|
int depth;
|
2005-05-21 19:49:50 -07:00
|
|
|
GLXContext context;
|
2003-09-04 00:40:34 -07:00
|
|
|
Evas_GL_Context *gl_context;
|
|
|
|
struct {
|
|
|
|
int redraw : 1;
|
|
|
|
int x1, y1, x2, y2;
|
|
|
|
} draw;
|
|
|
|
};
|
2002-11-08 00:02:15 -08:00
|
|
|
|
2003-09-04 00:40:34 -07:00
|
|
|
extern int _evas_gl_x11_configuration[9];
|
|
|
|
extern XVisualInfo *_evas_gl_x11_vi;
|
|
|
|
extern Colormap _evas_gl_x11_cmap;
|
|
|
|
|
|
|
|
Evas_GL_X11_Window *
|
2006-03-06 16:24:37 -08:00
|
|
|
eng_window_new(Display *disp,
|
2003-09-04 00:40:34 -07:00
|
|
|
Window win,
|
|
|
|
int screen,
|
|
|
|
Visual *vis,
|
|
|
|
Colormap cmap,
|
|
|
|
int depth,
|
|
|
|
int w,
|
|
|
|
int h);
|
|
|
|
void
|
2006-03-06 16:24:37 -08:00
|
|
|
eng_window_free(Evas_GL_X11_Window *gw);
|
2003-09-04 00:40:34 -07:00
|
|
|
void
|
2006-03-06 16:24:37 -08:00
|
|
|
eng_window_use(Evas_GL_X11_Window *gw);
|
2005-05-21 19:49:50 -07:00
|
|
|
|
2002-11-08 00:02:15 -08:00
|
|
|
#endif
|