[SDL] glRotate before RenderCopy

Kenneth Bull llubnek at gmail.com
Sun May 16 09:38:07 PDT 2010


On 15 May 2010 23:12, David Roguin <nesdavid at gmail.com> wrote:
> Hi,
>
> I was looking for some way to rotate a texture, (I know there's no roattion
> API yet); but i was wondering why using a glRotatef berfore SDL_RenderCopy
> doesn't do the trick.
> Why is that in GL_RenderCopy there's no glTranslate and glVertex points the
> texture at an absolute position?
> Wouldn't it be easier to add the RenderCopyRotated if glTranslate is being
> used and the glVertex is always in relative positions?
>
> --
> David

Try rotozoom in SDL_gfx ( http://www.ferzkopp.net/joomla/content/view/19/14/ )



More information about the SDL mailing list