Board index » delphi » Four ways scrolling on VGA / SVGA
Frode Stokseth
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
Frode Stokseth
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Four ways scrolling on VGA / SVGAI have a big problem, how can i scroll Sideways and Down/Up??? Please send a E-mail to: Henrik Stokseth on this E-Mail address: s...@sn.no Thanks for any information that will help me... |
Tobias Andersso
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Four ways scrolling on VGA / SVGAQuoteFrode Stokseth wrote: modeX. If you don't know how, go to http://x2ftp.oulu.fi/pub/msdos/programming and look for something like xlib*.* or modex*.*. You can also read "Asphyxia's vga trainers", which will explain modeX very good. I don't have the address at the moment, but go to a searchrobot and write "asphyxia" and // Tobias |
Amir Lopati
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Four ways scrolling on VGA / SVGAQuote> I have a big problem, how can i scroll Sideways and Down/Up??? algorithm is to store the location for everything as an offset from some anchor (which should be the the thing you are scrolling around). THen draw everythign realtive to that anchor. This way when the anchor moves evrythign scrolls. Don't forget to clip off screen objects though! Amir P.s. modeX is just a low-res graphics mode with built in page flipping, |
Trixter / Horn
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Four ways scrolling on VGA / SVGAIn article <4uahl5$...@cocoa.brown.edu>, Quote>P.s. modeX is just a low-res graphics mode with built in page flipping, Mode X (and its variant, Mode Y) is the slang term given by Michael Unchaining the video memory has a slight disadvantage: The memory - More video modes on a standard VGA, from 320x240 (square - The ability to pan across all of video memory, as if it - Horizontal split screen, with the lower half not affected - 2 or more video pages (by "panning" to an area of video - The ability to write up to four pixels at once with just In the "old days" of IBM PC demos, Mode X programming was the only - Texture mapping, "Phong" shading, and other modern effects - Local-bus video cards (VLB and PCI) can move video memory When you unchain, you are given access to all 256k of VGA RAM. The VGA then utilizes the plane method of color selection. Due to This is arranged according to the following formula: So, (0,0) would be at plane 0, offset 0. Pascal and C libraries for programming ModeX are at X-Mode Frequently Asked Questions - By Zoombapup (Phil) 12-Sept-94 Foreword Hmm, whats new this time?? Well, I am off the net for a coupla weeks, which is kinda hard :) Table of Contents 1) What is this FAQ and why should I read it?? Section 1 - What is this FAQ and why should I read it?? This FAQ (Frequently asked questions file) is here to provide the It is also a chance for the reader to find reference material If youre really desperate to find something, then maybe its a Section 2 - What IS mode-X?? Well, It has been mentioned that perhaps I should make it clear what Anyway, back to the text:- Over to Themie Gouthias for that one..... (original author of Xlib) Mode X is a derrivative of the VGA's standard mode 13h - Multiple graphics pages where mode 13h doesn't allowing for page - A planar video ram organization which although more difficult - Loads of other neat tricks associated with having multiple pages Please note BEFORE you go flooding Themie with email about Xlib Section 3 - How to set up mode x Here's the code needed to set up a tweaked 320*200*256-mode. --------------------------------------------------------------- mov ax, 0013h 2. Put the CHAIN4-mode of Sequencer off mov dx, 03C4h 3. Clear the video memory (setting mode 13h clears only every fourth byte mov ax, 0F02h Note: Parts 4 and 5 may need switching round, i.e. do part 5 first, then 4. Turn off the CRTC's LONG-mode mov dx, 03D4h 5. Turn on the CRTC's BYTE-mode mov ax, 0E317h And now you are in tweaked mode! mov ax, 4009h The last out is needed if you want to double the Y-resolution Many Thanks to jani for this, I've only just decided to include Section 4 - Source Code reference list Alright, this is probably THE most important part, in that this a) Information Sources Filename : xintro18.zip Where: simtel archives... usually Simtel Stuff can be gotten from oak.oakland.edu Description: XDiscuss (now called Xintro :)) is a really good description of read more » |