[SDL] OpenGL, drawing from a texture to another texture
atrix2 at cox.net
Tue Sep 30 02:20:01 PDT 2003
I thought w/ the latest release of SDL there was PBuffer support?
----- Original Message -----
From: "<- Chameleon ->" <cham_gss at hotmail.com>
To: <sdl at libsdl.org>
Sent: Monday, September 29, 2003 6:08 AM
Subject: Re: [SDL] OpenGL, drawing from a texture to another texture
> > What would people suggest as the best method for copying a section of
> > a texture to a section of another texture?
> glTexSubImage*() -> memory to texture
> glGetTexImage() -> texture to memory
> > pbuffers? If so, how? And if I use them, does it mean I can't use
> > them under Linux, when I port my applications?
> Its platform specific
> > A problem I've found so far is that because my y coordinates are
> > essentially inverted as far as OpenGL is concerned, I have to draw the
> > image flipped before being able to copy it correctly. This is fine,
> > but a bit of a pain to have to do.
> If your picture is a texture is to easy to draw it correct.
> Else use glDrawPixels() with correct glPixelZoom() parameters to invert
> SDL mailing list
> SDL at libsdl.org
More information about the SDL