#pragma once

#include "BsCorePrerequisites.h"
#include "BsDrawOps.h"

namespace BansheeEngine
{
	/**
	 * @brief	Data about a 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;
	};
}