Hardware scrolling

Couldn’t be possible, with SDL, to create a large surface, and display only
a part of it, with the possibility of moving the visible rectangle(hardware
scrolling)?–
Marco Iannaccone
@Marco_Iannaccone
ICQ UIN: 18748121 MetalCoder

"What is real? How do you define real? If you’re talking about your senses,
what you feel, taste,
smell, or see, then all you’re talking about are electrical signals
interpreted by your brain."
Morpheus - The Matrix

Yes, it seems possible on some targets, but it’s not supported by SDL 1.2.

Should fit into the 1.3 API I guess, and from there it’s “just” about
figuring out how to get various platforms to do it, or emulate it
efficiently. (For example, VRAM->VRAM “move” blitting + edge updates could
work in some cases.)

//David

.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------> http://www.linuxaudiodev.com/maia -' .- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |--------------------------------------> david at linuxdj.com -'On Tuesday 27 March 2001 21:48, Marco Iannaccone wrote:

Couldn’t be possible, with SDL, to create a large surface, and display only
a part of it, with the possibility of moving the visible rectangle(hardware
scrolling)?

Couldn’t be possible, with SDL, to create a large surface, and display only
a part of it, with the possibility of moving the visible rectangle(hardware
scrolling)?

Yes. This is one of the things we want to allow with the new API.

I’m actually really curious how you would do this with DirectX 8.

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Yes, that’s what I do in Tux Typing (for the main title screen). It’s not very
efficient, tho, and there have been several other great examples on this list
already about doing it via less wasteful means.On Tue, 27 Mar 2001, you wrote:

Couldn’t be possible, with SDL, to create a large surface, and display only
a part of it, with the possibility of moving the visible rectangle(hardware
scrolling)?


Sam “Criswell” Hart <@Sam_Hart> AIM, Yahoo!:
Homepage: < http://www.geekcomix.com/snh/ >
PGP Info: < http://www.geekcomix.com/snh/contact/ >
Advogato: < http://advogato.org/person/criswell/ >