BsDrawOps.h 916 B

1234567891011121314151617181920212223242526272829
  1. //__________________________ Banshee Project - A modern game development toolkit _________________________________//
  2. //_____________________________________ www.banshee-project.com __________________________________________________//
  3. //________________________ Copyright (c) 2014 Marko Pintera. All rights reserved. ________________________________//
  4. #pragma once
  5. #include "BsCorePrerequisites.h"
  6. namespace BansheeEngine
  7. {
  8. /**
  9. * @brief Describes operation that will be used for rendering a certain
  10. * set of vertices.
  11. */
  12. enum DrawOperationType
  13. {
  14. DOT_POINT_LIST = 1,
  15. DOT_LINE_LIST = 2,
  16. DOT_LINE_STRIP = 3,
  17. DOT_TRIANGLE_LIST = 4,
  18. DOT_TRIANGLE_STRIP = 5,
  19. DOT_TRIANGLE_FAN = 6
  20. };
  21. /**
  22. * @brief Converts the number of vertices to number of primitives
  23. * based on the specified draw operation.
  24. */
  25. UINT32 BS_CORE_EXPORT vertexCountToPrimCount(DrawOperationType type, UINT32 elementCount);
  26. }