BsDrawOps.h 607 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include "BsCorePrerequisites.h"
  3. namespace BansheeEngine
  4. {
  5. /** @addtogroup RenderAPI
  6. * @{
  7. */
  8. /** Describes operation that will be used for rendering a certain set of vertices. */
  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. /** Converts the number of vertices to number of primitives based on the specified draw operation. */
  19. UINT32 BS_CORE_EXPORT vertexCountToPrimCount(DrawOperationType type, UINT32 elementCount);
  20. /** @} */
  21. }