home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / msdos / programm / 10547 < prev    next >
Encoding:
Text File  |  1992-11-12  |  1.5 KB  |  38 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!mcsun!goya!oasis!mtl92205
  3. From: mtl92205@dit.upm.es (Pablo Varela)
  4. Subject: Re: HELP - Can't access SVGA from within C
  5. Message-ID: <1992Nov12.162836.2215@goya.uu.es>
  6. Sender: usenet@goya.uu.es
  7. Nntp-Posting-Host: oasis
  8. Organization: UUES, Asociacion de Usuarios de UNIX, Spain
  9. X-Newsreader: Tin 1.1 PL4
  10. References: <m}#@byu.edu>
  11. Date: Thu, 12 Nov 1992 16:28:36 GMT
  12. Lines: 24
  13.  
  14.     Hi!
  15.     About your problem with the 320*200*256 video mode, there is a very
  16. easy way to handle that.
  17.     - First you set the video mode using the vidoe interrupt (#10).
  18.     - Then, the screen is just a buffer of 64000 bytes (one per pixel)
  19. that starts at address 0A0000.
  20.     - Now, you know how to plot a single pixel (that doesn't help
  21. much, but it's a begining).
  22.     - There are lots of interesting algorithms to draw lines, circles,
  23. move blocks, put sprites, etc. (i have some, if you want them, just e-mail me)
  24.     - And last but not least, don't forget to restore your user's
  25. video mode (it's very annoying to find oneself at a 40*25 text screen).
  26.  
  27.     About your problem with the SVGA, I don't think there's a standard
  28. for SVGA, so you are in big trouble.
  29.  
  30.     Anyway, I think that somewhere somebody has written a BGI for some SVGA,you might be able to find it.
  31.  
  32.     Hope that I've been helpful,
  33.  
  34.                 Pablo Varela (mtl92205@oasis.dit.upm.es)
  35.                                      ^
  36.                                                                      |
  37.                                      that's Spain in Europe ---------+
  38.