From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,2ab8e086fa2a534b,start X-Google-Attributes: gid10d4db,public From: news@uunet.uu.net (UseNet News) Subject: Ygl 3.0.0 2d Graphics Library available Date: 1995/08/31 Message-ID: X-Deja-AN: 109232941 followup-to: comp.os.linux.x content-type: text/plain; charset=ISO-8859-1 organization: Theoretische Physik, Uni-GH-Duisburg, Germany mime-version: 1.0 newsgroups: comp.os.linux.announce Hello networld, Ygl 3.0.0 is available now from ftp.thp.Uni-Duisburg.DE (134.91.141.1), in files pub/source/X11/Ygl-3.0.0.tar.{Z|gz}. Ygl emulates SGI's GL (Graphics Language) under X11. It compiles fine under AIX 3.2, HP-UX 7.0/8.0/9.0, Linux with XFree, SunOS, ConvexOS and others, but needs an ANSI-C compiler (gcc is ok). Ygl is distributed under the GNU CopyLeft. See the included LICENSE file for further details. Included are most of the two-dimensional graphics routines, the queue device routines, some query routines, doublebuffering, RGB mode with arbitrary visuals and dithering and most of the window attribute routines (see below). = Several functions and features are added (see below), some bugs are fixed (see below, too). The latest version of the ReadMe file is available at the World Wide Web: The URL is http://WWW.thp.Uni-Duisburg.DE/Ygl/ReadMe.html Changes from Version 2.9.5 -> 3.0.0: ------------------------------------ Added dithering to RGBmode. Dithering is controlled by the environment variable YGL_DITHERSIZE or shorter YGL_DSZ. With this variable you can specify the size of the dither matrix. The default value is 4, leading to a 4x4 dither matrix. Valid values range from 0 to 6. On a normal 8 bit TrueColor visual ({3,3,2} bits {red,green,blue}) you obtain 113x113x49 =3D 625681 different "colors" with YGL_DSZ=3D4, leading to an effective screen depth of approx. 19 bits. The other values and the effective screendepths are: | 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) Note that dithering costs speed. You may set YGL_DSZ=3D0 to disable dithering. If you are lucky and have a 24 bit TrueColor visual, YGL_DSZ is automatically set to zero. Affected routines: RGBcolor(), gRGBcolor(), cpack(), c3s(), c3i(), c3f(). See examples/rgbtest.c for an example. Added menu stuff. New functions: defpup(), newpup(), addtopup(), dopup(), freepup(), setpup(). See examples/popup.c for details. Added C++ support to Ygl.h. Fixed bugs in FORTRAN bindings. Unfortunately some of the FORTRAN names are not truncated to 6 chars due to nameing conflicts, SH*T. FORTRAN bindings must be lowercase... double_ -> doublebuffer_ gRGBcol_ -> grgbcol_ RGBcol_ -> rgbcol_ RGBmod_ -> rgbmod_ loadXf_ -> loadxf_ getXdpy_ -> getxdpy_ getXwid_ -> getxwid_ getXgc_ -> getxgc_ Fixed bug in gl2ppm() that caused it to fail under newer versions of AIX32. getXwid() returned Window* instead of Window, getXgc() returned GC* instead of GC. Fixed. Added winX() to FORTRAN bindings. Fixed cooperation of FORTRAN bindings and YGL_PREFIX. Changed behaviour of prefposition() and winposition(). The given values now describe the position of the drawing area, not the position of the window incl. window manager decorations. A RGBmode window is now a child of the initially created colormap mode window. This simplified changing to RGBmode. Ygl now uses the property WM_COLORMAP_WINDOWS to tell the window manager, which colormaps are to be installed. This also fixed a bug when a subwindow of a cmap window was a RGB window. To toggle the colormaps is this case, use the window manager function f.colormap in twm or f.next_cmap in mwm (see your window manager manual for details). Added the function getXdid(). getXdid() returns the window id of the drawable. This id differs from getXwin() when using RGBmode or doublebuffering. Have fun, Fred -- --------- Fred Hucht, Institute of Theoretical Physics, University of Duisburg, Ger= many Email: fred@thp.Uni-Duisburg.DE http://WWW.thp.Uni-Duisburg.DE/ ^A^@h|^H=A60!^@`N\200^@@(#).sigvirus = V0.1^@ -- Send comp.os.linux.announce submissions to: linux-announce@news.ornl.gov PLEASE remember a short description of the software.