1 #ifndef __render_instance_h
2 #define __render_instance_h
15 GLXContext glx_context;
19 GHashTable *surface_map;
22 #define RrDisplay(i) ((i)->display)
23 #define RrScreen(i) ((i)->screen)
24 #define RrScreenWidth(i) (WidthOfScreen(ScreenOfDisplay((i)->display, \
26 #define RrScreenHeight(i) (HeightOfScreen(ScreenOfDisplay((i)->display, \
28 #define RrDepth(i) ((i)->visinfo.depth)
29 #define RrVisual(i) ((i)->visinfo.visual)
30 #define RrColormap(i) ((i)->cmap)
31 #define RrContext(i) ((i)->glx_context)
33 #define RrShapeWindow(i) ((i)->shape_window)
37 void RrInstaceAddSurface(struct RrSurface *sur);
38 void RrInstaceRemoveSurface(struct RrSurface *sur);
39 struct RrSurface *RrInstaceLookupSurface(struct RrInstance *inst, Window win);