ESceneNodeTypes.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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 __E_SCENE_NODE_TYPES_H_INCLUDED__
  5. #define __E_SCENE_NODE_TYPES_H_INCLUDED__
  6. #include "irrTypes.h"
  7. namespace irr
  8. {
  9. namespace scene
  10. {
  11. //! An enumeration for all types of built-in scene nodes
  12. /** A scene node type is represented by a four character code
  13. such as 'cube' or 'mesh' instead of simple numbers, to avoid
  14. name clashes with external scene nodes.*/
  15. enum ESCENE_NODE_TYPE
  16. {
  17. //! of type CSceneManager (note that ISceneManager is not(!) an ISceneNode)
  18. ESNT_SCENE_MANAGER = MAKE_IRR_ID('s','m','n','g'),
  19. //! simple cube scene node
  20. ESNT_CUBE = MAKE_IRR_ID('c','u','b','e'),
  21. //! Sphere scene node
  22. ESNT_SPHERE = MAKE_IRR_ID('s','p','h','r'),
  23. //! Text Scene Node
  24. ESNT_TEXT = MAKE_IRR_ID('t','e','x','t'),
  25. //! Water Surface Scene Node
  26. ESNT_WATER_SURFACE = MAKE_IRR_ID('w','a','t','r'),
  27. //! Terrain Scene Node
  28. ESNT_TERRAIN = MAKE_IRR_ID('t','e','r','r'),
  29. //! Sky Box Scene Node
  30. ESNT_SKY_BOX = MAKE_IRR_ID('s','k','y','_'),
  31. //! Sky Dome Scene Node
  32. ESNT_SKY_DOME = MAKE_IRR_ID('s','k','y','d'),
  33. //! Shadow Volume Scene Node
  34. ESNT_SHADOW_VOLUME = MAKE_IRR_ID('s','h','d','w'),
  35. //! Octree Scene Node
  36. ESNT_OCTREE = MAKE_IRR_ID('o','c','t','r'),
  37. //! Mesh Scene Node
  38. ESNT_MESH = MAKE_IRR_ID('m','e','s','h'),
  39. //! Light Scene Node
  40. ESNT_LIGHT = MAKE_IRR_ID('l','g','h','t'),
  41. //! Empty Scene Node
  42. ESNT_EMPTY = MAKE_IRR_ID('e','m','t','y'),
  43. //! Dummy Transformation Scene Node
  44. ESNT_DUMMY_TRANSFORMATION = MAKE_IRR_ID('d','m','m','y'),
  45. //! Camera Scene Node
  46. ESNT_CAMERA = MAKE_IRR_ID('c','a','m','_'),
  47. //! Billboard Scene Node
  48. ESNT_BILLBOARD = MAKE_IRR_ID('b','i','l','l'),
  49. //! Animated Mesh Scene Node
  50. ESNT_ANIMATED_MESH = MAKE_IRR_ID('a','m','s','h'),
  51. //! Particle System Scene Node
  52. ESNT_PARTICLE_SYSTEM = MAKE_IRR_ID('p','t','c','l'),
  53. //! Quake3 Shader Scene Node
  54. ESNT_Q3SHADER_SCENE_NODE = MAKE_IRR_ID('q','3','s','h'),
  55. //! Quake3 Model Scene Node ( has tag to link to )
  56. ESNT_MD3_SCENE_NODE = MAKE_IRR_ID('m','d','3','_'),
  57. //! Volume Light Scene Node
  58. ESNT_VOLUME_LIGHT = MAKE_IRR_ID('v','o','l','l'),
  59. //! Maya Camera Scene Node
  60. /** Legacy, for loading version <= 1.4.x .irr files */
  61. ESNT_CAMERA_MAYA = MAKE_IRR_ID('c','a','m','M'),
  62. //! First Person Shooter Camera
  63. /** Legacy, for loading version <= 1.4.x .irr files */
  64. ESNT_CAMERA_FPS = MAKE_IRR_ID('c','a','m','F'),
  65. //! Unknown scene node
  66. ESNT_UNKNOWN = MAKE_IRR_ID('u','n','k','n'),
  67. //! Will match with any scene node when checking types
  68. ESNT_ANY = MAKE_IRR_ID('a','n','y','_')
  69. };
  70. } // end namespace scene
  71. } // end namespace irr
  72. #endif