BsSubMesh.h 539 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include "BsCorePrerequisites.h"
  3. #include "BsDrawOps.h"
  4. namespace BansheeEngine
  5. {
  6. /**
  7. * @brief Data about a sub-mesh range and the type of primitives contained in the range.
  8. */
  9. struct BS_CORE_EXPORT SubMesh
  10. {
  11. SubMesh()
  12. : indexOffset(0), indexCount(0), drawOp(DOT_TRIANGLE_LIST)
  13. { }
  14. SubMesh(UINT32 indexOffset, UINT32 indexCount, DrawOperationType drawOp):
  15. indexOffset(indexOffset), indexCount(indexCount), drawOp(drawOp)
  16. { }
  17. UINT32 indexOffset;
  18. UINT32 indexCount;
  19. DrawOperationType drawOp;
  20. };
  21. }