BsSubMesh.h 554 B

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