| 1234567891011121314151617181920212223242526 |
- #pragma once
- #include "BsCorePrerequisites.h"
- #include "BsDrawOps.h"
- namespace BansheeEngine
- {
- /**
- * @brief Contains a data about sub-mesh range and the type of
- * primitives contained in the range.
- */
- struct BS_CORE_EXPORT SubMesh
- {
- SubMesh()
- : indexOffset(0), indexCount(0), drawOp(DOT_TRIANGLE_LIST)
- { }
- SubMesh(UINT32 indexOffset, UINT32 indexCount, DrawOperationType drawOp):
- indexOffset(indexOffset), indexCount(indexCount), drawOp(drawOp)
- { }
- UINT32 indexOffset;
- UINT32 indexCount;
- DrawOperationType drawOp;
- };
- }
|