Skip to content

Commit f8e837b

Browse files
author
kevyuu
committed
Fix createArrow to return ICPUGeometryCollection instead of vector of polygon geometry
1 parent a001472 commit f8e837b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/nbl/asset/utils/CGeometryCreator.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
// legacy, needs to be removed
1212
#include "SColor.h"
1313

14+
#include "nbl/asset/ICPUGeometryCollection.h"
15+
1416

1517
namespace nbl::asset
1618
{
@@ -58,7 +60,7 @@ class NBL_API2 CGeometryCreator final : public core::IReferenceCounted
5860
\param colorCone color of the cone
5961
\return Generated mesh.
6062
*/
61-
core::vector<core::smart_refctd_ptr<ICPUPolygonGeometry>> createArrow(const uint16_t tesselationCylinder = 4,
63+
core::smart_refctd_ptr<ICPUGeometryCollection> createArrow(const uint16_t tesselationCylinder = 4,
6264
const uint16_t tesselationCone = 8, const float height = 1.f,
6365
const float cylinderHeight = 0.6f, const float widthCylinder = 0.05f,
6466
const float widthCone = 0.3f) const;

0 commit comments

Comments
 (0)