6 #if defined(HAVE_CONFIG_H)
11 #include <X11/Xft/Xft.h>
18 #include "bcbitmap.inc"
19 #include "bcpixmap.inc"
20 #include "bcwindowbase.inc"
26 BC_Pixmap(BC_WindowBase
*parent_window
,
28 int mode
= PIXMAP_OPAQUE
,
30 BC_Pixmap(BC_WindowBase
*parent_window
,
35 friend class BC_WindowBase
;
38 void resize(int w
, int h
);
39 // OpenGL for pixmaps doesn't seem to be accelerated so it has been discontinued.
41 void copy_area(int x
, int y
, int w
, int h
, int x2
, int y2
);
42 // Draw this pixmap onto the drawable pointed to by pixmap.
43 int write_drawable(Drawable
&pixmap
,
50 // Draw the pixmap pointed to by pixmap onto this pixmap.
51 void draw_pixmap(BC_Pixmap
*pixmap
,
58 // Draw the vframe pointed to by frame onto this pixmap.
59 void draw_vframe(VFrame
*frame
,
76 int initialize(BC_WindowBase
*parent_window
, int w
, int h
, int mode
);
78 BC_WindowBase
*parent_window
;
79 BC_WindowBase
*top_level
;
80 Pixmap opaque_pixmap
, alpha_pixmap
;
81 void *opaque_xft_draw
, *alpha_xft_draw
;
83 GLXContext gl_pixmap_context
;
88 // GC's only used if alpha pixmap