Archived

This topic is now archived and is closed to further replies.

scegielski

Loading DDS images with cygwin gcc compiler

Recommended Posts

I am trying to find example code that loads a DDS image and does not need the ddraw.h file so that it can be compiled with gcc under cygwin and possible Linux. All the examples I''ve seen need the ddraw.h header since they refer to the DDSURFACEDESC2 structure. It would be a shame if the DDS file format was not cross platform compatible.

Share this post


Link to post
Share on other sites
http://cvs1.nvidia.com/DEMOS/OpenGL/inc/shared/nv_dds.h
http://cvs1.nvidia.com/DEMOS/OpenGL/src/shared/nv_dds.cpp

Works under Windows, Linux, Free BSD, and Mac OS X. Should work fine on other UNIX based platforms, only tested with these OS's though.


[edited by - Jallen on September 1, 2003 7:59:39 PM]

Share this post


Link to post
Share on other sites