chiark / gitweb /
merge into history old stuff found on chiark
[moebius.git] / dualx11.hh
1 /*
2  * X11 functions - colour-stereographic output
3  * (currently broken)
4  */
5
6 #ifndef DUALX11_HH
7 #define DUALX11_HH
8
9 #include <stdlib.h>
10 #include <X11/Xlib.h>
11
12 #include "output.hh"
13
14 struct DualX11Output : Output {
15   DualX11Output();
16   ~DualX11Output();
17   void drawcell(const Point *list, int n, Colour colour);
18   void startimage();
19   void endimage();
20 private:
21   Display *display;
22   Window window;
23   GC fabric[2];
24   GC mesh[2];
25   unsigned long planemasks[2], pixelbase;
26 };
27
28 #endif