Spot the difference

I didn’t for two days.

This:

for ( size_t i=0; i<numIdx; i+=3 )
{
	ind[ i ] = idx[ i ];
}

Versus this:

for ( size_t i=0; i<numIdx; ++i )
{
	ind[ i ] = idx[ i ];
}

Former was used with triangles when each index had their unique triangle and hence the loop could go 3-step increase. That was until I changed some things…

About Kent

Professional Software Developer, doing mostly C++. Connect with Kent on Twitter.
This entry was posted in coding and tagged , . Bookmark the permalink.