home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.sun.misc:3817 comp.windows.open-look:3534
- Path: sparky!uunet!cs.utexas.edu!wotan.compaq.com!moxie!texsun!cronkite.Central.Sun.COM!west.West.Sun.COM!male.EBay.Sun.COM!jethro.Corp.Sun.COM!exodus.Eng.Sun.COM!dogwalk.Eng.Sun.COM!herzog
- From: herzog@dogwalk.Eng.Sun.COM (Brian Herzog - SMCC System Software)
- Newsgroups: comp.sys.sun.misc,comp.windows.open-look
- Subject: Re: Seeking CG6 help.
- Message-ID: <l98m0fINNl99@exodus.Eng.Sun.COM>
- Date: 21 Aug 92 02:42:23 GMT
- References: <1992Aug20.104612.1@cc.utah.edu>
- Organization: Sun Microsystems, Mt. View, Ca.
- Lines: 52
- NNTP-Posting-Host: dogwalk
-
- In article <1992Aug20.104612.1@cc.utah.edu> eyring@cc.utah.edu writes:
- >Seeking CG6 HELP.
- >
- >We are looking for help in reading/writing directly to the frame buffer on the CG6.
- >The man pages hint that you can mmap the device. We need the specific offsets.
- >Any help or ideas on how to do this would be greatly appreciated. Any direction
- >to sources that already do this would help. Thanks in advance.
-
- This is considered anti-social behavior and is not supported.
-
- You are strongly encouraged to use a supported application programmer
- interface (API), which on SunView includes: Pixwin, SunPHIGS 1.x and
- GKS 3.x (I think); which on OpenWindows Version 2 includes:
- xlib, XGL 1.x, SunVision 1.0 and PostScript; and which on
- OpenWindows Version 3 includes: xlib, direct xlib, XGL 2.0,
- SunPHIGS 2.0, GKS 4.1 (I think), SunVision 1.2 and PostScript.
-
- By choosing the right API for your needs, you have an excellent chance of
- achieving close to 100% of raw hardware performance.
-
- Among the reasons why direct access is not supported:
-
- - applications which are ported directly to one frame buffer are not
- portable and do not work on any other frame buffer. Even if the
- developer is sure this is what s/he wants to do, the customers
- of such applications may think otherwise, except that they often
- assume Sun is at fault, not the developer. Everybody loses.
-
- - applications which are ported directly to a frame buffer are often
- very difficult to debug, especially with stateful frame buffers
- such as the CG6, which is very unfortunate, because such applications
- are often very buggy.
-
- - different versions of a given frame buffer may have different
- register offsets, etc. The supported APIs know how to take this
- into account. A developer with soem arbitrary version of the frame
- buffer doesn't. Result: an application which fails on some versions
- of a given frame buffer, in which case the customer often assumes
- Sun is at fault, rather than the developer. Everybody loses.
-
- - it's a pain to document and support direct access to a stateful
- frame buffer, especially one with many different flavors and
- revisions. Hint: CG6 fits this category. Epitomizes it, even.
-
- If you have an application that absolutely must have direct hardware
- acess, and you're really serious, you do have the option to pay $75k
- (or whatever) for source and go have a ball.
-
- --
- ------------------------------------------------------------------------------
- Disclaimer: I do not represent Sun Microsystems, Inc., etc., etc.
- Brian Herzog, SMCC herzog@Eng.Sun.COM ....!sun!eng!herzog
-