home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / rec / games / programm / 5172 < prev    next >
Encoding:
Text File  |  1992-12-23  |  1.1 KB  |  29 lines

  1. Newsgroups: rec.games.programmer
  2. Path: sparky!uunet!gatech!destroyer!cs.ubc.ca!uw-beaver!news.u.washington.edu!hardy.u.washington.edu!kludge
  3. From: kludge@hardy.u.washington.edu (Kludge)
  4. Subject: Re: xlib04 & scrolling
  5. Message-ID: <1992Dec24.010024.2497@u.washington.edu>
  6. Sender: news@u.washington.edu (USENET News System)
  7. Organization: University of Washington, Seattle
  8. References: <1h8k64INN271@ub.d.umn.edu>
  9. Date: Thu, 24 Dec 1992 01:00:24 GMT
  10. Lines: 17
  11.  
  12. In article <1h8k64INN271@ub.d.umn.edu> cbusch@ub.d.umn.edu (Chris) writes:
  13. >
  14. >   Is "real" scrolling available thru xlib04 graphics library.  My
  15. >question boils down to this:  is there 4 different VRAM move routines,
  16. >one for each direction?  Instead of just a showpage(int) routine that
  17. >respositions the virtual screen.
  18. >
  19. >-cbusch@ub.d.umn.edu
  20.  
  21.  
  22.   No - it's not necessary.  There's a couple of routines that can do what
  23. you want: x_cp_vid_rect() and x_shift_rect().  Use the second one for
  24. scrolling, since it won't overwrite what it hasn't written yet.  
  25. NOTE: It will *not* do smooth x-coord. scrolling - the x coordinates you
  26. give it are rounded to the nearest 4 pixels.
  27.  
  28.                                 --Kludge
  29.