BsDrawOps.h 565 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include "BsCorePrerequisites.h"
  3. namespace BansheeEngine
  4. {
  5. /**
  6. * @brief Describes operation that will be used for rendering a certain
  7. * set of vertices.
  8. */
  9. enum DrawOperationType
  10. {
  11. DOT_POINT_LIST = 1,
  12. DOT_LINE_LIST = 2,
  13. DOT_LINE_STRIP = 3,
  14. DOT_TRIANGLE_LIST = 4,
  15. DOT_TRIANGLE_STRIP = 5,
  16. DOT_TRIANGLE_FAN = 6
  17. };
  18. /**
  19. * @brief Converts the number of vertices to number of primitives
  20. * based on the specified draw operation.
  21. */
  22. UINT32 BS_CORE_EXPORT vertexCountToPrimCount(DrawOperationType type, UINT32 elementCount);
  23. }