| 8 bit (3-3-2) | 12 bit (4-4-4) | 16 bit (6-5-5) YGL_DSZ| # colors (bits) | # colors (bits) | # colors (bits) ------------------------------------------------------------- 0,1 | 256 ( 8 ) | 4096 (12 ) | 65536 (16 ) 2 | 10933 (13.4) | 226981 (17.8) | 3953125 (21.9) 3 | 114688 (16.8) | 2515456 (21.3) | 44531200 (25.4) 4 | 625681 (19.3) | 13997521 (23.7) | 249232081 (27.9) 5 | 2354176 (21.2) | 53157376 (25.7) | 949029376 (29.8) 6 | 6976981 (22.7) |158340421 (27.2) |2831006341 (31.4)
double_ -> doublebuffer_ gRGBcol_ -> grgbcol_ RGBcol_ -> rgbcol_ RGBmod_ -> rgbmod_ loadXf_ -> loadxf_ getXdpy_ -> getxdpy_ getXwid_ -> getxwid_ getXgc_ -> getxgc_
... xwin = XCreateWindow(...); winX(dpy, xwin); RGBmode(); gconfig(); ...xwin is not valid anymore. You must get the new windowid with
xwin = getXwid();
int gl2ppm(char *filename);popen() is used instead of fopen() when filename[0] == '|'. For an example, see examples/lines.c.
#include... XSetFunction(getXdpy(), getXgc(), GXxor);
Colormap mode <-> PseudoColor or GrayScale visual RGB mode <-> TrueColor visual
XGL_FT for XGL_FLUSHTIME XGL_PCM for XGL_PRIVATECOLORMAP XGL_BS for XGL_BACKINGSTORE
# xmkmf -a;make clean;maketo compile a library named libXglp.a where all function names are prepended with xgl_. This is to avoid name conflicts if you want to use Xgl in other projects as the Turbo Pascal for Unix emulator by Michael Staats (michael@thp.Uni-Duisburg.DE).