PDA

View Full Version : Read a TIFF with OpenGL?



Rain
03-02-2004, 12:27 AM
Hi, everyone! Who could tell me how to read a TIFF image with OpenGL? Are there any good ways to show easyly the TIFF image to a viewport?

kehziah
03-02-2004, 01:13 PM
Originally posted by Rain:
Hi, everyone! Who could tell me how to read a TIFF image with OpenGL? Are there any good ways to show easyly the TIFF image to a viewport?
reading a TIFF file is not in the scope of OpenGL. Use a specific lib for this (eg libtiff - www.libtiff.org) (http://www.libtiff.org))
Then, when you have your image ready, you can pass it to OpenGL either through the texture mechanism or the pixel path.