Hi,
I'm searching the best way to loads texture for using with opengl. For the moment, i'm using the Ole library, which does not increase a lot the exe's size, but i'm not sure if this is the best way to do, it's working, but some textures with some computers are not loaded, do you think it's not supported in all os ? should i change my method ?
thx for the advice !
Gaetan
Best way to loads texture
Re: Best way to loads texture
From MSDN:
Depending on the version of the ole dll, you can also load other formats
like GIF or JPEG. AFAIK the IE-Version is the determining factor here but
don't quote me on this.
Personally, I use OleLoadPicture() almost all of the time and never found
a single computer where it refused to work.
Maybe the problems you have lies somewhere else?
In your 3DS-Test I noticed you're using 512x512 textures, which is way too
big for a lot of older graphic-cards.
Code: Select all
Remarks
The stream must be in BMP (bitmap), WMF (metafile), or ICO (icon) format.
Requirements
Windows NT/2000/XP: Requires Windows NT 4.0 or later.
Windows 95/98: Requires Windows 95 or later.
Header: Declared in olectl.h.
Import Library: Included as a resource in olepro32.dll.
like GIF or JPEG. AFAIK the IE-Version is the determining factor here but
don't quote me on this.
Personally, I use OleLoadPicture() almost all of the time and never found
a single computer where it refused to work.
Maybe the problems you have lies somewhere else?
In your 3DS-Test I noticed you're using 512x512 textures, which is way too
big for a lot of older graphic-cards.
Good programmers don't comment their code. It was hard to write, should be hard to read.
I've reinstalled windows xp recently, and i tried running one example of mine with microsoft provided drivers, and some textures were not loaded (and the speed was bad), then after upgrading with nvidia drivers, the textures came up ! Maybe it comes from a GL call that is not done right when i load the texture, i'll see 

