1
0

SceneParameters.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. #pragma once
  5. #include "irrTypes.h"
  6. /*! \file SceneParameters.h
  7. \brief Header file containing all scene parameters for modifying mesh loading etc.
  8. This file includes all parameter names which can be set using ISceneManager::getParameters()
  9. to modify the behavior of plugins and mesh loaders.
  10. */
  11. namespace irr
  12. {
  13. namespace scene
  14. {
  15. //! Name of the parameter for changing how Irrlicht handles the ZWrite flag for transparent (blending) materials
  16. /** The default behavior in Irrlicht is to disable writing to the
  17. z-buffer for all really transparent, i.e. blending materials. This
  18. avoids problems with intersecting faces, but can also break renderings.
  19. If transparent materials should use the SMaterial flag for ZWriteEnable
  20. just as other material types use this attribute.
  21. Use it like this:
  22. \code
  23. SceneManager->getParameters()->setAttribute(scene::ALLOW_ZWRITE_ON_TRANSPARENT, true);
  24. \endcode
  25. **/
  26. const c8 *const ALLOW_ZWRITE_ON_TRANSPARENT = "Allow_ZWrite_On_Transparent";
  27. //! Flag to avoid loading group structures in .obj files
  28. /** Use it like this:
  29. \code
  30. SceneManager->getParameters()->setAttribute(scene::OBJ_LOADER_IGNORE_GROUPS, true);
  31. \endcode
  32. **/
  33. const c8 *const OBJ_LOADER_IGNORE_GROUPS = "OBJ_IgnoreGroups";
  34. //! Flag to avoid loading material .mtl file for .obj files
  35. /** Use it like this:
  36. \code
  37. SceneManager->getParameters()->setAttribute(scene::OBJ_LOADER_IGNORE_MATERIAL_FILES, true);
  38. \endcode
  39. **/
  40. const c8 *const OBJ_LOADER_IGNORE_MATERIAL_FILES = "OBJ_IgnoreMaterialFiles";
  41. } // end namespace scene
  42. } // end namespace irr