Graphics.eu (19k) pre-alpha release
- Posted by Mike Sabal <MikeS at NOTATIONS.COM> Aug 23, 2000
- 657 views
-- taken from Euphoria wrapper for SVGAlib -- Author: Marcos Donnantuoni <dontima at yahoo.com> -- and from graphics.e by Rob Craig This library has been sent to Rob for posting on the Contributions page. It is also available from my web site (http://sabal.8m.com) and clicking the Euphoria button. If you have trouble retrieving the file from either site, please email me privately (m_sabal at yahoo.com) and I would be happy to send it to you. The library was tested using Slackware/LoopLinux and Svgalib 1.4.0. By replacing the standard graphics.e with the new graphics.eu, you can still run all current Linux programs without modification. In addition, you will be able to run many DOS32 graphical programs on Linux (including taking advantage of the many bitmapped fonts available). This is a pre-alpha release for the following reasons (and if anyone has any suggestions for help, please let me know!): 1) I've only been able to run it as root. There's gotta be an I/O permission not set for other users, but I don't know where. Anybody have any ideas? 2) There are no built-in routines in svgalib for polygon or ellipse. I can emulate unfilled polygons pretty easily, but filled polygons and ellipses are beyond me right now. Not to mention the lack of speed that any emulations would have. MMX is supported in svgalib, but I haven't gotten to the point of trying to wrap them. I'm looking for *fast* algorithms for filled polygons and filled ellipses using draw_line or pixel, unless a better answer is out there. 3) The pixel routine had to be overridden with an unoptimized for-loop. I'd rather stay away from direct memory access in Linux graphics if possible due to the multi-user nature of the beast. 4) I'm not touching image.e until graphics.e is working 100%. 5) If for some reason, your program errors while in graphics mode and your text mode is acting messed up, try "reset cursor" or "restorepalette" at the bash prompt. You may have to type blind, but one or the other of these should return you to a normal text mode. 6) There is no number 6. Sorry for the long post and let me know if there are any problems. Michael J. Sabal m_sabal at yahoo.com