home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / atari / st / tech / 4503 < prev    next >
Encoding:
Text File  |  1992-08-20  |  1.1 KB  |  30 lines

  1. Newsgroups: comp.sys.atari.st.tech
  2. Path: sparky!uunet!mnemosyne.cs.du.edu!nyx!ilepore
  3. From: ilepore@nyx.cs.du.edu (Ian Lepore)
  4. Subject: Re: access to the screen using C?
  5. Message-ID: <1992Aug21.020331.5959@mnemosyne.cs.du.edu>
  6. Sender: usenet@mnemosyne.cs.du.edu (netnews admin account)
  7. Organization: University of Denver, Dept. of Math & Comp. Sci.
  8. References: <Bt3wAD.DCq@iat.holonet.net>
  9. Date: Fri, 21 Aug 92 02:03:31 GMT
  10. Lines: 18
  11.  
  12. Organization: Nyx, Public Access Unix at U. of Denver Math/CS dept.
  13. X-Disclaimer: Nyx is a public access Unix system run by the University
  14.     of Denver for the Denver community.  The University has neither
  15.     control over nor responsibility for the opinions of users.
  16.  
  17.  > how do I get a pointer to the screen?
  18.  
  19.    void *screen = (void *)Logbase();
  20.  
  21.  That's all there is to it.  Oh, you've got to #include <osbind.h>.  The
  22. pointer type doesn't have to be void*; char* or short* or whatever you 
  23. want will work fine.  Details of accessing screen memory are semi-complex,
  24. due to the interleaved bitplane pixel organization.
  25.  
  26. --
  27. - Ian
  28. (void *) where prohibited by law
  29.  
  30.