Loading DDS images with cygwin gcc compiler

Started by
1 comment, last by scegielski 20 years, 7 months ago
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.
Advertisement
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]
---I write code.DelphiGL (http://delphigl.cfxweb.net)
Thanks, those files explain it all

This topic is closed to new replies.

Advertisement