leeriver
11-05-2005, 04:32 PM
I use tifflib LibTIFF TIFF Library
My GL effect anticlockwise ,but render tiff file is widdershins.I render tga file is well!
Any suggestions? Thanks in advance.
code:
glReadBuffer(GL_BACK);
glReadPixels(0, 0, _width, _height, GL_RGBA, GL_UNSIGNED_BYTE, data);
...
TIFFWriteEncodedStrip(tif, 0, raster, _width * _height *4);
My GL effect anticlockwise ,but render tiff file is widdershins.I render tga file is well!
Any suggestions? Thanks in advance.
code:
glReadBuffer(GL_BACK);
glReadPixels(0, 0, _width, _height, GL_RGBA, GL_UNSIGNED_BYTE, data);
...
TIFFWriteEncodedStrip(tif, 0, raster, _width * _height *4);