EMeshWriterEnums.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. // Copyright (C) 2002-2012 Nikolaus Gebhardt
  2. // This file is part of the "Irrlicht Engine".
  3. // For conditions of distribution and use, see copyright notice in irrlicht.h
  4. #ifndef IRR_E_MESH_WRITER_ENUMS_H_INCLUDED
  5. #define IRR_E_MESH_WRITER_ENUMS_H_INCLUDED
  6. #include "irrTypes.h"
  7. namespace irr
  8. {
  9. namespace scene
  10. {
  11. //! An enumeration for all supported types of built-in mesh writers
  12. /** A scene mesh writers is represented by a four character code
  13. such as 'irrm' or 'coll' instead of simple numbers, to avoid
  14. name clashes with external mesh writers.*/
  15. enum EMESH_WRITER_TYPE
  16. {
  17. //! Irrlicht native mesh writer, for static .irrmesh files.
  18. EMWT_IRR_MESH = MAKE_IRR_ID('i','r','r','m'),
  19. //! COLLADA mesh writer for .dae and .xml files
  20. EMWT_COLLADA = MAKE_IRR_ID('c','o','l','l'),
  21. //! STL mesh writer for .stl files
  22. EMWT_STL = MAKE_IRR_ID('s','t','l',0),
  23. //! OBJ mesh writer for .obj files
  24. EMWT_OBJ = MAKE_IRR_ID('o','b','j',0),
  25. //! PLY mesh writer for .ply files
  26. EMWT_PLY = MAKE_IRR_ID('p','l','y',0),
  27. //! B3D mesh writer, for static .b3d files
  28. EMWT_B3D = MAKE_IRR_ID('b', '3', 'd', 0)
  29. };
  30. //! flags configuring mesh writing
  31. enum E_MESH_WRITER_FLAGS
  32. {
  33. //! no writer flags
  34. EMWF_NONE = 0,
  35. //! write lightmap textures out if possible
  36. //! Currently not used by any Irrlicht mesh-writer
  37. // (Note: User meshwriters can still use it)
  38. EMWF_WRITE_LIGHTMAPS = 0x1,
  39. //! write in a way that consumes less disk space
  40. // (Note: Mainly there for user meshwriters)
  41. EMWF_WRITE_COMPRESSED = 0x2,
  42. //! write in binary format rather than text
  43. EMWF_WRITE_BINARY = 0x4
  44. };
  45. } // end namespace scene
  46. } // end namespace irr
  47. #endif // IRR_E_MESH_WRITER_ENUMS_H_INCLUDED