filetype.h
上传用户:center1979
上传日期:2022-07-26
资源大小:50633k
文件大小:1k
源码类别:

OpenGL

开发平台:

Visual C++

  1. // filetype.h
  2. //
  3. // Copyright (C) 2001, Chris Laurel <claurel@shatters.net>
  4. //
  5. // This program is free software; you can redistribute it and/or
  6. // modify it under the terms of the GNU General Public License
  7. // as published by the Free Software Foundation; either version 2
  8. // of the License, or (at your option) any later version.
  9. #ifndef _FILETYPE_H_
  10. #define _FILETYPE_H_
  11. #include <string>
  12. enum ContentType {
  13.     Content_JPEG                   = 1,
  14.     Content_BMP                    = 2,
  15.     Content_GIF                    = 3,
  16.     Content_PNG                    = 4,
  17.     Content_Targa                  = 5,
  18.     Content_CelestiaTexture        = 6,
  19.     Content_3DStudio               = 7,
  20.     Content_CelestiaMesh           = 8,
  21.     Content_AVI                    = 9,
  22.     Content_CelestiaCatalog        = 10,
  23.     Content_DDS                    = 11,
  24.     Content_CelestiaStarCatalog    = 12,
  25.     Content_CelestiaDeepSkyCatalog = 13,
  26.     Content_CelestiaScript         = 14,
  27.     Content_CelestiaLegacyScript   = 15,
  28.     Content_CelestiaModel          = 16,
  29.     Content_DXT5NormalMap          = 17,
  30.     Content_CelestiaXYZTrajectory  = 18,
  31.     Content_CelestiaXYZVTrajectory = 19,
  32.     Content_CelestiaParticleSystem = 20,
  33.     Content_Unknown                = -1,
  34. };
  35. ContentType DetermineFileType(const std::string& filename);
  36. #endif // _FILETYPE_H_