BsSubMesh.h 829 B

12345678910111213141516171819202122232425262728293031
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsCorePrerequisites.h"
  5. #include "BsDrawOps.h"
  6. namespace BansheeEngine
  7. {
  8. /** @addtogroup RenderAPI
  9. * @{
  10. */
  11. /** Data about a sub-mesh range and the type of primitives contained in the range. */
  12. struct BS_CORE_EXPORT SubMesh
  13. {
  14. SubMesh()
  15. : indexOffset(0), indexCount(0), drawOp(DOT_TRIANGLE_LIST)
  16. { }
  17. SubMesh(UINT32 indexOffset, UINT32 indexCount, DrawOperationType drawOp):
  18. indexOffset(indexOffset), indexCount(indexCount), drawOp(drawOp)
  19. { }
  20. UINT32 indexOffset;
  21. UINT32 indexCount;
  22. DrawOperationType drawOp;
  23. };
  24. /** @} */
  25. }