Fastest ways to Rotate and Scroll a Surface

Hi All,
A couple of questions…

  1. What is the fastest way to rotate a Surface using SDL?

  2. Similarly if I needed to scroll a surface in the X, Y direction to
    simulate parralax scrolling. Is there a method that would be the fastest.

Thanks,

Dominique
http://www.DelphiGamer.com := for all your Object Pascal game
development needs;

See PowerPack in libraries link on libsdl website.

“Dominique Louis” a ?crit dans le message
news: mailman.1004212866.32486.sdl at libsdl.org

Hi All,
A couple of questions…

  1. What is the fastest way to rotate a Surface using SDL?

  2. Similarly if I needed to scroll a surface in the X, Y direction to
    simulate parralax scrolling. Is there a method that would be the fastest.
    The second point: use the clipping, to clip part of the real size of your
    surface,
    then move your surface by bliitling …

Jocelyn.>

Thanks,

Dominique
http://www.DelphiGamer.com := for all your Object Pascal game
development needs;

Hi All,
A couple of questions…

  1. What is the fastest way to rotate a Surface using SDL?

(Not what you’re looking for, I guess, but h/w accelerated OpenGL is the
fastest way currently, by far. :slight_smile:

  1. Similarly if I needed to scroll a surface in the X, Y direction to
    simulate parralax scrolling. Is there a method that would be the
    fastest.

There are many ways, depending on what kind of graphics you need, number
of parallex levels, background/sprite area ratio etc. You can check out
the parallax scrolling examples that were the result of bouncing a simple
examlpe around this list some time ago:

http://olofson.net/mixed.html

(Note that the third version is meant to demonstrate a zero overdraw
rendering technique - the implementation is not optimized for speed, and
would be dog slow with “normal” tile sizes, due to the brute force
recursive rectangle splitting. Unless your “parallax effect” appears only
in a few holes in the background, that is. :slight_smile:

//David Olofson — Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------------> http://www.linuxdj.com/maia -' .- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |-------------------------------------> http://olofson.net -'On Saturday 27 October 2001 22:00, Dominique Louis wrote: