summaryrefslogtreecommitdiff
path: root/legacy/evas/src/modules/engines/gl_x11/evas_engine.h
blob: a34eff7c3df28d5934890f0f7865d17cd78f99dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef EVAS_ENGINE_H
#define EVAS_ENGINE_H

#include "evas_gl_common.h"

typedef struct _Evas_GL_X11_Window Evas_GL_X11_Window;

struct _Evas_GL_X11_Window
{
   Display         *disp;
   Window           win;
   int              w, h;
   int              screen;
   XVisualInfo     *visualinfo;
   Visual          *visual;
   Colormap         colormap;
   int              depth;
   GLXContext       context;
   Evas_GL_Context *gl_context;
   struct {
      int              redraw : 1;
      int              x1, y1, x2, y2;
   } draw;
};

extern int          _evas_gl_x11_configuration[9];
extern XVisualInfo *_evas_gl_x11_vi;
extern Colormap     _evas_gl_x11_cmap;

Evas_GL_X11_Window *
  evas_engine_gl_x11_window_new(Display *disp,
				Window   win,
				int      screen,
				Visual  *vis,
				Colormap cmap,
				int      depth,
				int      w,
				int      h);
void
  evas_engine_gl_x11_window_free(Evas_GL_X11_Window *gw);
void
  evas_engine_gl_x11_window_use(Evas_GL_X11_Window *gw);

#endif