[[SDL] file loading ... png 4 byte sdl surfaces
shadows at ihug.co.nz
Fri Apr 28 04:32:45 PDT 2000
using a png and loading into a sdl surface with imglib to use as an
opengl texture is the format abgr of the pixels or something wierd
I know that loading a bmp where there is 3 bytes / pixel its bgr and
I have to convert to rgb for opengl .. so can anyone tell me what the
pixel format is for 4 bytes/pixel ?
On Fri, 28 Apr 2000, you wrote:
> ahahah I tried it and it absolutely wastes it !!
> I suppose I could just do my hf's in gimp and read the height from
> the addition of the r g and b values ... then image formats wouldnt
> get stuffed up .
> png formats are 8 bits/channel ? because
> SDL_surfaces are 8 bits/channel in memory arent they ?
> Oliver Batchelor
> On Fri, 28 Apr 2000, you wrote:
> > What tga's do you have? If non compressed, then writing a functions which
> > loads them should be work of max 1h, because uncompressed tga format is
> > very simple- somthing like id, width, height, bits per pixel and raw
> > image data, if not, then maybe you just should convert them to another
> > format and load them with imglib or whatever.
> > Kovacs
> > On Fri, 28 Apr 2000, Oliver Batchelor wrote:
> > > Does anyone here know how to load a tga into a SDL surface?
> > > the sdl image lib doesnt seem to have it ...
> > >
More information about the SDL