home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / aix / 8081 < prev    next >
Encoding:
Text File  |  1992-07-22  |  1.9 KB  |  50 lines

  1. Path: sparky!uunet!wupost!cs.utexas.edu!ut-emx!ccwf.cc.utexas.edu
  2. From: ddt@ccwf.cc.utexas.edu (David Taylor)
  3. Newsgroups: comp.unix.aix
  4. Subject: AARRRRGG!  No one can answer this question!!!
  5. Message-ID: <76399@ut-emx.uucp>
  6. Date: 23 Jul 92 03:29:15 GMT
  7. Sender: news@ut-emx.uucp
  8. Organization: The University of Texas at Austin, Austin TX
  9. Lines: 39
  10.  
  11. Oh god, I want to kill someone.
  12.  
  13. All I ever wanted was direct access to the frame buffer (skyway).  I
  14. want a pointer to the upper left hand corner of the screen called:
  15.  
  16.                            char *screen;
  17.  
  18. And I want a magic routine or set of routines to stick the right address
  19. in that pointer so that if I did the following:
  20.  
  21.                   *(screen + y * 1280 + x) = 23;
  22.  
  23. it would stick pixel value 23 in the location (x,y) on a screen with a
  24. width of 1280.
  25.  
  26. I found out about the GAI (Graphics Adapter Interface) library, and I
  27. started trying to get ahold of the documentation.  Several months
  28. later, I was led to the ellusive IBM GAI Guard Dogs who riddle you with
  29. questions trying to get you to justify its use before they release the
  30. docs.  After doing this, about a week later, I received the docs.  In
  31. all 326 pages of this damned documentation, I could not find ANYTHING
  32. which mentioned ANYTHING about a pointer to the frame buffer.
  33.  
  34. In desparation, I wrote a program which tried to stick a picture in
  35. memory locations ranging from 0x0000000 to 0xffffffff to no avail.
  36.  
  37. One of the GAI Guard Dogs told me on the phone that the screen isn't
  38. memory mapped.  Can this be true or was this guy trying to get rid of
  39. me?!?!??!!  Were the IBM developers so boneheaded as to *not* memory
  40. map the display?  Help!  I'm in a sea of ignorance, and I can't get
  41. smart!
  42.  
  43. Does ANYBODY KNOW HOW TO DO THIS?  Big wet kisses to the soles of your
  44. shoes if you can help me!
  45.  
  46. Of course, I don't need to mention that this is trivial and rather
  47. well-documented on a Sun workstation.
  48.  
  49.     =-ddt->
  50.