@@ -14,7 +14,7 @@ class CListIndexingCB final : public IPolygonGeometryBase::IIndexingCallback
14
14
{
15
15
auto indexOfIndex = ctx.beginPrimitive *3 ;
16
16
for (const auto end=ctx.endPrimitive *3 ; indexOfIndex!=end; indexOfIndex+=3 )
17
- ctx.streamOut (indexOfIndex,std::ranges::iota_view{0 ,Order});
17
+ ctx.streamOut (indexOfIndex,std::ranges::iota_view{0 ,int ( Order) });
18
18
}
19
19
20
20
public:
@@ -60,12 +60,12 @@ auto IPolygonGeometryBase::QuadList() -> IIndexingCallback*
60
60
return &singleton;
61
61
}
62
62
63
- class CTriangleStripIndexingCB final : public IIndexingCallback
63
+ class CTriangleStripIndexingCB final : public IPolygonGeometryBase:: IIndexingCallback
64
64
{
65
65
template <typename OutT>
66
66
static void operator_impl (SContext<OutT>& ctx)
67
67
{
68
- auto indexOfIndex;
68
+ uint64_t indexOfIndex;
69
69
if (ctx.beginPrimitive ==0 )
70
70
{
71
71
ctx.streamOut (0 ,std::ranges::iota_view{0 ,3 });
@@ -93,20 +93,20 @@ auto IPolygonGeometryBase::TriangleStrip() -> IIndexingCallback*
93
93
return &singleton;
94
94
}
95
95
96
- class CTriangleFanIndexingCB final : public IIndexingCallback
96
+ class CTriangleFanIndexingCB final : public IPolygonGeometryBase:: IIndexingCallback
97
97
{
98
98
template <typename OutT>
99
99
static void operator_impl (SContext<OutT>& ctx)
100
100
{
101
- auto indexOfIndex;
101
+ uint64_t indexOfIndex;
102
102
if (ctx.beginPrimitive ==0 )
103
103
{
104
104
ctx.streamOut (0 ,std::ranges::iota_view{0 ,3 });
105
105
indexOfIndex = 3 ;
106
106
}
107
107
else
108
108
indexOfIndex = ctx.beginPrimitive +2 ;
109
- int32_t perm[] = {0xdeadbeefu ,-1 ,0 };
109
+ int32_t perm[] = {0x7eadbeefu ,-1 ,0 };
110
110
for (const auto end=ctx.endPrimitive +2 ; indexOfIndex!=end; indexOfIndex++)
111
111
{
112
112
// first index is always global 0
0 commit comments