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