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
27 #if defined(HAVE_CONFIG_H)
32 #include <X11/Xft/Xft.h>
39 #include "bcbitmap.inc"
40 #include "bcpixmap.inc"
41 #include "bcwindowbase.inc"
47 BC_Pixmap(BC_WindowBase *parent_window,
49 int mode = PIXMAP_OPAQUE,
51 BC_Pixmap(BC_WindowBase *parent_window,
56 friend class BC_WindowBase;
59 void resize(int w, int h);
60 // OpenGL for pixmaps doesn't seem to be accelerated so it has been discontinued.
62 void copy_area(int x, int y, int w, int h, int x2, int y2);
63 // Draw this pixmap onto the drawable pointed to by pixmap.
64 int write_drawable(Drawable &pixmap,
71 // Draw the pixmap pointed to by pixmap onto this pixmap.
72 void draw_pixmap(BC_Pixmap *pixmap,
79 // Draw the vframe pointed to by frame onto this pixmap.
80 void draw_vframe(VFrame *frame,
97 int initialize(BC_WindowBase *parent_window, int w, int h, int mode);
99 BC_WindowBase *parent_window;
100 BC_WindowBase *top_level;
101 Pixmap opaque_pixmap, alpha_pixmap;
102 void *opaque_xft_draw, *alpha_xft_draw;
104 GLXContext glx_pixmap_context;
105 GLXPixmap glx_pixmap;
109 // GC's only used if alpha pixmap
110 GC alpha_gc, copy_gc;