[SDL] SDL stretching surfaces
nbasili at ceid.upatras.gr
Thu Sep 26 03:12:00 PDT 2002
On 25 Sep 2002, DrEvil wrote:
> On Wed, 2002-09-25 at 10:42, Vasileiou Nikolaos wrote:
> > Hi,
> > Is there any way to stretch (resize) an SDL Surface?
> > It is quite usefull for making a surface combatible for usage as an
> > openGL texture which is not power of two.
> Some texture resampling code for resampling -- BSD license:
> Example of how to use it (don't copy and paste this code, just read it
> to see how to use the resampling code -- iD Software License):
> Look for this function:
> In this link:
> That's the way I do it for GtkRadiant, to resample textures to a power
> of 2 size. I'm sure it could be done better. But that works quite well.
> SDL mailing list
> SDL at libsdl.org
More information about the SDL