1 | //************************************ bs::framework - Copyright 2018 Marko Pintera **************************************// |
---|---|
2 | //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// |
3 | #pragma once |
4 | |
5 | #include "BsCorePrerequisites.h" |
6 | |
7 | namespace bs |
8 | { |
9 | /** @addtogroup RenderAPI |
10 | * @{ |
11 | */ |
12 | |
13 | /** Data about a sub-mesh range and the type of primitives contained in the range. */ |
14 | struct BS_CORE_EXPORT BS_SCRIPT_EXPORT(pl:true,m:Rendering) SubMesh |
15 | { |
16 | SubMesh() = default; |
17 | |
18 | SubMesh(UINT32 indexOffset, UINT32 indexCount, DrawOperationType drawOp): |
19 | indexOffset(indexOffset), indexCount(indexCount), drawOp(drawOp) |
20 | { } |
21 | |
22 | UINT32 indexOffset = 0; |
23 | UINT32 indexCount = 0; |
24 | DrawOperationType drawOp = DOT_TRIANGLE_LIST; |
25 | }; |
26 | |
27 | /** @} */ |
28 | } |