jopepie2
11-11-2003, 03:01 AM
Hi,
Desperately need help..
The textures I want to use in my applications come from ABGR-data. Loading this data using glTexImage2D with GL_ABGR_EXT works fine, but then you're limited to 2^n sized textures, which is not what I desire (since resizing of the textures needs to be done easily and quickly).
The prefered method would be to use gluBuild2DMipmaps but for some reason the format GL_ABGR_EXT generates an 'invalid enumeration' error. I noticed that gluScaleImage has the same problem, so could it be that all glu-functions can't work with the ABGR-format?
Does anybody have an idea? Or does someone now of a way to change the format of the imagedata, without using a time-consuming operation like swapping the color bits?
Thanks,
Rogier
Desperately need help..
The textures I want to use in my applications come from ABGR-data. Loading this data using glTexImage2D with GL_ABGR_EXT works fine, but then you're limited to 2^n sized textures, which is not what I desire (since resizing of the textures needs to be done easily and quickly).
The prefered method would be to use gluBuild2DMipmaps but for some reason the format GL_ABGR_EXT generates an 'invalid enumeration' error. I noticed that gluScaleImage has the same problem, so could it be that all glu-functions can't work with the ABGR-format?
Does anybody have an idea? Or does someone now of a way to change the format of the imagedata, without using a time-consuming operation like swapping the color bits?
Thanks,
Rogier