BsSubMesh.h 905 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. #include "BsDrawOps.h"
  7. namespace BansheeEngine
  8. {
  9. /**
  10. * @brief Contains a data about sub-mesh range and the type of
  11. * primitives contained in the range.
  12. */
  13. struct BS_CORE_EXPORT SubMesh
  14. {
  15. SubMesh()
  16. : indexOffset(0), indexCount(0), drawOp(DOT_TRIANGLE_LIST)
  17. { }
  18. SubMesh(UINT32 indexOffset, UINT32 indexCount, DrawOperationType drawOp):
  19. indexOffset(indexOffset), indexCount(indexCount), drawOp(drawOp)
  20. { }
  21. UINT32 indexOffset;
  22. UINT32 indexCount;
  23. DrawOperationType drawOp;
  24. };
  25. }