[SDL] SDL/OpenGL and texture mapping.
knghtbrd at bluecherry.net
Wed Sep 11 04:29:01 PDT 2002
On Wed, Sep 11, 2002 at 01:16:53PM +0800, paul at theV.net wrote:
> My guess the problem of using surfaces returned by SDL_LoadBMP()
> or IMG_Load() as GL texture source is mainly something to do with
> different surface encoding format. SDL may not return the ideal
> RGB or RGBA format that GL expects. It is the same reason why a
> SDL_DisplayFormat() or SDL_DisplayFormatAlpha() would speed up
> blitting to the main screen surface. I am not very sure after you
> enable OpenGL with SDL, SDL_DisplayFormat() will do the right
> conversion work to ease texture loading for you... can somebody
> verify and confirm this?
I can refute it. I raised this issue, Sam asked me to submit a patch, and
it seems to have gotten lost in the list noise.
Joseph Carter <knghtbrd at bluecherry.net> No conceit in my family
* Caytln slaps Lisa
<Caytln> catfight :P
<LisaHere> Watch it girl, I like that.
<Caytln> figures :D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 273 bytes
Desc: not available
More information about the SDL