EPrimitiveTypes.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. namespace irr
  6. {
  7. namespace scene
  8. {
  9. //! Enumeration for all primitive types there are.
  10. enum E_PRIMITIVE_TYPE
  11. {
  12. //! All vertices are non-connected points.
  13. EPT_POINTS = 0,
  14. //! All vertices form a single connected line.
  15. EPT_LINE_STRIP,
  16. //! Just as LINE_STRIP, but the last and the first vertex is also connected.
  17. EPT_LINE_LOOP,
  18. //! Every two vertices are connected creating n/2 lines.
  19. EPT_LINES,
  20. //! After the first two vertices each vertex defines a new triangle.
  21. //! Always the two last and the new one form a new triangle.
  22. EPT_TRIANGLE_STRIP,
  23. //! After the first two vertices each vertex defines a new triangle.
  24. //! All around the common first vertex.
  25. EPT_TRIANGLE_FAN,
  26. //! Explicitly set all vertices for each triangle.
  27. EPT_TRIANGLES,
  28. //! The single vertices are expanded to quad billboards on the GPU.
  29. EPT_POINT_SPRITES
  30. };
  31. } // end namespace scene
  32. } // end namespace irr