BsSubMesh.h 833 B

123456789101112131415161718192021222324252627282930
  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. namespace bs
  6. {
  7. /** @addtogroup RenderAPI
  8. * @{
  9. */
  10. /** Data about a sub-mesh range and the type of primitives contained in the range. */
  11. struct BS_CORE_EXPORT BS_SCRIPT_EXPORT(pl:true,m:Rendering) SubMesh
  12. {
  13. SubMesh()
  14. : indexOffset(0), indexCount(0), drawOp(DOT_TRIANGLE_LIST)
  15. { }
  16. SubMesh(UINT32 indexOffset, UINT32 indexCount, DrawOperationType drawOp):
  17. indexOffset(indexOffset), indexCount(indexCount), drawOp(drawOp)
  18. { }
  19. UINT32 indexOffset;
  20. UINT32 indexCount;
  21. DrawOperationType drawOp;
  22. };
  23. /** @} */
  24. }