[SDL] Official rotation and scaling functions?
James Buchwald
jamestheprogrammer at gmail.com
Fri Jun 8 10:05:00 PDT 2007
Well, there is the SDL_gfx library... it has built-in rotozoomer functions
that you can use to scale and rotate.
The other thing is that OpenGL is compatible on computers without hardware
acceleration, right? It slows down a lot, because you do a lot of extra work
on the CPU, but it would still work... Windows comes standard with OpenGL
drivers, and Linux has Mesa. Also, for rotating and scaling, just about any
3D graphics card with any OpenGL features at all will work - the
incompatibilities come from OpenGL extensions. Rotating and scaling is just
a key part of all 3D graphics.
On 6/8/07, mal content <artifact.one at googlemail.com> wrote:
>
> Hello.
>
> I realise this may be one of those questions that gets
> asked repeatedly, but I couldn't find an answer in the
> archives.
>
> Is it likely that SDL will ever sprout scaling and
> rotation functions for surfaces?
>
> I find myself wanting to use OpenGL for everything due
> to the fact that I'd have to implement a ton of scaling
> and rotation code otherwise and I don't know of any
> existing library that takes pre-allocation into account
> (I tend to allocate as much memory as possible up-front,
> so allocating and then deallocating a surface just to do a
> rotation isn't acceptable). Of course the massive
> disadvantage of using OpenGL is that it makes the
> program unusable on any machine lacking acceleration.
> Annoying when I'm not even doing "3D", to speak of.
>
> I'd love to see this in SDL. I'm surprised that they
> don't already exist as these features are so fundamental
> to most multimedia/game projects.
>
> thanks,
> MC
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
--
"If you see somebody who you don't know getting into a crop duster that
doesn't belong to you, report them." -- President George W. Bush
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070608/039b651c/attachment.html
More information about the SDL
mailing list