12-30-2001, 03:42 PM
i am searching for an example of loading jpeg
textures into my opengl programm. can you give me some links? that would be very fine http://www.opengl.org/discussion_boards/ubb/smile.gif
thx in advance!
12-30-2001, 08:19 PM
Well, the obvious link would be http://developer.intel.com/software/products/perflib/ijl/index.htm .
As a sidenote, I hazard to take note that with Microsoft's release of GDI+, Windows now has an OO-API for loading JPEG, BMP, PNG, TIFF, GIF, X-EMF, X-WMF, and X-ICON files. It also supports saving in most of those formats as well. The class also supports arbitrary rescaling (with various filter options), making the job of making mip-maps quite trivial. Granted the GDI+ dll, (which must be shipped with your app and installed in the app directory, not the system directory), is over 1.5 MB which is considerably larger than the IJG static lib, or Intel's solution. Just thought I'd mention it if anyone has a need for supporting many of these different formats.
Edit: Just noticed the GDI+ redistributable Microsoft has on the Platform SDK website is a debug build. Now why Microsoft wants us to redistribute a debug build of the dll with an app that uses GDI+ is beyond me. Wish they would have mentioned it was a debug build rather than me accidently discovering it in the Dependency Walker.
[This message has been edited by DFrey (edited 12-30-2001).]
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.