4 * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 #include <X11/Xft/Xft.h>
35 #include "bcbitmap.inc"
36 #include "bcpixmap.inc"
37 #include "bcwindowbase.inc"
43 BC_Pixmap(BC_WindowBase *parent_window,
45 int mode = PIXMAP_OPAQUE,
47 BC_Pixmap(BC_WindowBase *parent_window,
52 friend class BC_WindowBase;
55 void resize(int w, int h);
56 // OpenGL for pixmaps doesn't seem to be accelerated so it has been discontinued.
58 void copy_area(int x, int y, int w, int h, int x2, int y2);
59 // Draw this pixmap onto the drawable pointed to by pixmap.
60 int write_drawable(Drawable &pixmap,
67 // Draw the pixmap pointed to by pixmap onto this pixmap.
68 void draw_pixmap(BC_Pixmap *pixmap,
75 // Draw the vframe pointed to by frame onto this pixmap.
76 void draw_vframe(VFrame *frame,
93 int initialize(BC_WindowBase *parent_window, int w, int h, int mode);
95 BC_WindowBase *parent_window;
96 BC_WindowBase *top_level;
97 Pixmap opaque_pixmap, alpha_pixmap;
98 void *opaque_xft_draw, *alpha_xft_draw;
100 GLXContext glx_pixmap_context;
101 GLXPixmap glx_pixmap;
105 // GC's only used if alpha pixmap
106 GC alpha_gc, copy_gc;